I've searched the forums on strange behaviour of the DeleteContext, but i couldn't find a good answer or idea on it. So, in the finishing part of the app, when window is destroyed, i call the usual functions to deinit gl (makecurrent(null, null) and wgldeletecontext(hrc) and the others). The strange part is that this method works very well on most of the cases, but in some of them (usually huge maps with many textures) deletecontext simply crush - i test if the makecurrent succeed or hrc is valid, i also call glfinish. Another thing is that everything is ok if i use a console app that creates the gl window, but the crushes appear in a mfc app that cand preview some scenes.
Sorry if this seems stupid, but i haven't got a clue.