-
December 6th, 2001, 04:08 PM
#1
VB stops responding
i made this tic tac toe game and after i click to select a square to put my O in the program freezes, then after a while parts of the screen turn white and i am forced to ctrl-alt-delete to end the program, so is there some way to prevent this, i was thinking maybe the program froze because to many public subs?
-
December 7th, 2001, 06:26 AM
#2
Sounds like you've gone into an endless loop rather than it being a problem with VB itself.
Try single-stepping the program through the code or putting in a break-point for that function to see what is going on.
HTH,
I'd rather die peacefully in my sleep like my Grandfather,
than screaming in terror like his passengers. Jim Harkins
<a href="http://www.Horrible.Demon.co.uk/" target="_blank">http://www.Horrible.Demon.co.uk/</a>
-
December 7th, 2001, 07:55 PM
#3
I figured out the problem. I used your suggestion with the break points, and I added debug.print commands to print the variables. I found out that at the end if player1 wins after picking the last square the cpu will try and go again but can't because all the squares are tooken up. Now I have a good hour or so to fix it.
Thanks for helping me, it's greatly appreciated.
-
December 10th, 2001, 05:27 AM
#4
Glad to be of help
I'd rather die peacefully in my sleep like my Grandfather,
than screaming in terror like his passengers. Jim Harkins
<a href="http://www.Horrible.Demon.co.uk/" target="_blank">http://www.Horrible.Demon.co.uk/</a>
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
|
|
Bookmarks