Bug 1092 - IKVM with Window-based Application
Summary: IKVM with Window-based Application
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: unspecified
Hardware: Macintosh Mac OS
: Lowest normal
Target Milestone: Community
Assignee: Bugzilla
Depends on:
Reported: 2011-09-28 04:56 UTC by Gerry.w
Modified: 2017-09-01 11:56 UTC (History)
3 users (show)

Tags: mono-community
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 1092 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Gerry.w 2011-09-28 04:56:15 UTC
When starting the program, we get the following exception:

cli.System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
	at cli.System.Delegate.DynamicInvokeImpl(Unknown Source)
	at cli.System.MulticastDelegate.DynamicInvokeImpl(Unknown Source)
	at cli.System.Delegate.DynamicInvoke(Unknown Source)
	at cli.System.Windows.Forms.XplatUIDriverSupport.ExecutionCallback(Unknown Source)
	at com.inet.designer.Main.main(SourceFile:25)

It is not certain, where exactly the Exception occurs in the code, but it is a problem with a part of the .NET MonoMac API not being found. The "cli" in front of the library states that the calls come from IKVM into the MonoMac Framework.
Comment 1 Miguel de Icaza [MSFT] 2011-10-08 10:47:22 UTC
You would need to provide us with a minimal self-contained test case for someone to look at this, as currently the above does not ring any bells.

We do not actively test IKVM with MonoMac, so you might have to reach out to the wider community to look at this bug.
Comment 2 Gerry.w 2011-11-01 07:59:56 UTC
I created a download Package which can be obtained at


When unpacked, you can execute the following command from within the directory of the package:

mono bin/ikvm.exe -jar i-net\ Clear\ Reports\ Designer.app/Contents/Resources/Java/core/clearreportsfree.jar

This will throw some exceptions with the targetInvocationException being the most problematic one. The "cli." prefix comes from IKVM indicating that it belongs to .NET
Comment 3 Miguel de Icaza [MSFT] 2012-02-08 23:01:21 UTC
This is not a MonoMac issue, this is a Windows.Forms issue on Mac.

It seems like you are missing the libgdiplus.dylib in your bundle or in your path, you might need to adjust the path for it.