Derelict3 object.Error@(0): Access Violation?

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 27 05:13:06 PST 2015


On Friday, 27 November 2015 at 07:48:15 UTC, Alexander wrote:
> import std.stdio;
>
> import derelict.opengl3.gl3;
>
> import derelict.sdl2.sdl;
>
> pragma(lib, "DerelictUtil.lib");
>
> pragma(lib, "DerelictGL3.lib");
>
> pragma(lib, "derelictSDL2.lib");
>
> void main(){
>
>  	DerelictGL3.load();
> 	DerelictGL3.reload();
>  //DerelictSDL2.load();
>
>
>
>  writeln("Fred is nigh on impossible to
>
> configure");
>
> }
>
> this is all the code I have, and I get an object.Error@(0): 
> Access Violation.
> I have looked all over the internet and I am unable to find a 
> fix for this.
> Any ideas on how to fix this or what is the cause?

the Error@(0) is almost always a null pointer dereference. Why 
that would be occurring for just attempting to load the libs i'm 
not sure.


More information about the Digitalmars-d-learn mailing list