Hi, I manage to build mfc42 as .so library and a application using it (as a .so library too). I execute it using simple loader which is linked to wine and I load my application in it's WinMain routine. The problem is how clearly to unload mfc and my application (to invoke mfc's destructors before loader is terminated) All is fine except that there is a "zombi" reference to code in shared library which is invoked in wine code and generate GPF. debugger stops somewhere in aplication's InitInstance !!! - and the stack is broken so I can't catch where exactly the problem is. Any hints are welcome. I'm using wine-2000517 shapshot downloaded form wine.datapary.no TNX. Damyan p.s. If any of You is interested in details I can share my experience. __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/