whenever i close my window it crashes and im running on winxp
i found that it crashes at this point
within the file of IUnknown.h
bool drop()
{
--ReferenceCounter; // <-- this line specifcially
if (!ReferenceCounter)
{
delete this;
return true;
}
return false;
}
im not sure why :/ but it would be nice if it could be fixed
error?
-
- Posts: 15
- Joined: Thu Dec 04, 2003 11:09 am
- Location: London UK
- Contact:
-
- Posts: 108
- Joined: Fri Aug 22, 2003 1:04 pm
- Location: Kerkrade, Netherlands
- Contact:
-
- Posts: 69
- Joined: Sun Oct 12, 2003 3:42 pm
- Location: Germany
It seems to be that "this" is NULL in this case. I have never heard that subtracting a value from an int. could cause a crash. What you did is probably Window->drop(); and with m_Window being NULL you call
drop() on an non-existing instance thus causing the crash.
I assume the window has been dropped before and is now NULL. You could test Window for NULL and find out. You could call any member function now and the result ( = crash ) would be the same... hope that helps
drop() on an non-existing instance thus causing the crash.
I assume the window has been dropped before and is now NULL. You could test Window for NULL and find out. You could call any member function now and the result ( = crash ) would be the same... hope that helps