Solved

SDL Problem, Unhandled Exception

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

776 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