> I've recently migrated/rewrote our small communication application from
> Perl to C++ and used FLTK for the GUI part, the idea was to be able to
> start using it on Win/Mac rather than giving Linux boxes to users...
> 
> As it's made of 2 pieces, the receiver (which is a daemon/service running
> under the user that is logged in) and the sender (a small app that search
> for and connect to the daemon/service running on the receiver's side), I
> needed the daemon to keep the FLTK code and make sure the window is
> displayed with the sender details... everything seems to work fine under
> Linux/X11, though on the Mac side the code compiles fine but some
> settings,
> mainly FL_Window::show(), fail under fork() and the child segfaults (and
> the window is not displayed), if I run the code without forking anything
> it
> seems to work fine... any idea how I could work around this problem or did
> I miss anything?

You can't really fork on WinXX anyway, though cygwin can emulate it if you want 
to go that way.

For my part, rather than forking off the child process, I'd be inclined to make 
two fully independent processes and connect them via a socket or a named pipe 
or whatever.

I suspect (others would know better) that an OSX child process may not have the 
right properties to generate its own windows etc., and this may be what is 
afflciting you. If you do it voa two processes, the OSX and WinXX versions 
ought to then work. maybe!




SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to