Results 1 to 13 of 13

Thread: Stupid VB Keeps Crashing *resolved*

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Stupid VB Keeps Crashing *resolved*

    I've used subclassing in my project to prevent form resizing AND to disable the maximize button.

    When I'm working on my project, anytime I press the STOP button, the entire application just crashes, and VB6 closes as well.

    The same happens if I get an error and I press "end" or "Debug".

    If I comment out the function calls to implement this subclassing, then I don't face these problems.

    Any ideas? If required, I can post the code.
    Last edited by mendhak; May 20th, 2002 at 12:36 AM.

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    why dont you just make sure everything stops nicely when you press the X?
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3
    khalik
    Guest
    it happen with me several time..
    my programs uses treeview and lot of datais loaded in it and when using sheridan controls

    what i notic is that when we end the program from design mode not from the UI...

    is this the case with u...
    if u call end that does not effect in such crash...

  4. #4
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    subclassing does screw up your APP if you dont unsubclass it. but when you end it wont unsubclass, and when you debug it wont handle the messages. so you should check the option to ask you if you want to save every time.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by BuggyProgrammer
    why dont you just make sure everything stops nicely when you press the X?
    (sarcastic mode)
    Jee, why didn't I think of that
    (/sarcastic mode)



    khalik
    I didn't understand completely what you just said. Can you elaborate?

    I have a 4KB "working" (pun unintended) example of the crashing example. I'll post it.

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    4KB. here.
    Attached Files Attached Files

  7. #7

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by BuggyProgrammer
    subclassing does screw up your APP if you dont unsubclass it. but when you end it wont unsubclass, and when you debug it wont handle the messages. so you should check the option to ask you if you want to save every time.
    You're right. What is this "save" option you speak of?

  8. #8
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    tools>options>enviroment>When a program starts: Prompt to save changes.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  9. #9
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    or in a picture:
    Attached Images Attached Images  
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  10. #10

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by BuggyProgrammer
    or in a picture:
    Uhm, I'm really stupid. How bout you come all the way over here to East Timor and show me how to do it? I don't know how to use a mouse, let alone menus.




















    Kidding. Thanks.

  11. #11
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    im used to idiots so i just sometimes think everyone i help is one. j/k
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  12. #12

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Your old avatar was better, but this is good too

  13. #13
    khalik
    Guest
    Originally posted by mendhak




    khalik
    I didn't understand completely what you just said. Can you elaborate?

    I have a 4KB "working" (pun unintended) example of the crashing example. I'll post it.

    sorry mendhak... not sure about subclassing.. but it all the time happen when i work with treeview (when loading huge data)
    and working with sheridans (3rd party controls) i was also looking for a solutions... i thought it may be a memory problem....

    this will happen when i end the program from design mode.

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