looks like too much global memory is allocated
everything >1kb of global memory crashes with
Error: Sys_LoadLibrary error:
/home/vagrant/.callofduty4/plugin.failtest.tmp: cannot allocate
memory in static TLS block
Error: Failed to load the plugin
/home/vagrant/.callofduty4/plugin.failtest.tmp!
same result on windows
-fpic was missing
std.datetime didnt cause crash anymore after i added the fpic
option
import vibe.inet.url;
import vibe.inet.urltransfer;
import vibe.mail.smtp;
import vibe.stream.counting;
import vibe.stream.memory;
import vibe.stream.operations;
import vibe.stream.ssl;
import vibe.stream.tls
i think i started to narrow down the error, and i think the
actual error is not in vibe.d, or atleast no only there
since import vibe.d causes the shared lib to crash my program, i
investigated the vibe.d module. it consists of all the vibe
submodule + some modules of phobos. so i started comm
On Thursday, 27 August 2015 at 15:16:25 UTC, John Colvin wrote:
I think your problem is that you need to initialise the D
runtime. Perhaps adding a call to
http://dlang.org/phobos/core_runtime.html#.Runtime.initialize
inside OnInit will solve it for you. Also, remember to
terminate the runtime
removing the import vibe.d is enough to make it work as a shared
library
On Thursday, 27 August 2015 at 11:34:36 UTC, John Colvin wrote:
P.S. this would be better asked in
http://forum.dlang.org/group/learn or
http://forum.rejectedsoftware.com
made a thread before on the vibe forum too, see here
http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/threa
On Thursday, 27 August 2015 at 09:10:59 UTC, Rikki Cattermole
wrote:
Perhaps try 0.7.24 which is the last stable release (0.7.25 is
in alpha according to git tags).
thx rikki, but sadly the newer version didn't solve my problems
when i import the vibe.d module my project it dies with the error
message "cannot allocate memory in static TLS block"
compiled as dynamic library on debian x86
"name": "alice",
"description": "A minimal D application.",
"copyright": "Copyright © 2015, dom",
"authors": ["dom"],
"targetType": "d