On Wednesday, 11 June 2014 at 00:05:25 UTC, safety0ff wrote:
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.
I'm not sure how it could be? The DLLs are sat in the same
directory as the executable. Not only that, but (if you're
talking about my Window and Input classes when you say
"wrappers") I've tried putting the Derelict loading into the
Window.create() function, which means it would be caught by the
first try{} block in main(), which it isn't.