VB97 and VB6 crashing in WinXP Pro
Author |
Message |
Ian Cowle #1 / 11
|
 VB97 and VB6 crashing in WinXP Pro
If I run an aplication from within VB (i.e. hit F5), and there's a bug in the code e.g. causes Compile error: Sub or function not defined. I click OK, and am returned to my code with the application paused. If I hit stop to halt the application, VB just closes...it vanishes. Equally, if an error box with End and debug buttons comes up, if I hit debug, I am returned to the code, but VB freezes, and hiting End closes VB. This happens with VB97 SP3 and VB6.0 (un SPd, as I've not got the SP on me, and have only just installed it to see if it solves this bug). Any ideas people? -- Ian Cowley
|
Sat, 25 Sep 2004 08:01:17 GMT |
|
 |
Bob O`Bo #2 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Quote:
> If I run an aplication from within VB (i.e. hit F5), and there's a bug in > the code e.g. causes > Compile error: Sub or function not defined. > I click OK, and am returned to my code with the application paused. > If I hit stop to halt the application, VB just closes...it vanishes. > Equally, if an error box with End and debug buttons comes up, if I hit > debug, I am returned to the code, but VB freezes, and hiting End closes VB. > This happens with VB97 SP3 and VB6.0 (un SPd, as I've not got the SP on me, > and have only just installed it to see if it solves this bug). > Any ideas people?
1) what is "VB97"? 2) what APIs are you using? Subclassing anything? Callbacks? 3) does this behavior persist after a reboot? Bob -- posting from work, but representing only myself
|
Sat, 25 Sep 2004 08:24:15 GMT |
|
 |
Ken Halte #3 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Quote:
> If I run an aplication from within VB (i.e. hit F5), and there's a > bug in the code e.g. causes > Compile error: Sub or function not defined. > I click OK, and am returned to my code with the application paused. > If I hit stop to halt the application, VB just closes...it vanishes.
You should post the code that's doing this.. are you subclassing any forms or controls? Quote: > Equally, if an error box with End and debug buttons comes up, if I hit > debug, I am returned to the code, but VB freezes, and hiting End > closes VB.
Subclassing? Quote: > This happens with VB97 SP3 and VB6.0 (un SPd, as I've not got the SP > on me, and have only just installed it to see if it solves this bug). > Any ideas people?
It may (or may not) be a bear to restore your VB5 setup... you might as well stay with VB6 now.. make sure to install SP5 asap. PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the Same System (Q190211) http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211 -- Ken Halter MS-MVP-VB Please keep it in the groups..
|
Sat, 25 Sep 2004 09:14:15 GMT |
|
 |
Jeff Johnso #4 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Quote: > 1) what is "VB97"?
VB5. It was considered "Visual Studio 97."
|
Sat, 25 Sep 2004 21:05:30 GMT |
|
 |
Ian Cowle #5 / 11
|
 VB97 and VB6 crashing in WinXP Pro
SP3 *is* the latest service pack for VB97. -- Ian Cowley
Quote: > Install the latest service pack of VB will solve the > problem. > >-----Original Message----- > >If I run an aplication from within VB (i.e. hit F5), and > there's a bug in > >the code e.g. causes > >Compile error: Sub or function not defined. > >I click OK, and am returned to my code with the > application paused. > >If I hit stop to halt the application, VB just > closes...it vanishes. > >Equally, if an error box with End and debug buttons comes > up, if I hit > >debug, I am returned to the code, but VB freezes, and > hiting End closes VB. > >This happens with VB97 SP3 and VB6.0 (un SPd, as I've not > got the SP on me, > >and have only just installed it to see if it solves this > bug). > >Any ideas people? > >-- > >Ian Cowley > >.
|
Sun, 26 Sep 2004 02:38:40 GMT |
|
 |
Ian Cowle #6 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Quote:
> > If I run an aplication from within VB (i.e. hit F5), and there's a > > bug in the code e.g. causes > > Compile error: Sub or function not defined. > > I click OK, and am returned to my code with the application paused. > > If I hit stop to halt the application, VB just closes...it vanishes. > You should post the code that's doing this.. are you subclassing any forms > or controls?
I can make it happen with any bit of code in my application - I have now narrowed it down to only one application, so it seems to be something in it's code. But surely it shouldn't close VB? I can make it happen by doing the following: dim temp as integer temp = 45000 It obviously comes up with an overflow error. If I hit 'Debug', my application stays on top, not responding, and I am taken to the code with the breakpoint highlighted, but can't do anything - VB is frozen, and I have to end it from Task Manager. If I hit 'End', it closes VB...*poof* like that. I'm not subclassing anything. Quote: > It may (or may not) be a bear to restore your VB5 setup... you might as well > stay with VB6 now.. make sure to install SP5 asap. > PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the Same System > (Q190211) > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211
It was happening before I installed VB6 - this is why I tried VB6 in the first place. It's only with this one application. It uses a lot of APIs, including system hooks, but I seem to remember it was happeneing before I put those in. Reboots solve nothing, and I've reapplied SP3 to be sure, but no avail. Further ideas appreciated. -- Ian Cowley
|
Sun, 26 Sep 2004 02:47:48 GMT |
|
 |
Ken Halte #7 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Since you already have SP3 loaded, the following may not help at all.. INFO: Visual Studio 97 Service Pack 2 Readme (Q172610) http://support.microsoft.com/default.aspx?scid=kb;en-us;Q172610 FIX: Repository Error after Halting Execution in Break-mode Edit (Q169305) http://support.microsoft.com/default.aspx?scid=kb;en-us;Q169305&SD=MSKB& .. I also did a Google search.. found a lot of people with similar problems.. no definitive fixes though :( -- Ken Halter MS-MVP-VB Please keep it in the groups.. Quote:
>>> If I run an aplication from within VB (i.e. hit F5), and there's a >>> bug in the code e.g. causes >>> Compile error: Sub or function not defined. >>> I click OK, and am returned to my code with the application paused. >>> If I hit stop to halt the application, VB just closes...it vanishes. >> You should post the code that's doing this.. are you subclassing any >> forms or controls? > I can make it happen with any bit of code in my application - I have > now narrowed it down to only one application, so it seems to be > something in it's code. > But surely it shouldn't close VB? > I can make it happen by doing the following: > dim temp as integer > temp = 45000 > It obviously comes up with an overflow error. > If I hit 'Debug', my application stays on top, not responding, and I > am taken to the code with the breakpoint highlighted, but can't do > anything - VB is frozen, and I have to end it from Task Manager. > If I hit 'End', it closes VB...*poof* like that. > I'm not subclassing anything. >> It may (or may not) be a bear to restore your VB5 setup... you might >> as > well >> stay with VB6 now.. make sure to install SP5 asap. >> PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the Same > System >> (Q190211) >> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211 > It was happening before I installed VB6 - this is why I tried VB6 in > the first place. > It's only with this one application. > It uses a lot of APIs, including system hooks, but I seem to remember > it was happeneing before I put those in. > Reboots solve nothing, and I've reapplied SP3 to be sure, but no > avail. > Further ideas appreciated.
|
Sun, 26 Sep 2004 03:43:22 GMT |
|
 |
Ian Cowle #8 / 11
|
 VB97 and VB6 crashing in WinXP Pro
I've just uninstalled VB6, rebooted. Uninstalled VB5, rebooted. Rebooted. Installed VB5. Rebooted Installed SP3. Rebooted. Still having exactly the same issue. If I do the dim temp as integer integer = 45000 or any other error, in any application except this main one I'm working on, all is fine. It only seems to be this one aplication I'm working on that causes VB to exit like this. If you think it'll help, I can list the APIs I'm using - I've tried commenting loads of them out, but to no avail. Haven't tried all of them though. -- Ian Cowley
Quote: > Since you already have SP3 loaded, the following may not help at all.. > INFO: Visual Studio 97 Service Pack 2 Readme (Q172610) > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q172610 > FIX: Repository Error after Halting Execution in Break-mode Edit (Q169305) > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q169305&SD=MSKB& > .. I also did a Google search.. found a lot of people with similar > problems.. no definitive fixes though :( > -- > Ken Halter > MS-MVP-VB > Please keep it in the groups..
> >>> If I run an aplication from within VB (i.e. hit F5), and there's a > >>> bug in the code e.g. causes > >>> Compile error: Sub or function not defined. > >>> I click OK, and am returned to my code with the application paused. > >>> If I hit stop to halt the application, VB just closes...it vanishes. > >> You should post the code that's doing this.. are you subclassing any > >> forms or controls? > > I can make it happen with any bit of code in my application - I have > > now narrowed it down to only one application, so it seems to be > > something in it's code. > > But surely it shouldn't close VB? > > I can make it happen by doing the following: > > dim temp as integer > > temp = 45000 > > It obviously comes up with an overflow error. > > If I hit 'Debug', my application stays on top, not responding, and I > > am taken to the code with the breakpoint highlighted, but can't do > > anything - VB is frozen, and I have to end it from Task Manager. > > If I hit 'End', it closes VB...*poof* like that. > > I'm not subclassing anything. > >> It may (or may not) be a bear to restore your VB5 setup... you might > >> as > > well > >> stay with VB6 now.. make sure to install SP5 asap. > >> PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the Same > > System > >> (Q190211) > >> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211 > > It was happening before I installed VB6 - this is why I tried VB6 in > > the first place. > > It's only with this one application. > > It uses a lot of APIs, including system hooks, but I seem to remember > > it was happeneing before I put those in. > > Reboots solve nothing, and I've reapplied SP3 to be sure, but no > > avail. > > Further ideas appreciated.
|
Sun, 26 Sep 2004 04:13:00 GMT |
|
 |
Ken Halte #9 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Reiterating... It may (or may not) be a bear to restore your VB5 setup... you might as well stay with VB6 now.. make sure to install SP5 asap. PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the Same System (Q190211) http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211 The problem with your VB5 setup now is... VB6 has most likely updated some of the common dlls.. it ain't going to be easy to back off to a clean VB5 setup without reformatting the entire drive. What this *may* mean is.. no more updates to previous programs allowed without creating a setup package that includes all of the new dependant components. I may be wrong.. but it seems logical. There's at least one missing step here... Quote: > I've just uninstalled VB6, rebooted. > Uninstalled VB5, rebooted.
Run RegClean at least twice. Quote: > Rebooted. > Installed VB5.
Skipping the regclean part means that it's not truly uninstalled. There's still a lot of left over registry garbage that could muck up the re-installation. -- Ken Halter MS-MVP-VB Please keep it in the groups.. Quote:
> I've just uninstalled VB6, rebooted. > Uninstalled VB5, rebooted. > Rebooted. > Installed VB5. > Rebooted > Installed SP3. Rebooted. > Still having exactly the same issue. > If I do the > dim temp as integer > integer = 45000 > or any other error, in any application except this main one I'm > working on, all is fine. > It only seems to be this one aplication I'm working on that causes VB > to exit like this. > If you think it'll help, I can list the APIs I'm using - I've tried > commenting loads of them out, but to no avail. Haven't tried all of > them though.
>> Since you already have SP3 loaded, the following may not help at >> all.. >> INFO: Visual Studio 97 Service Pack 2 Readme (Q172610) >> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q172610 >> FIX: Repository Error after Halting Execution in Break-mode Edit >> (Q169305) http://support.microsoft.com/default.aspx?scid=kb;en- >> us;Q169305&SD=MSKB& >> .. I also did a Google search.. found a lot of people with similar >> problems.. no definitive fixes though :( >> -- >> Ken Halter >> MS-MVP-VB >> Please keep it in the groups..
>>>>> If I run an aplication from within VB (i.e. hit F5), and there's a >>>>> bug in the code e.g. causes >>>>> Compile error: Sub or function not defined. >>>>> I click OK, and am returned to my code with the application >>>>> paused. If I hit stop to halt the application, VB just >>>>> closes...it vanishes. >>>> You should post the code that's doing this.. are you subclassing >>>> any forms or controls? >>> I can make it happen with any bit of code in my application - I have >>> now narrowed it down to only one application, so it seems to be >>> something in it's code. >>> But surely it shouldn't close VB? >>> I can make it happen by doing the following: >>> dim temp as integer >>> temp = 45000 >>> It obviously comes up with an overflow error. >>> If I hit 'Debug', my application stays on top, not responding, and I >>> am taken to the code with the breakpoint highlighted, but can't do >>> anything - VB is frozen, and I have to end it from Task Manager. >>> If I hit 'End', it closes VB...*poof* like that. >>> I'm not subclassing anything. >>>> It may (or may not) be a bear to restore your VB5 setup... you >>>> might as >>> well >>>> stay with VB6 now.. make sure to install SP5 asap. >>>> PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the >>>> Same >>> System >>>> (Q190211) >>>> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211 >>> It was happening before I installed VB6 - this is why I tried VB6 >>> in the first place. >>> It's only with this one application. >>> It uses a lot of APIs, including system hooks, but I seem to >>> remember it was happeneing before I put those in. >>> Reboots solve nothing, and I've reapplied SP3 to be sure, but no >>> avail. >>> Further ideas appreciated.
|
Sun, 26 Sep 2004 06:34:37 GMT |
|
 |
Unicor #10 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Have you tried starting a new project and importing all of the forms, classes and modules one at a time until the thing breaks. You are probable being bitten by the upgraded library bugs but this should narrow it down to a single form or file. Matt
Quote:
> > > If I run an aplication from within VB (i.e. hit F5), and there's a > > > bug in the code e.g. causes > > > Compile error: Sub or function not defined. > > > I click OK, and am returned to my code with the application paused. > > > If I hit stop to halt the application, VB just closes...it vanishes. > > You should post the code that's doing this.. are you subclassing any forms > > or controls? > I can make it happen with any bit of code in my application - I have now > narrowed it down to only one application, so it seems to be something in > it's code. > But surely it shouldn't close VB? > I can make it happen by doing the following: > dim temp as integer > temp = 45000 > It obviously comes up with an overflow error. > If I hit 'Debug', my application stays on top, not responding, and I am > taken to the code with the breakpoint highlighted, but can't do anything - > VB is frozen, and I have to end it from Task Manager. > If I hit 'End', it closes VB...*poof* like that. > I'm not subclassing anything. > > It may (or may not) be a bear to restore your VB5 setup... you might as > well > > stay with VB6 now.. make sure to install SP5 asap. > > PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the Same > System > > (Q190211) > > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211 > It was happening before I installed VB6 - this is why I tried VB6 in the > first place. > It's only with this one application. > It uses a lot of APIs, including system hooks, but I seem to remember it was > happeneing before I put those in. > Reboots solve nothing, and I've reapplied SP3 to be sure, but no avail. > Further ideas appreciated. > -- > Ian Cowley
|
Sun, 26 Sep 2004 18:15:11 GMT |
|
 |
Miche #11 / 11
|
 VB97 and VB6 crashing in WinXP Pro
Reinstall VB & SP5 if possible. _____________________________________ Michel - Webmaster de MegaTen - VbTools http://MegaTen.alterlinks.fr _____________________________________ J'entends et j'oublie. Je vois et je me souviens. Je fais et je comprends.
Quote: > Have you tried starting a new project and importing all of the forms, > classes and modules one at a time until the thing breaks. You are probable > being bitten by the upgraded library bugs but this should narrow it down to > a single form or file. > Matt
> > > > If I run an aplication from within VB (i.e. hit F5), and there's a > > > > bug in the code e.g. causes > > > > Compile error: Sub or function not defined. > > > > I click OK, and am returned to my code with the application paused. > > > > If I hit stop to halt the application, VB just closes...it vanishes. > > > You should post the code that's doing this.. are you subclassing any > forms > > > or controls? > > I can make it happen with any bit of code in my application - I have now > > narrowed it down to only one application, so it seems to be something in > > it's code. > > But surely it shouldn't close VB? > > I can make it happen by doing the following: > > dim temp as integer > > temp = 45000 > > It obviously comes up with an overflow error. > > If I hit 'Debug', my application stays on top, not responding, and I am > > taken to the code with the breakpoint highlighted, but can't do anything - > > VB is frozen, and I have to end it from Task Manager. > > If I hit 'End', it closes VB...*poof* like that. > > I'm not subclassing anything. > > > It may (or may not) be a bear to restore your VB5 setup... you might as > > well > > > stay with VB6 now.. make sure to install SP5 asap. > > > PRB: Problems When Visual Basic 5.0 and 6.0 Are Installed on the Same > > System > > > (Q190211) > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190211 > > It was happening before I installed VB6 - this is why I tried VB6 in the > > first place. > > It's only with this one application. > > It uses a lot of APIs, including system hooks, but I seem to remember it > was > > happeneing before I put those in. > > Reboots solve nothing, and I've reapplied SP3 to be sure, but no avail. > > Further ideas appreciated. > > -- > > Ian Cowley
|
Sun, 26 Sep 2004 21:46:35 GMT |
|
|
|