> I am using Codewarrior 6 on Windows 2000, using the latest POSE with a IIIx
> ROM running OS 3.3. I got the same problems when running it on the actual
> IIIx so decided to keep using the POSE as its easier to reset.
Well, I don't know why you're seeing what you're seeing on an actual device, but
as for Poser, there's the following in the _Bugs.txt file:
* When using NetLib redirection, NetLibSelect doesn't support the
use of sysFileDescStdIn or sysFileDescStdOut.
-- Keith Rollin
-- Palm OS Emulator engineer
"Rhys Arkins" <[EMAIL PROTECTED]> on 05/28/2000 09:10:30 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "Rhys Arkins" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/HQ/3Com)
Subject: NetLibSelect and EventLoop errors
I have attempted to modify my event loop using NetLibSelect so it can listen
on both a network socket and stdin. After having no luck, I have simplified
it right down and still don't believe what I'm seeing. My simplified
eventloop is:
static void AppEventLoop(void)
{
EventType event;
Err err;
Word error;
Int16 rv;
NetFDSetType rfds, wfds, efds;
do {
netFDZero(&rfds);
netFDZero(&wfds);
netFDZero(&efds);
netFDSet(sysFileDescStdIn, &rfds);
// if (netfd > 0)
// netFDSet(netfd, &rfds);
rv = NetLibSelect(AppNetRefnum, netFDSetSize, &rfds, &wfds,
&efds, -1, &err);
if (netFDIsSet(sysFileDescStdIn, &rfds)) {
EvtGetEvent(&event, 0);
if (! SysHandleEvent(&event))
if (! MenuHandleEvent(0, &event, &error))
if (! AppHandleEvent(&event))
FrmDispatchEvent(&event);
}
} while (event.eType != appStopEvent);
}
NetLibSelect continually returns -1, and err is set to 4612, which appears
to be NetErrParamErr.
Other weird things:
- the GUI still responds, but the cursor flashes very quickly. It appears
that although rv is -1, netFDIsSet must still be returning true.
- if I include the two commented out lines and add netfd, the GUI never
comes up the program is not usable.
I am using Codewarrior 6 on Windows 2000, using the latest POSE with a IIIx
ROM running OS 3.3. I got the same problems when running it on the actual
IIIx so decided to keep using the POSE as its easier to reset.
thanks again for any assistance!
Rhys.
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/