Jan Slodicka wrote:
> I thought that a check for cmdptr!=NULL was redundant as cmdptr is obtained
> from a non-NULL handle.
You're right of course -- I was thinking of checking hCmd != NULL, which
you are indeed doing. Sorry, it was a late night last night!
> (The string on the clipboard was non-empty.)
I would have thought you would get "access past end of chunk" in that
case rather than "low-memory access", but yeah, any way you slice it
the current StrNCopy is not going to work in that case either. So my
suggestion wasn't very helpful -- sorry. My analysis three years ago
was better; maybe I had slept the night before I posted it :-).
> Strange - I searched the forum for ClipboardGetItem string before posting,
> but did not receive the links you list bellow.
The more recent one (which is a good read, if I say so myself :-)) was
on emulator-forum.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/