On 2012-10-03 02:55, timotheecour wrote:
How do I call std_stdio_static_this() in std.stdio from a dynamically
loaded shared library (osx) ?

I need to do this in my scenario:
1) main program is launched
2) dynamic library is created
3) dynamic library is loaded and a function from it is called
4) everything works fine until a writeln(0) is called from a function
inside the dynamic lib, at which point it crashes. But by calling
std_stdio_static_this2 (see below) BEFORE any call to writeln (and
similar functions), everything works fine.

Dynamic libraries are not properly working, see this thread:

http://forum.dlang.org/thread/k3vfm9$1tq$1...@digitalmars.com

And this post:

http://forum.dlang.org/thread/k3vfm9$1tq$1...@digitalmars.com?page=3#post-k4219f:24uft:241:40digitalmars.com

--
/Jacob Carlborg

Reply via email to