[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Level editor: Access Violation
From: |
Björn Fischer |
Subject: |
Level editor: Access Violation |
Date: |
Mon, 31 Mar 2003 23:34:26 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 |
Hi,
I tried to build a new level. I'm afraid I didn't get too far because
anytime I tried to activate (click) the entrance or exit, pingus quitted.
I traced the error to an Acces violation in sprite_editorobj.cxx:
------------------------------------------------------------------
bool
SpriteEditorObj::is_over(const Vector& pos)
{
// FIXME: We don't handle animated objects special (do we need to?)
if (RectEditorObj::is_over (pos))
{
//std::cout << "ClickPos: " << pos.x << ", " << pos.y
//<< " ObjectPos: " << pos_ref.x << ", " << pos_ref.y << std::endl;
CL_SurfaceProvider* provider = sprite.get_surface ().get_provider ();
float r, g, b, a;
// Position relative to the surface, not world
Vector provider_pos = pos;
provider_pos -= *pos_ref;
provider->get_pixel (int(provider_pos.x), int(provider_pos.y), &r, &g,
&b, &a);
----------------------------------------------------------------------
The last line (line 116) produced the following output in VC++:
----------------------------------------------------------------------
[...]
Nicht abgefangene Ausnahme in pingus.exe: 0xC0000005: Access Violation.
----------------------------------------------------------------------
It seems that the Access Violation only occurs when klicking an entrance
or exit. The other objects behave normal.
Any idea about that? Do other Win-Users have that too?
Greetings
Björn
- Level editor: Access Violation,
Björn Fischer <=