Results 1 to 16 of 16

Thread: [RESOLVED] VB6 - Can't open project forms without VB6 crashing

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    30

    Resolved [RESOLVED] VB6 - Can't open project forms without VB6 crashing

    Hey, i am an expereinced VB6 coder. This morning i switched VB6 on and imported my project that i have been working on for about 5 months in and then when i double clicked one of the forms on the side it loaded for about 6 seconds and then crashes.

    when i debug i get
    Code:
    004581F1   mov         ecx,dword ptr [eax]
    and i do have SP6 installed. If you could help me out i would be very happy

    - George Jesse Brewer

  2. #2

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    30

    Re: VB6 - Can't open project forms without VB6 crashing

    Nope, as i have been testing all day and night (From london) but i looked into the error logs and then i get:

    Code:
    Line 120: Property Picture in Image2 had an invalid file reference.
    Line 127: Property Picture in Image3 had an invalid file reference.
    Line 174: Property Picture in Image1 had an invalid file reference.
    I try to go to the propertys box but it dosent want to work. But a few hours ago they all worked

  4. #4

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    30

    Re: VB6 - Can't open project forms without VB6 crashing

    The paths were taken from a website. But on another Project i downloaded they was all working yesterday and i was happy, But now its all erroring and crashing;

    On my other computer the problem dosent happen.
    Last edited by kaB00M; Apr 5th, 2008 at 06:42 PM.
    Is your name George?

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB6 - Can't open project forms without VB6 crashing

    VB sometimes does that it looses referencing. Did you recently copy the project to this computer? You might try creating a new project and adding the forms into that to see if it still happens.

  7. #7
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Indiana
    Posts
    295

    Re: VB6 - Can't open project forms without VB6 crashing

    Sorry, duplicate post
    Last edited by Caskbill; Apr 5th, 2008 at 09:19 PM.

  8. #8
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Indiana
    Posts
    295

    Re: VB6 - Can't open project forms without VB6 crashing

    When you imported the .frm files for each form did you also import the .frx that goes with each.

    I had the same problem when I copied a project from one computer to another. Copying the .frx files solved it.

    Another thing that can help, is don't run VB6 and then open the project from within VB. Instead go to the folder that has your project and double-click on the .vbp file to have it start VB6 and load your project directly from there.

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: VB6 - Can't open project forms without VB6 crashing

    Quote Originally Posted by Caskbill
    Another thing that can help, is don't run VB6 and then open the project from within VB. Instead go to the folder that has your project and double-click on the .vbp file to have it start VB6 and load your project directly from there.
    That amounts to the same thing...

  10. #10
    Hyperactive Member
    Join Date
    Oct 2007
    Location
    Indiana
    Posts
    295

    Re: VB6 - Can't open project forms without VB6 crashing

    Quote Originally Posted by randem
    That amounts to the same thing...
    You would think so, but I can tell you from personal experience that one time I had a project that wouldn't load correctly directly from VB6. But did load when I clicked on the .vbp file. Then after that, it would load from the OPEN command directly from VB.

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    30

    Re: VB6 - Can't open project forms without VB6 crashing

    well. With or without them .frx files it still dosen't load.
    Is your name George?

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    30

    Re: VB6 - Can't open project forms without VB6 crashing

    Quote Originally Posted by randem
    VB sometimes does that it looses referencing. Did you recently copy the project to this computer? You might try creating a new project and adding the forms into that to see if it still happens.
    Yes... If i make a new Project and add them it still dosent work

    EDIT: VB6 crashes on any form with an image on it :s
    Last edited by kaB00M; Apr 6th, 2008 at 04:01 AM.
    Is your name George?

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    30

    Re: VB6 - Can't open project forms without VB6 crashing

    any one
    Is your name George?

  14. #14
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: VB6 - Can't open project forms without VB6 crashing

    you want to post one of the forms that does not work?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  15. #15

    Thread Starter
    Junior Member
    Join Date
    Apr 2008
    Posts
    30

    Re: [RESOLVED] VB6 - Can't open project forms without VB6 crashing

    Fixed - SP6 needed a re-install
    Is your name George?

  16. #16
    New Member
    Join Date
    Jun 2015
    Posts
    1

    Smile Re: [RESOLVED] VB6 - Can't open project forms without VB6 crashing

    Quote Originally Posted by kaB00M View Post
    Fixed - SP6 needed a re-install
    I had this problem and following your comments fixed it byreinstalling SP6. I don't know why SP6 had gone wrong though. I suspect a vista security update but cannot be sure??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width