On Thu, 11 Sep 2003 09:05:03 -0700
Flex <[EMAIL PROTECTED]> wrote:
> I have a fairly simple code opening serial manager, send 2 bytes and try
> to read 1, something like that:
>
> void test()
> {
> char tmp[6];
> int result;
>
> tmp[0]=0x0d;
> tmp[1]='v';
> SrmSend(...);
> SrmReceive(ref,tmp,1);
> result=tmp[0];
> }
> so... this works on everything but OS5 devices - tested on T&C, on OS5
> the device resets itself. Strange. If I change it to use old serial
> manager it works... but now I NEED the new one and don't know what to do.
I suppose this is for your nice printer ;) We too have a product which uses
the serial port and the new serial manager is doing quite well.
From the little piece of code i can see seems everything ok, apart
that SrmReceive requires a bit more parameters.
I would suggest to use Palm types (Char, UInt16, etc) rather
than ANSI ones (char, ...), just to be sure you are on the right side wrto
the Palm OS prototypes (the compiler should give you warnings anyhow...).
Btw, if you can show some more code, i'll see if I
can find anything obviously wrong.
--
Best regards,
Alessandro Zummo,
Tower Technologies - Turin, Italy
http://www.towertech.it
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/