Techniques on debugging runtime errors?

Daniel Green venix1 at gmail.com
Sun Mar 27 17:40:10 PDT 2011


On 3/27/2011 7:58 PM, Andrej Mitrovic wrote:
> Actually it looks like I can recreate this bug in non-realtime mode as
> well. I forgot that I can actually process audio at whatever timing I
> want to (I haven't touched this project in a while..). Oddly enough I
> can call various DLL functions but it fails the second I try to pass
> some audio data to it. Other plugins work fine. I wonder what I'm
> missing here..
Are you passing D data to a C or C++ dll?

It may be related to size and alignment of any data passed.  When I 
wrote wrappers for freetype2 I used long for my dll calls forgetting 
that long and int are the same size for C.

It could also be Structured Exception Handling used by Windows.


More information about the Digitalmars-d-learn mailing list