Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: TeEhEiMaN on February 28, 2004, 07:47 PM

Title: help please
Post by: TeEhEiMaN on February 28, 2004, 07:47 PM
For some reason vb 6 is crashin after i click run and then connect with my bot, then stop the program or close it. Only happends when i connect, not when i do anything eles. I can run the bot and mess with setup or any other forums and stop it and nothin happen, so what do u think the problem is?

Thanks
Title: Re:help please
Post by: o.OV on February 28, 2004, 09:08 PM
You could try debugging ..

Place a Breakpoint in the sub
that runs when you click Connect.
Then use F8 to step into EVERY LINE
until you are in channel or you have crashed.
That will reveal which line is causing your bot to crash.
Title: Re:help please
Post by: TeEhEiMaN on February 28, 2004, 09:24 PM
no bugs come up, what do u suggest next?
Title: Re:help please
Post by: Eric on February 28, 2004, 09:43 PM
Most likely the bug wouldn't be appearing during code execution, since it only occurs when closing the program. There's only three possibilities that I know of that would be causing this, and they are:
1.) Your objects are not being closed properly or being closed at all.
2.) There is something being called on Form_Unload() that is causing your program to freeze.
3.) There is a bug in your copy of Visual Studio.
Title: Re:help please
Post by: Stealth on February 28, 2004, 10:31 PM
It probably has something to do with an API call.. they can screw the IDE up fairly easily.

If it just FREEZES, try hitting CTRL+BREAK (the Break key is above Page Up) and seeing if it's infinitely looping.
Title: Re:help please
Post by: o.OV on February 28, 2004, 10:32 PM
After reading LoRd[nK]'s post..
I realized I misread your post.

Place the BreakPoint at Form_Unload instead.