Bug search: derelict3 and scope(exit)

Namespace rswhite4 at googlemail.com
Wed Jun 26 00:55:25 PDT 2013


Since I had a problem by using derelict3 (more precise: I get an 
Access Violation), Mike Parker and I were looking for the 
problem. Today Mike Parker figured out that it happens only if 
scope(exit) is used in combination with glPopAttrib. But because 
we have not much experience in reading assembly, and I (and maybe 
he also) have no good debugger, I like to ask for help to find 
and reduce the bug.

The regarding post with the example code is here: 
http://dblog.aldacron.net/forum/index.php?topic=832.msg1011#msg1011

If you write the scope(exit) glPopAttrib(mask); without the scope 
statement and move it to the end of the function everything works 
fine. But IMO it should work also with scope(exit).
Thoughts?


More information about the Digitalmars-d-learn mailing list