Field set focus

2003-08-15 Thread gamepower111
Hi everyone, I use the following statement to set the current focus to a specified field. but when excute this statement, the emulator give me an error says unallocated chunk of memory and read from memory location 0x43AA, which is in an unallocated chunk of memory. what happened of this?

Re: Field set focus

2003-08-15 Thread gamepower111
sorry, i made a stupid mistake, now it works well. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: memory leak

2003-08-14 Thread gamepower111
Thanks a lot!! Dave Carrigan [EMAIL PROTECTED] ??:[EMAIL PROTECTED] On Thu, Aug 14, 2003 at 12:53:10AM +0100, gamepower111 wrote: In the FormHandleEvent function, i used the following codes, when the form can be closed correctly and return to the main form of the project. but if i

Re: Non-relocatable chunk leaked

2003-08-14 Thread gamepower111
From the size of the log file, it looks the leaks come from the link-list. The log file contains the following sentence: Non-relocatable chunk leaked at 0x0003C460, size = 24 Looks like you allocated the memory by MemPtrNew() [ or new if C++ ] and then forgot to de-allocate it. Would

Re: FrmNewLabel

2003-08-14 Thread gamepower111
Great! Now i decide to use WinEraseRectangle and WinDrawChars to do my task... Thanks Alan! fan Alan Ingleby [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ :[EMAIL PROTECTED] gamepower111 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] yes, WinDrawChars() is a good and easy way. but I have

Re: Non-relocatable chunk leaked

2003-08-14 Thread gamepower111
I have changed the setting, and now the dump from the log file looks like: (but I still dont know how to solve the problem: 0.000: WARNING: 0.000: WARNING: Memory Leaks 0.000: WARNING:

memory leak

2003-08-14 Thread gamepower111
Hi everybody, When I exit the palm os application, memory leak occurs. I have create a link-list during running, but I have implemented a desconstractor for it. From the size of the log file, it looks the leaks come from the link-list. The log file contains the following sentence: Non-relocatable

Re: Non-relocatable chunk leaked

2003-08-14 Thread gamepower111
Thanks a lot. the problem has been solved!! Ben Combee [EMAIL PROTECTED] ??:[EMAIL PROTECTED] At 02:25 PM 8/14/2003, gamepower111 wrote: I have changed the setting, and now the dump from the log file looks like: (but I still dont know how to solve the problem: This is saying

ErrThrow

2003-08-14 Thread gamepower111
I implemented a socket connection. When the connection was broken, the Emulator will throw an alert saying : ErrorMgr.c, Line:203, ErrThrow called without a pending ErrTry. The codes are as following: try { clientSock cRevMsg; // recieve message from server. // if the

Re: FrmNewLabel

2003-08-14 Thread gamepower111
thanks Alan. yes, WinDrawChars() is a good and easy way. but I have to change the data while the data has been updated. do you have a good suggestion of this? fan Alan Ingleby [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ :[EMAIL PROTECTED] gamepower111 [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: ErrThrow

2003-08-14 Thread gamepower111
It looks like you're using the non-exception version of POL with C++ exception handling. The non-exception version uses Palm OS's ErrThrow/ErrTry system, while the C++ exception version uses real C++ exceptions. yes, I am using POL CNetLibClientStream class to implement the socket

Re: ErrThrow

2003-08-14 Thread gamepower111
I have fixed the problem, I made stupid mistakes! Thanks Ben! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

FrmNewLabel

2003-08-14 Thread gamepower111
Hi everyone, I used the following codes to create a label dynamicly, but why the lable didnt appear on the form? FormType *frmP = FrmGetActiveForm(); char* labelCaption = hello; FrmNewLabel (frmP, 1500,labelCaption , 30,30, stdFont) ; thanks. fan -- For information on using the

Non-relocatable chunk leaked

2003-08-14 Thread gamepower111
Hi all, I have created a link-list during running, and I have implemented a desconstractor for it. When I exit the palm os application, memory leak occurs. From the size of the log file, it looks the leaks come from the link-list. The log file contains the following sentence: Non-relocatable

memory leak

2003-08-14 Thread gamepower111
Hi everybody, In the FormHandleEvent function, i used the following codes, when the form can be closed correctly and return to the main form of the project. but if i exit the application, memory leak occured. If I delete the frmCloseEvent codes in this form, it works well. Who can tell me the

unallocated chunk of memory

2003-08-14 Thread gamepower111
I created a link-list, and the link-list class provides destructor. the destructor is as following: void PlayerList::removeAll() { playerNode *pPlayerListPtr; while (head) { MemPtrFree(head-player); pPlayerListPtr = head-next; MemPtrFree(head); head = pPlayerListPtr; } } When I exit

Re: About CNetLibClientStream

2003-08-14 Thread gamepower111
I use the following codes to implement sock communication with server (done in VC): CNetLib nlib; nlib.Open(); CNetLibClientStream clientSock(nlib, netSocketTypeStream, netSocketProtoIPTCP, localhost,6060, ); clientSock msg; //msg = hello Char