FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting strange "object.Error: Access violation"

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
wobbles-grogan



Joined: 24 Sep 2012
Posts: 4

PostPosted: Fri Nov 23, 2012 4:43 pm    Post subject: Getting strange "object.Error: Access violation" Reply with quote

Hi,

Im getting a strange error when I run a simple Derelict SDL program.

Code is:

Code:

module test;

import std.stdio;
import Derelict.sdl.sdl;

pragma(lib, "DerelictSDL.lib");
pragma(lib, "DerelictUtil.lib");

const char* WINDOW_TITLE = "SDL Starter..";
const char* WINDOW_MODE = "0";
int main(char[][] args){
   DerelictSDL.load();
        SDL_Init(SDL_INIT_VIDEO);
   SDL_Quit();
   return 0;
}


and the error is:

Code:

PS C:\DProjects\firstProj> .\bin\test.exe
object.Error: Access Violation
----------------
0x0040D4FC
0x0040D387
0x772AB679 in LdrRemoveLoadAsDataTable
0x772AB64B in LdrRemoveLoadAsDataTable
0x7726010F in KiUserExceptionDispatcher
0x004039C2
0x004035E4
0x00417301
0x74A43677 in BaseThreadInitThunk
0x77289F42 in RtlInitializeExceptionChain
0x77289F15 in RtlInitializeExceptionChain


Anyone see this before?
I've been googling around but theres very little solutions...

Cheers
Back to top
View user's profile Send private message
wobbles-grogan



Joined: 24 Sep 2012
Posts: 4

PostPosted: Mon Nov 26, 2012 10:57 am    Post subject: Reply with quote

Ok, i believe I've found my issue.

Just in case anyone else comes across the same thing:
It looks like the program was looking up the wrong SDL.dll file, so, I directed it to the correct one using the following code segment...

Code:

version(Windows){
       DerelictSDL.load("Path_To_The_Correct_SDL.dll_FIle");
}


Thats put in place of the DerelictSDL.load() piece in the original posting...
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Nov 29, 2012 4:58 am    Post subject: Reply with quote

I ask that from now on you take all Derelict-related questions over to the new forums at http://dblog.aldacron.net/forum/index.php. I see you already have a membership there. I rarely peek in here any more.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group