|
working with char arrays: memory leak? |
Gerwin Broers
Member #3,681
July 2003
|
There must be something with char arrays that I am missing out on.
Main Project: HeroQuest. And Other Stuff |
Peter Wang
Member #23
April 2000
|
A bit of advice: if you want to use the Allegro unicode routines properly, you cannot assume that a character is always one byte wide. If you want to assume that, there's no point using the Allegro unicode routines: all effort for no gain. As for your problem, I suggest making use of the debugger to inspect the values of any data structures modified by the function and work your way backwards.
|
Richard Phipps
Member #1,632
November 2001
|
Off-topic: Isn't your Avatar from one of the Goblin games Gerwin? |
Gerwin Broers
Member #3,681
July 2003
|
thanks Peter, more then one byte wide.. that complicates matters. but then again, the output of the The purpose of the stated procedure is quite common: cut up a long sentence I am not experienced in using the debugger in any way actually, but I will try. richard; Indeed it is one of those goblins! EDIT: I wrote set_uformat(U_ASCII); after allegro_init(); and the crash in debugmode is now gone. Main Project: HeroQuest. And Other Stuff |
|