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

Thread: Exit Problem

  1. #1
    Join Date
    Nov 2005
    Posts
    77

    Exit Problem

    i have a SDI application when i press a exit button it goes in dlgheap.c and throw the exception

    Unhandled exception at 0x77f9193


    #else /* WINHEAP */

    /*
    * Go through the heap regions and see if the pointer lies within one
    * of the regions of the local heap.
    *
    * Pointers from non-local heaps cannot be handled. For example, a
    * non-local pointer may come from a DLL that has the CRT linked-in.
    *
    */

    for (i = 0; (base = _heap_regions[i]._regbase) != NULL &&
    i < _HEAP_REGIONMAX; i++)
    {
    if (pUserData >= base && pUserData <
    (void *)(((char *)base)+_heap_regions[i]._currsize))
    return TRUE;
    }

    return FALSE;

    #endif /* WINHEAP */
    }->here it is giving error

    please help

  2. #2
    Join Date
    Jun 2005
    Location
    Chennai , India
    Posts
    1,375

    Thumbs up Re: Exit Problem

    I assume your heap is destroyed.

    May be at OnInitDialog. Your heap is destroyed. I guess you override something. When CDialog destructor is called( Close, OK, Cancel ), heap memory is freed.
    It takes seconds for rating…that actually compensates the minutes taken for giving answers
    The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
    Regards, Be generous->Rate people
    Jayender!!

  3. #3
    Join Date
    Jun 2005
    Location
    Chennai , India
    Posts
    1,375

    Thumbs up Re: Exit Problem

    Note : Try to comment parts of your code. This way you can determine, which part is problematic. (in OnInitDialog .. etc)
    It takes seconds for rating…that actually compensates the minutes taken for giving answers
    The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
    Regards, Be generous->Rate people
    Jayender!!

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center