Hi
It seems that my Question didn;t appeared in Palm Forum,
So i am resending the query again
I do have a problem with Modem dial up, when i opens the serial port and
closes in Appforge Mobile Vb 3.1.
I am Opening the netlib using C in codewarrior and then opening and closing
the port using AFSerial in Appforge. I am doing this in queue, like opening
the netlib performing communication and then closing it. After this i m
initializing the serial port, opening it, receiving data from the serial
port and then closing it and then again opening the netlib and so on...
but after some dial up, then modem will hang up. Sometimes it shows up an
error called as Nilptr while dialling to modem.
Also i have some queries regarding this matter
We are Opening Serial Port(Cradle Port) and Closing it every 2 minutes(Using
AFSerial Ingot).
    a. So How many times can we open and close the serial port one after
another.
    b. I have noticed one thing that even after closing the serial port, the
onComm Event of AFSerial Ingot will keep on executing. In What way we can
control the execution of the onComm event. I have made the threshHold = 0,
but it doesn't have any effect on the execution of that event.
    c. As soon as we close the serial port, we are opening  and closing the
netlib using C Program, and then again Opening the Serial port, but after
about 18 or 19 such opening, it gives a fatal exception known as NilPtr
exception while the modem is dialing. We know that its due to the serial
port which we using. So Whats the best method to close the serial port
before connecting through modem.
    d. In Appforge, Does it opens the serial port in AFSerial as a
background port or foreground port.

Thanks in Advance
Regards
Syed


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to