VB stops responding
Results 1 to 4 of 4

Thread: VB stops responding

  1. #1
    Registered User
    Join Date
    Apr 2001
    Posts
    21

    Question 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?

  2. #2
    Registered User
    Join Date
    Jan 1999
    Location
    London, Great Britain
    Posts
    300

    Post

    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>

  3. #3
    Registered User
    Join Date
    Apr 2001
    Posts
    21

    Post

    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.

  4. #4
    Registered User
    Join Date
    Jan 1999
    Location
    London, Great Britain
    Posts
    300

    Thumbs up

    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>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •