Box2D Forums

It is currently Sat May 18, 2013 5:10 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Access violation
PostPosted: Sun May 10, 2009 12:42 am 
Offline

Joined: Sat May 09, 2009 1:30 pm
Posts: 5
I am trying to write a small game with IrrLicht and Box2D, when I try to get the position of a body (b2Body.getPosition) I get an access violation exception. The program is OO, I wrote a class to contain the graphics and pointers to bodies, and another one to to store the world, and a vector of the previous class. Please help me, if you need more information just ask.


Top
 Profile  
 
 Post subject: Re: Access violation
PostPosted: Sun May 10, 2009 2:55 am 
Offline

Joined: Mon Jan 07, 2008 10:51 am
Posts: 1911
Yes, we do. I suggest showing some code, specifically where the violoation occurs, where you create bodies and where you create the world.


Top
 Profile  
 
 Post subject: Re: Access violation
PostPosted: Sun May 10, 2009 8:58 am 
Offline

Joined: Sat May 09, 2009 1:30 pm
Posts: 5
It gets worse :cry: When commenting I found two errors, I fixed them and now I get access violation exception when initializing. These caused the original error too, so I guess the problem is not with Box2D, or my interface, it's somewhere in the other parts of the code.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group