Help passing D strings to C libs

Daniel Green venix1 at gmail.com
Mon Mar 14 00:10:08 PDT 2011


On 3/14/2011 3:07 AM, Gene P. Cross wrote:
> I found the problem.
>
> I've set up my 'main' file to act on various game states and because my load state
> is physically below the running state (where the problems were occuring), even
> though they were getting called first, the program starts in the loading state,
> dmd wasn't having it. I tried moving the load state above the rest, and it works
> fine. So sorry to have wasted everybody's time with such a simple and stupid
> mistake. Thankyou for all your help.
That sounds like an issue, I've ran into on occasion.  When using 
runtime bindings for shared libraries.  If you forget to initialize them 
in every module first thing.  The program will segfault.


More information about the Digitalmars-d-learn mailing list