I have created a an obj 3d viewer. It consists of a background (2 triangles with a texture) + loaded objects that I spin around. Everything works.
On reload of scene, i do the following:
- deletebuffers on all objects - not the background
- load new objects into the scene
After reload (not before) I get an "attempted to read or write protected memory" error in onpaint. I have read other topics on the forum and I am well aware what it is all about (me fucking up the memory basically). If I comment out the background drawing, everything works, so I must fuck up the background buffer memory, however I do not delete/recreate these buffers!!! Any help would be appreciated...