Welcome, Guest. Please login or register.

Author Topic: Libraries & CreateNewProc  (Read 3208 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline D00kie

  • Jr. Member
  • **
  • Join Date: Apr 2003
  • Posts: 68
    • Show all replies
    • http://www.tigger1.demon.co.uk
Re: Libraries & CreateNewProc
« on: August 31, 2004, 09:52:05 PM »
   Yup, you can share just about any library pointer between processes.

   In the Miami documentation anyway, they do mention that you can't share bsdsocket.library the same way, though. Multiple calls to bsdsocket in the same program will cause a crash, although the reason escapes me.

   You just have to be mindful that when you design Internet applications, you need to do all of the socket stuff in its' own process and close SocketBase when you're done. It's probably the most sensible design to spawn your download/upload process like a 'worker thread' that signals or msgs the main task when it's done or whenever the progress level changes.

   Probably one of the hardest lessons I've had to learn anyway... :pissed:

-D00kie
Haiku is a joke
What a waste of freaking time
I have eggs to suck