Solved

SDL Problem, Unhandled Exception

Posted on 2004-03-23
3
315 Views
Last Modified: 2008-02-01
I have an urgent problem that i cant solve myself, i have a project and its due to Friday and something is wrong.
It crashes when i have killed some enemies, i have lots of debugging and logs but i still cant find it.
Its says unhandled exception error reading memory, but it doesnt make sense to me, cause it should be readable.
I really appreciate all help i can get.
You need SDL and SDL GFX, here is the project:

Project:
www.wiit.net/cplusplus/Project.zip

SDL:
http://www.libsdl.org/
SDL GFX:
http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/

Thanks!
0
Comment
Question by:illion
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 10669839
>>Its says unhandled exception error reading memory

Press "Retry" to bring up the debugger when that problem occurs. It will take you straight to the line where the faulty access occurs and you will be able to figure out why this is happening.
0
 

Author Comment

by:illion
ID: 10673566
The thing is that i cant figure it out, it takes me to either:

obj error or
error reading a surface
or error reading a *pixel

and i dont understand what i should do? why isnt the surface available? and i guess the pixel problem is that there is no pixel where it points but there should be, dont find the error in the code cause i believe my testcollision is good, ive checked with some others and it seems ok. Cant you just try to explain what you think is the problem??
0
 

Author Comment

by:illion
ID: 10673771
Ok i now understand the surface problem and the obj problem but could you please take a look a the pixel problem, it happens when you move right to the enemies and overlaps them in the beginning i dont get that...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now