Re: VB 6 debugging on Vista
- From: "Mike Williams" <mikea@xxxxxxxxxxxxxxxxx>
- Date: Wed, 10 Oct 2007 01:13:22 +0100
"Jeff Morgan" <JeffMorgan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:8839CCA6-3E75-4F23-970B-5DB329EC4537@xxxxxxxxxxxxxxxx
I have ran into a problem that I am looking for a solution for.
I have several older apps in VB6 that I am still working with.
I find that when I debug, if I am stuck in a loop, Vista will not
respond to ctrl-break command. Vista tells me that app is not
responding. If the loop ends, Vista will respond eventually.
Anyone have any ideas how to get VB6 to react immediately
or am I just out of luck?
I'm not sure what you mean? If you're running in the IDE then as far as I know VB is effectively behaving like an old fashioned interpreted Basic program and the "interpreter" is watching for debug input (but not standard user input) in between executing each statement, even if your code is in a tight loop. I've just run a very long time double For Next loop in the VB6 IDE (in Vista) and when I hit Ctrl Break the app breaks immediately and displays the code window with the current line highlighted and it does not continue until I tell it to do so. Is that not what happens on your own Vista system? Or are you perhaps expecting VB to halt immediately on Ctrl Break even if a single VB statement itself takes a long time to execute, for example scaling an extremely large jpg from disk into a small Picture Box or perhaps waiting in some other way for a single statement to finish executing? I don't normally use the debug stuff in the IDE [as you might have guessed from some of the code I sometimes post ;-) ] but I think that VB cannot check for debug input (Ctrl Break or anything else) while a single statement is executing. As far as I know it checks only after a statement has completed and before it starts to execute the next statement. Does it not work as I have described on your own Vista system? If not then can you explain your problem in a bit more detail?
Mike
.
- Follow-Ups:
- Re: VB 6 debugging on Vista
- From: Jeff Morgan
- Re: VB 6 debugging on Vista
- Prev by Date: Re: Confusion regarding registration and use of ActiveX components
- Next by Date: Re: VB6 - Testing on ALL operating systems
- Previous by thread: Re: VB 6 debugging on Vista
- Next by thread: Re: VB 6 debugging on Vista
- Index(es):
Relevant Pages
|