October 30, 2025, 02:41:22 AM

News:

IWBasic runs in Windows 11!


Class variable bug found

Started by Ionic Wind Support Team, December 26, 2005, 08:32:59 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Ionic Wind Support Team

In case you haven't run into it there is a bug in derived classes.  Member variables of base classes are accessable in derived classes as they should be.  However if a derived class is used as a base class for a new one then the variables are duplicated a second time resulting in the size of the class being wrong.  And access to the derived classes variables will have the wrong offset.

This has been fixed for the next alpha update.

Recursion at its finest came back to bite me ;)

Paul.
Ionic Wind Support Team