My bad...VB6 infinite loop...

Do you have a technical question that doesn't really fit a specific console? Want some general info on electronics, hacking, making cookies, etc? Here's the place to ask! Go nuts.

Moderator: Moderators

Post Reply
Adam G
Posts: 212
Joined: Wed Aug 22, 2007 7:33 pm
Location: Olympia, WA
Contact:

My bad...VB6 infinite loop...

Post by Adam G »

Meh...I've been working for probably over 7 hours, I'd guess more like 8 1/2...jumping around a lot but working on my main project since before 10...
Anyway, screwed up and used this code...

Code: Select all

Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
Loop
Call Grab
So...I'm sure you see the problem? :(
Yeah...it's running right now, seems to be keeping a quite steady rate of 50% CPU usage.

Is there any chance the code will go through? I'm all open to leave it running for some hours/days...

:cry:
~Adam~
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Post by marshallh »

Just hit Ctrl-Break.
Image
Adam G
Posts: 212
Joined: Wed Aug 22, 2007 7:33 pm
Location: Olympia, WA
Contact:

Post by Adam G »

marshallh wrote:Just hit Ctrl-Break.
:D
The post was at 4 AM, I've been getting very little sleep lately and basically just said screw it, I wasn't even thinking...
Thanks!

:P
~Adam~
timmeh87
Senior Member
Posts: 3047
Joined: Mon Nov 14, 2005 10:19 pm
Location: Ontario, Canada

Post by timmeh87 »

LOL classic. :D
Image

"Linux is only free if your time is worthless"
Skyone
Moderator
Posts: 6390
Joined: Tue Nov 29, 2005 8:35 pm
Location: it is a mystery
Contact:

Post by Skyone »

Haha! That's what you get for using VB6! Also, couldn't you have just gone into task manager? Image
Adam G
Posts: 212
Joined: Wed Aug 22, 2007 7:33 pm
Location: Olympia, WA
Contact:

Post by Adam G »

Skyone wrote:Haha! That's what you get for using VB6! Also, couldn't you have just gone into task manager? Image
Yes, I could have ended "form1" through the task manager, the problem being that form1 is considered the same process as Visual Basics, ending one would end both. My problem was, I hadn't saved the project since I opened it two days ago.
marshallh
Moderator
Posts: 2987
Joined: Sat Sep 10, 2005 2:17 pm
360 GamerTag: marshallh
Location: here and there
Contact:

Post by marshallh »

Yea, I've done that too many times. The first time I wrote the main loop for GTP I forgot to put a DoEvents in the delay timing code.I pulled the plug on my machine, rebooted, and grabbed the source code out of the Temp folder. Saved a couple day's work.
Image
timmeh87
Senior Member
Posts: 3047
Joined: Mon Nov 14, 2005 10:19 pm
Location: Ontario, Canada

Post by timmeh87 »

Yeah ive done it too :(
Image

"Linux is only free if your time is worthless"
lifeisbetterwithketchup
Senior Member
Posts: 2180
Joined: Fri Jul 21, 2006 12:08 pm
Steam ID: lifeisbetterwithketchup
Location: Illinois. Whee.

Post by lifeisbetterwithketchup »

In VB.NET 2002, I know it's a separate process. You can kill it, and Visual Studio is still running, with all the source and stuff. It also saves your work when you compile. Guess that was a big improvement from VB6. It's saved my ass a few times.
Rekarp wrote:
mako321 wrote:What makes you head ninja, anyways? :wink:
Cause I am Abe F#!@ing Lincoln. :mrgreen:
Post Reply