May 02, 2024, 04:26:03 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Nasty bug with NEW found

Started by Ionic Wind Support Team, February 27, 2006, 09:31:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ionic Wind Support Team

A bug with the NEW operator was found that will be fixed in Alpha 2 Rev 8.

If you had a typedef such as

#typedef CHAR unsigned byte

And then allocated an array of that type

p = new(CHAR, 500);

The compiler was calculating the wrong size for the aliased type.  The size would be random causing phantom crashes.

There will be an update this evening that address the problem
Ionic Wind Support Team