[Issue 4710] writeln crashes when called from C code.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 12 21:30:21 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4710
Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |verylonglogin.reg at gmail.com
Resolution| |INVALID
--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2012-09-13 08:30:35 MSD ---
When calling from C you have to explicitly initialize D's runtime first. Your
program calls Phobos function on uninitialized druntime and will obviously
crash.
For more information read this:
http://stackoverflow.com/questions/7480046/implementing-a-c-api-in-d/7486417#7486417
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list