I'm using Open cascade 6.5 in my project which is MFC MDI application.
I'm just doing new operation multiple times and the application crashes exactly after 19th new operation but it may crash after some other count like 50th new operation in some other machine.
I have tested "ImportExport" MFC sample in Open Cascade 6.5. Same problem is happening with this sample also.
By printing messages in Open cascade code I observed that it is crashing in "wglMakeCurrent" function call of "TxglWinset" function in "Opengl_txgl.c" file.
Please help to resolve this issue if anybody knows the reason of this problem.