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

  • Thread starter Thread starter Sujata N
  • Start date Start date
S

Sujata N

Guest
Hi All,

I have an application developed in MFC(VC++). 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


Sujata

Continue reading...
 
Back
Top