I emailed to pol, but not sure if they are alive as their website seems 
down, so posting here hoping Ben or someone can help me out!

Hello,

I tried to post this to your forum, but it seems nothing but the home page 
works?

Anyway here is the problem.

If you run a Palm Emulator (I am using Palm OS Emulator v3.5) on your 
desktop and REMOVE your network cable, then execute the following code:

void CMainForm::OpenNetLib()
{
            
            CNetLib::CIFError err = nlib.Open();
            int waitinseconds=20;
            int lim = waitinseconds*SysTicksPerSecond();
          
            if(err == true)
            {
                        MessageBox("Can't Connect to the Internet!!!");
                        CPalmApp::Stop();
            }
            nlib.SetTimeOut(lim);
}

nlib.Open does NOT return an error!

In addition, IsOpened returns TRUE!

This causes the OS to crash and do a soft reset.

Any help on this would be GREATLY appreciated.

In all my functions AFTER my call to OpenNetLib, I also have the following 
check, which doesn�t help.

            if(!nlib.IsOpened())
            {
                        OpenNetLib();
            }
            else
            {
                        Boolean AllInterfaces=false;
                        nlib.ConnectionRefresh(true,AllInterfaces);
            }


Glenn Ford
Communications Engineering Branch
National Library of Medicine

 





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

Reply via email to