Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructor error #118

Closed
TomasaMuller opened this issue Dec 27, 2023 · 1 comment
Closed

Constructor error #118

TomasaMuller opened this issue Dec 27, 2023 · 1 comment
Labels

Comments

@TomasaMuller
Copy link

Test code

Engine eng = new Engine();
eng.SetStatic(typeof(System.Drawing.Bitmap)).WithName("Bitmap");
eng.Interpret("bmp = Bitmap.create(100, 100)"); // <= Error - Parameter is not valid

I think it tries to use some other overload of the constructor

System.ArgumentException
  HResult=0x80070057
  Message=Parameter is not valid.
  Source=System.Drawing
  StackTrace:
   at System.Drawing.Bitmap..ctor(String filename, Boolean useIcm)

  This exception was originally thrown at this call stack:
    System.Drawing.Bitmap.Bitmap(string, bool)
@FlorianRappl
Copy link
Owner

This is fixed in 2.0.2 with an improved parameter selection algorithm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants