[Dev-C++] Multidimensional arrays and memory leaks
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <tay...@dd...> - 2004-08-10 16:36:33
|
Hi, Since I tried to use a 2D array "number[50000][2]" I started to have random crashes at run time and debugging. I guess this is a memory handling problem (what do you think?). Thus, I tried to put the array in the heap (would that help?). However I tried many way to do it without success. I declared the array in the header of a class as: float number[][]; Then I tried to put it in the heap using GlobalAlloc in the constructor. Could anybody give me a hand? Thanks a lot. Jorge --------------------------------------------- This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ |