AudioGenie2.cs crashes under Win8 64
Brought to you by:
audioexpert,
audiogenie
I tried to use AudioGenie2.cs from Powershell under Windows 8 64bit, but it crashed immedeatly
The problem might be related to CoTaskMemFree of the returned C++ strings
Using IntPtr instead of string seems to solve the problem
[DllImport("C:\\Programs\\compress-music\\AudioGenie\\AudioGenie3.dll", CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)]
private static extern IntPtr GetAudioGenieVersionW();
public static string GetAudioGenieVersion()
{
IntPtr strPtr = GetAudioGenieVersionW();
return (string)Marshal.PtrToStringBSTR(strPtr);
}
I have an updated version of AudioGenie2.cs on the Compress-Music project. I can't see how to upload to this bug.
Now also uploaded to AudioGenie patch 3604043.