CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Unload Me

  1. #1
    Join Date
    May 2001
    Posts
    4

    Unload Me

    Hello,

    How do I resolve a Dr.Watson error ( Access Violation 0xc0000005) while unloading a form

    Thankx
    Ravi


  2. #2
    Join Date
    Aug 2000
    Location
    England
    Posts
    185

    Re: Unload Me

    Have you checked that you are not trying to close the form twice, perhaps in a close button and then in the Form_Close event? That would cause errors.


  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Unload Me

    Once I had a similar matter. That time it was caused by a component (dll or exe activex) not correctly closed and setted to nothing as inside it had an api call to create and destroy a timer which was not destroyed correctly. Point is: check for correctly unload all loaded components and for set them to nothing, and check for correct closing of components (maybe to generate a log file on Terminate event could help) and free of memory resources.

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured