Allocating....
by Ricky Taylor · in Torque Game Builder · 11/02/2005 (4:47 pm) · 3 replies
How do I allocate something correctly with t2d....
I try U8 *byte = new U8[2];
and then delete byte;
and I get errors.... Im a C# fanboy and I only took a few online tutorials for c++....
Thanks in advanced.
I try U8 *byte = new U8[2];
and then delete byte;
and I get errors.... Im a C# fanboy and I only took a few online tutorials for c++....
Thanks in advanced.
Associate Melv May
Are you getting "array alloc mismatch?" If so, then you'll probably find that you're deleting the array allocation using...
... instead of...
If this is your problem then here's how you do it with single/multiple allocations...
Hope this helps,
- Melv.