I have memory error probelm when using Palm Emulator. I have a stuct it's
kind of huge ...
typedef struct
{
char Plant[6];
char WorkCenter[8];
char Material[18];
char MPO[20];
char SO[6];
char LineItem[6];
char SOQty[10];
char UnitOfMeasure[6];
char PLNPRDOrder[12];
char OrderQty[13];
char PlanPCS[10];
char Balance[10];
char CutDate[8];
char StartDate[8];
char EndDate[8];
char ExFactoryDate[8];
char Variance[10];
char CutQty[10];
char LineInQty[10];
char LineOutQty[10];
char ShippedQty[10];
}LPRecord;
When ever i create a new record i use the func MemHandleNew()
temp = MemHandle(sizeof(LPRecord)) // Is this the correct way to allocate
memory or not
Then when i'm filling the struct some times it gives me a error saying i'm
using some memory areas in the form objects it self. Some times the memory
manger data sructure memory areas as well.
Can someone help me with how to avoid this porblem. I normally get these
errors when trying to allocate memory area for structures and pointers.
pls help ................
Thanks in advance,
Dhanushka.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/