Menu

#11 AudioGenie2.cs crashes under Win8 64

open
nobody
None
5
2012-12-08
2012-12-08
Anonymous
No

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);
}

Discussion

  • Brent

    Brent - 2013-02-10

    I have an updated version of AudioGenie2.cs on the Compress-Music project. I can't see how to upload to this bug.

     
  • Brent

    Brent - 2013-02-10

    Now also uploaded to AudioGenie patch 3604043.

     

Log in to post a comment.

MongoDB Logo MongoDB