Solved

SDL Problem, Unhandled Exception

Posted on 2004-03-23
3
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

630 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