Getting an access violation before main starts
safety0ff via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 10 17:05:24 PDT 2014
On Wednesday, 11 June 2014 at 00:00:47 UTC, Matt wrote:
> Both Window and Input are my own classes, which I've checked
> for leaks, and don't appear to have any. They are basically
> wrappers around SDL functionality. I can include the source if
> people want, but it's pretty long.
>
> The try-catch blocks were put in to see if I could track down
> which part of the code the error's occurring in, which is why I
> believe it to be happening before main() is called.
My shot in the dark is: the SDL wrappers are trying to load the
DLL in the module constructor (static this) and something is
causing them to fail (perhaps the DLLs aren't found.)
Just a guess, good luck.
More information about the Digitalmars-d
mailing list