Solved

SDL Problem, Unhandled Exception

Posted on 2004-03-23
3
316 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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.

911 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

21 Experts available now in Live!

Get 1:1 Help Now