Results 1 to 10 of 10

Thread: VB closes after program closes [resolved]

  1. #1

    Thread Starter
    Addicted Member aldinator's Avatar
    Join Date
    May 2002
    Location
    Canada - better than all the rest!
    Posts
    216

    VB closes after program closes [resolved]

    hey - i've had this problem happen before and i magically fix it but i'd like to know what causes it and how i am actually fixing it

    sometimes when i close my program by hitting the X it closes my VB as well

    any ideas?
    Last edited by aldinator; Sep 24th, 2002 at 06:50 PM.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Yes...me too.

    You aren't closing your program, the X that you are hitting is the close for the VB IDE. Been there....done that....got the tee-shirt!

  3. #3
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Re: VB closes after program closes

    Originally posted by aldinator
    hey - i've had this problem happen before and i magically fix it but i'd like to know what causes it and how i am actually fixing it

    sometimes when i close my program by hitting the X it closes my VB as well

    any ideas?
    Do you have any subclassing? It'll cause VB to error, when the program is ran in the IDE.

  4. #4

    Thread Starter
    Addicted Member aldinator's Avatar
    Join Date
    May 2002
    Location
    Canada - better than all the rest!
    Posts
    216
    well hack - thats not it cause when i hit my exit button (coded for "end") it does the same

    when i hit the stop button in the vb ide it stops properly

    i do have od menus and i think that may be it but it didn't happen before (even though i had od menus then). im very, very confused

  5. #5
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Hmm....

    Try to single out the code that may be causing it.

  6. #6

    Thread Starter
    Addicted Member aldinator's Avatar
    Join Date
    May 2002
    Location
    Canada - better than all the rest!
    Posts
    216
    ok....its the odmenus thats doing it

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Have you put a STOP at the start of the routine, and "walked" through it?

  8. #8

    Thread Starter
    Addicted Member aldinator's Avatar
    Join Date
    May 2002
    Location
    Canada - better than all the rest!
    Posts
    216
    ok - i just got it - i wasn't putting the stopodmenus at all parts in which it could close (like the end button)

    thanks everyone - by probs solved



    does anyone know why it does this though

  9. #9
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    VB is anal.


  10. #10
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989
    If you are using subclassing then hitting the VB's Stop button will also cause an error. Infact the only way to exit properly is to
    close the subclass in the form_unload event.

    A good tutorial about subclassing can be found
    on www.allapi.net

Posting Permissions

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



Click Here to Expand Forum to Full Width