VB6 IDE closing down upon app execution???
Anyone have any idea why my VB6 IDE would close upon trying to execute code?
I have an application that when I get into the source code and try and run it....VB6 just shuts down. The code was pulled out of sourcesafe and this has never happened before.
Thanks,
Re: VB6 IDE closing down upon app execution???
Does it give any error message? If yes then what is the error message?
Re: VB6 IDE closing down upon app execution???
Code contain any subclassing :confused:
Re: VB6 IDE closing down upon app execution???
i had that happen and don't remember the fix, but heres how i narrowed it down:
Remember it did not even go to my error handlers
I sprinkled through out my load procedures
MsgBox "Check Point1"
MsgBox "Check Point2"
etc
Re: VB6 IDE closing down upon app execution???
no messages or anything...it just ended. I am opening a .vbg though. It's an app that has several large classes called by a gui.
Re: VB6 IDE closing down upon app execution???
any ideas on this? This project actually contains 3 *.vbp files. So essentially it's 3 projects in one. I haven't worked with VB6 for awhile and never worked with a VBG project. Am I missing anything?
Thanks,
Re: VB6 IDE closing down upon app execution???
You appear to be missing posts #3 and #4, and debugging.
Re: VB6 IDE closing down upon app execution???
I did try debugging it. I hit F8 to start debugging and it just quit out of the IDE. As far as sub-classing...what exactly is that? I have Class Modules in the Project if that's what you mean....
Re: VB6 IDE closing down upon app execution???
Quote:
Originally Posted by
blakemckenna
I did try debugging it. I hit F8 to start debugging and it just quit out of the IDE.
Is that how you are starting the code, or are you doing it after having pressed F5 or the 'start' button?
Quote:
As far as sub-classing...what exactly is that? I have Class Modules in the Project if that's what you mean....
It is nothing to do with Class Modules, it is intercepting the messages that Windows sends (also known as Hooking).
If you are using it, you will have the keyword AddressOf in your code.
Re: VB6 IDE closing down upon app execution???
There are NO AddressOf statements so I guess I'm not sub-classing. I press F8 to start debugging (basically stepping into the very first line of code), however, that doesn't work either, The program just quits the IDE.
Re: VB6 IDE closing down upon app execution???
Can you run other projects in the ide ?
What is the first line of code ?
Re: VB6 IDE closing down upon app execution???
If I open a completely new project...I can do everything with it. It's just this particular project. As I said...it's 3 separate projects in 1 group. It consists of a Data tier, Business tier, and a User tier. All 3 compiled together make up the executable.
Re: VB6 IDE closing down upon app execution???
Try each of the sub-projects independently, the "start up" (the one that is shown in bold) last.
A Group is usually just so that you can debug the interaction between the projects.
What user level is your Windows login? (Admin/PowerUser/...) and what version of Windows are you using?
Re: VB6 IDE closing down upon app execution???
Sounds as if something is corrupted or misconfigured and you are stuck.
I would try this:
Start a new project and save to a new folder then add all the files except for the vbp and vbg and save as a new vbp project and not use the .vbg
Re: VB6 IDE closing down upon app execution???
Everyone has prettymuch been saying the same thing, but check the startup form. You say you put messageboxes in the Form_Load event, but if that project isn't the project that starts first, the form_load event won't matter for that project...
Re: VB6 IDE closing down upon app execution???
Quote:
Originally Posted by
drag0n_45
Everyone has prettymuch been saying the same thing, but check the startup form. You say you put messageboxes in the Form_Load event, but if that project isn't the project that starts first, the form_load event won't matter for that project...
Find the startup Object in project properties to find what loads first
Re: VB6 IDE closing down upon app execution???
Have you tried to compile this project group? I'm betting that you will get many errors and these need to be addressed. The only other thing that may happen from this is something you have already experienced (IDE shutting down).
Good Luck