[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 :afrog:
Re: VB6 - Can't open project forms without VB6 crashing
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 :(
Re: VB6 - Can't open project forms without VB6 crashing
Don't know why it should cause it to crash but do your paths to the pictures exist?
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.
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.
Re: VB6 - Can't open project forms without VB6 crashing
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.
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...
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.
Re: VB6 - Can't open project forms without VB6 crashing
well. With or without them .frx files it still dosen't load.
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
Re: VB6 - Can't open project forms without VB6 crashing
Re: VB6 - Can't open project forms without VB6 crashing
you want to post one of the forms that does not work?
Re: [RESOLVED] VB6 - Can't open project forms without VB6 crashing
Fixed - SP6 needed a re-install
Re: [RESOLVED] VB6 - Can't open project forms without VB6 crashing
Quote:
Originally Posted by
kaB00M
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??