Re: using new in shared library causes access violation

2015-06-26 Thread Adam D. Ruppe via Digitalmars-d-learn
Did you call Runtime.initialized in the D side of that initialization fucntion?

Re: using new in shared library causes access violation

2015-06-26 Thread dd0s via Digitalmars-d-learn
On Friday, 26 June 2015 at 16:32:44 UTC, Adam D. Ruppe wrote: Did you call Runtime.initialized in the D side of that initialization fucntion? No i wasn't aware of that. Thank you so much Adam. I still don't know what it does exactly but i just call it when OnPluginInit() is called. Are you

using new in shared library causes access violation

2015-06-26 Thread dd0s via Digitalmars-d-learn
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