
Invalid page fault in module MFC42.dll when closing a program
I wrote a program using VC 6.0 with MFC. Two threads are used in the
program.
When I close the program, two types errors occur:
1. <program name> caused an invalid page fault in module MFC42.dll at
0137:5f412958
2. <program name> caused an invalid page fault in module air.ocx at
0137:1000d53e
where air.ocx is an ActiveX control.
I added a CMainFrame::OnClose( ) function to stop the work thread and
close
all files before calling CFrameWnd::OnClose( ).
Any suggestions would be appreciated.
Thanks.