none
MFC Application crash while closing a document on touch screen laptop

    Pertanyaan

  • Hi All,

    I have an application developed in MFC. The application is about opening various types of files like image files, doc files, pdfs,etc. When we are trying to close the documents the application crashes on a touch screen laptop, but it works just fine when the touch functionality is disabled. When added log messages in the code, we found that the application is crashing on OnCloseDocument event. This event contains only lines of code:

    1. AFX_MANAGE_STATE(AfxGetAppModuleState());

    2. COleServerDoc::OnCloseDocument();

    The first lines goes well but after the second line takes care of calling all the document closing and destructor calls. Except when the application is done with all the destructions, the application crashes without call the last log message.

    Please help me understand what could be the possible cause of the above scenario. IS there any compatibility issue of the APIs with the touch screen laptop because when we disable the touch functionality no such issue occurs.

    Thanks in Advance.

    Regards,

    Sujata

    Kamis, 15 November 2018 09.52

Semua Balasan

  • Sujata,

    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a project management application. I suggest you re-post to the following:

    https://social.technet.microsoft.com/Forums/en-US/home?forum=whatforum

    John

    Kamis, 15 November 2018 13.58
  • Thanks John, will do.
    Kamis, 15 November 2018 14.00