Hi,
I have an application (written in C#.NET with the 2.0 framework and
OpenGL) that runs several display lists. It's currently a little
slow, so thought it would be a good idea to initialise the most
important display lists first and display them. Then while the user
is able to play with the rest of the interface (scroll and pan options
etc.), initialise the rest of the display lists in a BackgroundWorker
thread.
If I run the application, it runs fine, except the second set of
display lists aren't visible after they've created. If I close the
application down and open it without about 10 mins of closing it, I
get the following error:
"Attempting to read or write protected memory. This is often an
indication that the other memory is corrupt", which occurs on my call
to glNewList. I've tried putting a lock or a mutex around the call to
glNewList, but it doesn't make a difference, I still get the error.
So I have two questions:
1) When my application works after having had a break, why aren't the
second set of display lists visible?
2) Why do I get the error if I run it up again too soon after closing
it down?
Thanks,
Sarah