ufuko
10-07-2008, 07:23 AM
Hi,
I have two applications. First one (let's say A) draws opengl objects on the window of second application(let's say B). Thread of A creates opengl context using the handle to device context of window of B. when closing A, I am calling wglMakeCurrent(NULL,NULL). Then, ReleaseDC and wglDeleteContext are called in order. B is still running. Then, I am running A again, which makes my computer crash. But, this code runs properly in some of other computers. To run my applications properly, when I stop running A, I have to stop B too. Then I have to run both of them again. What can be the problem? My computer crashes wglMakeCurrent call in the second run of A(while B is runnnig).
I have two applications. First one (let's say A) draws opengl objects on the window of second application(let's say B). Thread of A creates opengl context using the handle to device context of window of B. when closing A, I am calling wglMakeCurrent(NULL,NULL). Then, ReleaseDC and wglDeleteContext are called in order. B is still running. Then, I am running A again, which makes my computer crash. But, this code runs properly in some of other computers. To run my applications properly, when I stop running A, I have to stop B too. Then I have to run both of them again. What can be the problem? My computer crashes wglMakeCurrent call in the second run of A(while B is runnnig).