|
-
Apr 25th, 2000, 07:19 AM
#1
Thread Starter
Fanatic Member
I'm sure you've all had this problem.
You're in a hurry, you quickly put together an idea and want to test an algorithm. just 10-15 lines of code or so, no interface because you just want to test the output to use in a proper app later.
You run it and find (for example) that an array was 1 based instead of zero based and your test goes into an infinite loop from the IDE.
Then, because VB can't recover you have to kill it and recode the F#$%*%G algorithm, because you were not writing a real app you didn't save it.
Just wondering if anyone has come up with any good work-around to this BUG in VB? a little function you could add in or something to allow a graceful exit.
(I hope the VB7 IDE can recover!, Borland C++ builder can, you just hit the stop button and it stops because it test the app in a different process to the IDE. VB IDE stalls and you can't hit the stop button)
????????????????????????????????????????????????
Paul
-
Apr 25th, 2000, 07:32 AM
#2
Lively Member
Just push 'alt+pause' that puts the program on 'break'.
-
Apr 25th, 2000, 08:35 AM
#3
Hyperactive Member
Wasn't it really Ctrl-Break???
-
Apr 25th, 2000, 09:03 AM
#4
Fanatic Member
I thought it was Ctrl + Break too, but sometimes the damn thing just ignores me.....
DocZaf
{;->
-
Apr 25th, 2000, 09:13 AM
#5
Hyperactive Member
Not that I'm stupid or even smart, I feel for you Paul282 'cause up untill a year ago I didn't know what the "break" button was. Every time I heard "Just press alt and break" I figured this was a thing I did not have 'cause all the letters were worn of my old used up keypad. When I broke down and spent the $12 for a new one, I found it in the very top row, last on the right. This has changed my life and I can loop all over hell now without a care!
-
Apr 25th, 2000, 11:34 AM
#6
Addicted Member
sometimes when you're messing with api you have to press ctrl+breakyourgoddamnkeyboardoveryourcomputer...
-
Apr 25th, 2000, 12:05 PM
#7
Lively Member
When subclassing a control or a window, pressing ctrl+break sometimes doesn't work if the problem is within the window proc.
-
Apr 25th, 2000, 02:39 PM
#8
Thread Starter
Fanatic Member
WOW! Really, I'll try it later.
I always assumed that if the IDE interface hung then hot keys wouldn't respond either (not that I knew what they were anyway)
Thanks vbDoods
-
Apr 25th, 2000, 02:43 PM
#9
Thread Starter
Fanatic Member
-
Apr 25th, 2000, 03:29 PM
#10
Hyperactive Member
And to be safe, why not let VB save the project every time before you run it.. at least you never loose code.
-
Apr 25th, 2000, 06:53 PM
#11
Sometimes it takes some time (and a lot of ctrl+break's) to stop your program but most of the time it will stop.
Also you could add a doevents inside your loop so you can break it ez.
-
Apr 25th, 2000, 07:00 PM
#12
Hyperactive Member
Just in case
Keep a good hammer by your keyboard...
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
|