Board index » Visual Studio » End Program ends VB
|
ExcelPageNumbering
|
|
ExcelPageNumbering
|
End Program ends VB
Visual Studio334
Suddenly when I run a program in IDE, then press the End button on the task bar it not only "End" the program execution, but ends VB itself, returning me to Windows. This just started yesterday. Is there some setting from within the IDE that I could have triggered that would cause this? Thanks. Marv - |
| Dmitriy
Registered User |
Tue Aug 08 15:09:23 CDT 2006
Re:End Program ends VB"Marv Wade" <NG@columbus.rr.com>wrote in message QuoteSuddenly when I run a program in IDE, then press the End button on the Dmitriy. - |
| MikeD
Registered User |
Tue Aug 08 15:25:13 CDT 2006
Re:End Program ends VB"Marv Wade" <NG@columbus.rr.com>wrote in message QuoteSuddenly when I run a program in IDE, then press the End button on the terminating it abnormally is causing problems. Basically, just don't end your program that way. End it "normally". Clicking the End toolbar button is the same as using the End statement in code and has the same (or worse) consequences. You might even want to remove the End toolbar button. I'd leave it on the Run menu though JUST IN CASE you get into a spot where you MUST end your app this way. -- Mike Microsoft MVP Visual Basic - |
| Michael
Registered User |
Tue Aug 08 18:43:05 CDT 2006
Re:End Program ends VB
"MikeD" <nobody@nowhere.edu>wrote in message
QuoteNo such setting. Most likely, you've modified your program and now these consequences you talk about. VB is very good at cleaning up open resources when the end button is pushed. Marv, If you can't use the end button something is wrong and needs to be fixed. As Dmitriy said it's possible you're using some advanced techniques such as subclassing. Michael - |
| Marv
Registered User |
Tue Aug 08 19:00:44 CDT 2006
Re:End Program ends VB
You are on the right track. This only occurs in one program. I recently
added a class that allows expanded tool tips to the program, although it is one I have used in other programs, and in thinking back it did start to occur after that. I didn't connect the two things. I'll need to remove this class and see if it still occurs. Thanks all for the input. Marv "Dmitriy Antonov" <antonovdima@netzero.net_NOT_FOR_SPAM>wrote in message Quote
- |
| Michael
Registered User |
Tue Aug 08 19:17:16 CDT 2006
Re:End Program ends VB
"Marv Wade" <NG@columbus.rr.com>wrote in message
QuoteYou are on the right track. This only occurs in one program. I recently as the subclassing code is in a seperate compiled ocx or dll. You can even push the end button inside the callbacks without problems. Michael - |
| expvb
Registered User |
Wed Aug 09 09:28:04 CDT 2006
Re:End Program ends VB
"Marv Wade" <NG@columbus.rr.com>wrote in message
QuoteYou are on the right track. This only occurs in one program. I recently the IDE and disable subclassing in case you are done with it and want to work with other areas in the program: vbnet.mvps.org/code/core/isinide.htm">vbnet.mvps.org/code/core/isinide.htm - |
| Randy
Registered User |
Thu Aug 10 21:58:39 CDT 2006
Re:End Program ends VB
Run some demo that uses subclassing from a bas module, then hit end when
subclassed. Boom. -- Randy Birch MS MVP Visual Basic vbnet.mvps.org/">vbnet.mvps.org/ Please reply to the newsgroups so all can participate. "Michael C" <nospam@nospam.com>wrote in message "MikeD" <nobody@nowhere.edu>wrote in message QuoteNo such setting. Most likely, you've modified your program and now these consequences you talk about. VB is very good at cleaning up open resources when the end button is pushed. Marv, If you can't use the end button something is wrong and needs to be fixed. As Dmitriy said it's possible you're using some advanced techniques such as subclassing. Michael - |
| Michael
Registered User |
Sun Aug 13 19:22:28 CDT 2006
Re:End Program ends VB
"Randy Birch" <rgb_removethis@mvps.org>wrote in message
QuoteRun some demo that uses subclassing from a bas module, then hit end when problems at all. The subclassing code is compiled into an ocx. Because of this subclassing directly in the exe is a *really* bad idea. Michael - |
