Re: Problem using StrIToH on Palm Os5.2

2004-04-08 Thread Alexander Lange
Hello Alexandre, char *PalmOS = NULL; Very wrong! You must allocate enough memory for the character buffer before you write to it: char PalmOS[maxStrIToALen]; There is a constant maxStrIToALen that tells you how long the maximum buffer size must be. Look into the API. Regards, Alexander. --

Problem using StrIToH on Palm Os5.2

2004-04-07 Thread Alexandre Luz Barreto
I have a program that works fine on devices with palmos 4.1 and early but on OS 5.2 i get a invalid ptr error whats wrong? ULong romVersion; char *PalmOS = NULL; FtrGet(sysFtrCreator, sysFtrNumROMVersion, romVersion); StrIToH(PalmOS,romVersion); thnx -- For information on using the Palm

Re: Problem using StrIToH on Palm Os5.2

2004-04-07 Thread Pavel Szalbot
I have a program that works fine on devices with palmos 4.1 and early but on OS 5.2 i get a invalid ptr error whats wrong? ULong romVersion; char *PalmOS = NULL; FtrGet(sysFtrCreator, sysFtrNumROMVersion, romVersion); StrIToH(PalmOS,romVersion); writting to memory address 0 is

Re: Problem using StrIToH on Palm Os5.2

2004-04-07 Thread Ton van Overbeek
In article [EMAIL PROTECTED], Alexandre Luz Barreto wrote: I have a program that works fine on devices with palmos 4.1 and early but on OS 5.2 i get a invalid ptr error whats wrong? ULong romVersion; char *PalmOS = NULL; FtrGet(sysFtrCreator, sysFtrNumROMVersion, romVersion);

Re: Problem using StrIToH on Palm Os5.2

2004-04-07 Thread Alan Ingleby
Ton van Overbeek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In article [EMAIL PROTECTED], Alexandre Luz Barreto wrote: I have a program that works fine on devices with palmos 4.1 and early but on OS 5.2 i get a invalid ptr error whats wrong? ULong romVersion; char