|
-
Apr 5th, 2008, 05:19 PM
#1
Thread Starter
Junior Member
[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
-
Apr 5th, 2008, 06:19 PM
#2
Re: VB6 - Can't open project forms without VB6 crashing

Does it happen with a new project?
-
Apr 5th, 2008, 06:30 PM
#3
Thread Starter
Junior Member
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
-
Apr 5th, 2008, 06:32 PM
#4
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?
-
Apr 5th, 2008, 06:34 PM
#5
Thread Starter
Junior Member
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? 
-
Apr 5th, 2008, 09:11 PM
#6
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.
-
Apr 5th, 2008, 09:14 PM
#7
Hyperactive Member
Re: VB6 - Can't open project forms without VB6 crashing
Last edited by Caskbill; Apr 5th, 2008 at 09:19 PM.
-
Apr 5th, 2008, 09:18 PM
#8
Hyperactive Member
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.
-
Apr 5th, 2008, 09:21 PM
#9
Re: VB6 - Can't open project forms without VB6 crashing
 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...
-
Apr 5th, 2008, 09:32 PM
#10
Hyperactive Member
Re: VB6 - Can't open project forms without VB6 crashing
 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.
-
Apr 6th, 2008, 03:30 AM
#11
Thread Starter
Junior Member
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? 
-
Apr 6th, 2008, 03:31 AM
#12
Thread Starter
Junior Member
Re: VB6 - Can't open project forms without VB6 crashing
 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? 
-
Apr 6th, 2008, 05:36 AM
#13
Thread Starter
Junior Member
Re: VB6 - Can't open project forms without VB6 crashing
Is your name George? 
-
Apr 6th, 2008, 06:19 AM
#14
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
-
Apr 6th, 2008, 06:20 AM
#15
Thread Starter
Junior Member
Re: [RESOLVED] VB6 - Can't open project forms without VB6 crashing
Fixed - SP6 needed a re-install
Is your name George? 
-
Jun 1st, 2015, 10:16 AM
#16
New Member
Re: [RESOLVED] VB6 - Can't open project forms without VB6 crashing
 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??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|