Git Product home page Git Product logo

femyou's People

Contributors

oaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

femyou's Issues

A callback was made on a garbage collected delegate

After running my simulation loop for a short while (setting inputs - AdvanceTime - reading outputs)the program crashes with this error:

Process terminated. A callback was made on a garbage collected delegate of type 'Femyou!Femyou.FMI2+fmi2StepFinished::Invoke'.
   at Femyou.Instance.AdvanceTime(Double)

Turns out that this happens when the garbage collector kicks in. If I call GC.Collect in my simulation loop I get the error immediately.

If I debug the program in Visual Studio it catches a ExecutionEngineException with no call stack.

Not posible to load 32-bit FMU on 64 bit Windows

The library only tries to load 64-bit DLLs on 64 bit Windows, but it is possible to run both 32-bit and 64 bit code on Windows. The library should check if the current process is 32 bit or 64 bit

https://stackoverflow.com/a/1953411/1688642

if (IntPtr.Size == 4)
{
    // 32-bit
}
else if (IntPtr.Size == 8)
{
    // 64-bit
}

The issus is in the constructor of the Librarys class:

public Library(string baseFolder, string name) : this(Platform.GetLibraryPath(Environment.OSVersion.Platform,Environment.Is64BitOperatingSystem,baseFolder,name))

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.