I created a shared library that calls NetLibOpen. It will crash on some simulators, 52, 53 and Tungsten T, but works on Tungsten C and Zire 71 simulators. The problem I found is that some local variables such as netLibRef, clientContext and refNum (the later two are generated by CW9.3 template) are changed after NetLibOpen call.

                err = SysLibFind("Net.lib", &netLibRef);
                if (!err) {
                        err = NetLibOpen(netLibRef, &ifErrs);
                        if (ifErrs) {
                                NetLibClose(netLibRef, true);
                                err = ifErrs;
                        }
                        if (err == netErrAlreadyOpen)
                                err = errNone;
                }

It is very weird. Does somebody have idea what wrong?

Thanks

_________________________________________________________________
MSN 9 Dial-up Internet Access fights spam and pop-ups � now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/



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

Reply via email to