Problem:
Call/Initialize Poco code from inside a C library, using loader (3rd party C program, our code is in c++).
Now the question: Is this a problem with gcc that Forking a process does not call the constructors and just duplicates the memory? I have tried calling _queue.clear() inside AsyncChannel::AsyncChannel() but no results...
Has anyone seen this problem before? any proposed solution?
Response here:
http://pocoproject.org/forum/viewtopic.php?f=10&t=6378
Summary: create threads after fork and not before. Same problem with Poco::Util::Timer and other classes also.