DWT+OpenGL crashing on Vista

Eldar Insafutdinov e.insafutdinov at nowhere.com
Sun Jan 18 16:06:20 PST 2009


Bill Baxter Wrote:

> Here's a modified version of one of the DWT opengl snippets that
> reproduces the crash for me.
> About 1 in 10-15 runs this will crash (seems to be inside the GL
> driver) soon after startup with the error:
> 
> """
> dwt.DWTException.DWTException: Failed to execute runnable
> 
> object.Exception: Access Violation
> """
> 
> Can anyone else reproduce this (particularly Vista users)?
> I'd be happy to send the exe to anyone who would like to try it off
> list.  But it's a 3MB exe  (compresses to about .7 MB).
> 
> On Sun, Jan 18, 2009 at 11:35 PM, Sergey Kovrov
> <kovrov+digitalmars at gmail.com> wrote:
> > On 1/18/2009 5:51 AM, Bill Baxter wrote:
> >>
> >> So far haven't been able to isolate it.
> >> I updated another program that displays meshes with similar code and
> >> it works fine.
> >> So sounds like some kind of memory problem in my code to me too.  Or
> >> possibly passing a bad pointer to GL somewhere.  I have glGetError's
> >> sprinkled all over my code and get no errors from that.  But GL
> >> doesn't know if you pass it a bad pointer.
> >>
> >> I remember one problem I had long ago when I called glGetIntegerv for
> >> something, thinking it returned 1 value when it actually returned two.
> >>  Seems likely it could be something similar here.
> >>
>> 

That was the primary reason for me to stop using GTK and start working on the Qt binding. I experienced not crashes but serious slowdowns with GTK and openGL. With Qt it doesn't happen.



More information about the Digitalmars-d mailing list