I call PacketGetAdapterNames() but only during the start of the program and certainly not while opening the serial port. So unless you or someone else have a solution, I think I will have to go for the "dirty" solution and try once more in case the first attempt fails. We are heading away from Win98 to WinXP anyway and we have just been formally informed by Dell and thus Microsoft that after June 30th they will no longer supply Win98.
Jens. > > > > After the otherwise succesful use of the packet driver I am now having a > > wierd problem. My program is using the packet driver to communicate with > > some controller boards and all that works fine. Then for some calibration > of > > the equipment I communicate with a voltmeter over a serial cable and that > > too works fine on WinXP but on Win98 I get this error message: > > > > Thread Error: Overlapped I/O operation in progress (997) > > every second time I open the serial port. We have tracked this and it is > > right down to the spot when the Win API open operation is called. If the > > WinPCap is not in use this doesn't happen. Also if we try again i.e. the > > times we don't get this error message it all works just fine. If nothing > > else I guess we will have to trap the exception and then just do it once > > more. Also remember this is on Win98 only and it seems to work fine on XP > > and presumably NT and 2000. > > > > Any clues on what goes on and what can we do (besides the dirty solution > > above)? > > Very few. > Do you call PacketGetAdapterNames() or pcap_lookupdev() to get the list of > the adapters? These functions try to open all the adapters of the machine to > retrieve the description, and maybe opening the serial link causes some kind > of conflicts. > > Loris > > > > Thanks, > > > > Jens. > > > > > > > >
