Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SDL Problem, Unhandled Exception

Posted on 2004-03-23
3
Medium Priority
?
324 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 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

688 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