🔒 Locked
Dynamic object allocation
Advertisement
Original Post
Here's what i tried :
(Player is a class)
Player *Players;
Players = new Player[NumOfPlayers];
VC++ gives me assertion failure , any ideas ?
[edited by - Joe Forhens on January 4, 2003 2:26:32 PM]
mmm.. constructor does nothing at the moment
assertion when?
NumOfPlayer Is a small value .
I get a "Visual c++ debug library , debug assertion failed .
expression _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"
Are there any restrictions when allocating objects dynamically ?
[edited by - Joe Forhens on January 4, 2003 3:24:13 PM]
I get a "Visual c++ debug library , debug assertion failed .
expression _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"
Are there any restrictions when allocating objects dynamically ?
[edited by - Joe Forhens on January 4, 2003 3:24:13 PM]
Lol , i fixed the prob guys
Don't ask me what the prob was :D , it's funny
[edited by - Joe Forhens on January 4, 2003 4:06:19 PM]
[edited by - Joe Forhens on January 4, 2003 4:06:19 PM]
share all things with your teachers
cough
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement