std.gc.setHandle causes Access Violation

Sjoerd van Leent svanleent at gmail.com
Thu May 25 04:31:47 PDT 2006


Walter Bright schreef:
> Sjoerd van Leent wrote:
>> Using a shared DLL and a client Executable, both written in D, I'd 
>> like to be able to use std.gc.setGCHandle, as mentioned in the Win32 
>> DLL example. However, I am getting an Access Violation Error, right 
>> when the call to std.gc.setHandle is made.
>>
>> Does anyone know about this problem, and how to solve it?
> 
> I'd try using windbg on it.

It's a linkage problem, probably a corrupted stack. Using ordinary D 
linkage (together with the mangled names) works fine. Seems that I've 
got to dive into std.demangle...

Regards,
Sjoerd



More information about the Digitalmars-d mailing list