Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
Hi Mathew,
Just noticed this defect now.
Can you explain what 'Imbalances' mean, and how I can test it as well?
The Cdecl means:
"The caller cleans the stack. This enables calling functions with varargs, 
which makes it appropriate to use for methods that accept a variable number of 
parameters, such as Printf."

I have no problem changing all the DllImport declarations, but I'm trying to 
first understand how you noticed the issue. The original code I used was here, 
http://stoyanov.in/2010/01/08/encoding-uncompressed-audio-with-flac-in-c/
It might be a bug by the original author

Original comment by [email protected] on 10 Jun 2013 at 3:25

from practicesharp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
I noticed it when I used the plugin for a personal player I'm working on. I 
opened the Flac DLL in Dependency Walker and it says the calling convention 
used within that DLL is cdecl.

By default, P/Invoke functions use StdCall if an explicit calling convention 
isn't specified in the DllImport attribute. So it's using the wrong calling 
convention to call those functions.




Original comment by mathew1800 on 12 Jun 2013 at 5:33

from practicesharp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
Oh, forgot to mention that what I meant by a stack imbalance is the error that 
gets thrown: http://msdn.microsoft.com/en-us/library/0htdy0k3.aspx 
PInvokeStackImbalance

Original comment by mathew1800 on 12 Jun 2013 at 5:35

from practicesharp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024

Original comment by [email protected] on 14 Jun 2013 at 7:46

  • Changed state: Accepted

from practicesharp.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
Will be released in the next release

Original comment by [email protected] on 14 Jun 2013 at 7:47

  • Changed state: Fixed

from practicesharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.