Hello everbody: I'm trying to run an programm controlling various hardware of a telescope. It uses only two com ports in order to communitcate with the hardware. It reads and writes several status files to/from the harddisk. No errors occured running this programm under win98 for months. Using wine it workes well with the small exeption that it hanges after several minutes. It turned out that it hangs after several seconds, if we decreased the number of available file handels from 1024 to 40 using the "ulimit -n 40" command. The error message before it hangs is always: "wine client error:9: no fd received for handle 108" Duing the runs I often get: "fixme:comm:SetupComm insize 2048 outsize 2048 unimplemented stub" It turned out that removing nearly all code reading or writing in the com ports and (nearly) all code reading or writing files, made the programm much more stable (removing only file related code didn't help). It worked for more than an hour without any problems but crashed when I tryed to run it for a whole weekend. We are considering to restart the programm authomatically every 10 minutes. Would you suggest any better solution? Yours Dirk
On Mon, 25 Apr 2005 13:10:08 +0200, Dirk Huenniger wrote:> We are considering to restart the programm authomatically every 10 > minutes. Would you suggest any better solution?Well, finding where the leak is would be a good start :) It looks like either Wine or your program is never closing any handles or possibly you are starting huge numbers of threads which then never quit. thanks -mike