www.digitalmars.com         C & C++   DMDScript  

D - application Fatal Error with DirectX/COM - test.zip

I've been trying covert an application which uses DirectSound from C++ to D and
have gotten as far as having the app make a call to DirectX at which it crashes
with a fatal error.

The call to CreateSoundCapture seems to return successfully with a valid pointer
to the IDirectSoundCapture object but calling the objects's CreateCaptureBuffer
method (or any other method)causes the app to crash.

Simplfied sourcecode + makefile + dsound.lib import lib is attached
Sep 19 2003