using new in shared library causes access violation

dd0s via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 26 09:28:38 PDT 2015


hi,

I have a c++ program with a plugin system and i try to write a 
plugin for it.
when the plugin is loaded by the program the extern (C) int 
OnInit() method is called. so far everything works fine. But as 
soon as i try to create a new class instance a segmentation fault 
occurs ( the constructor is empty ).

Here is a screenshot with all the important code
# error message in the left console
# right top the executed code
# right bottom the dub.json i use
http://imgur.com/PfvsAm4

hopefully any1 can make sense of this error :/
thank you for helping



More information about the Digitalmars-d-learn mailing list