« Return to Thread: AccessViolationException on StatusIcon.GetGeometry on Windows

AccessViolationException on StatusIcon.GetGeometry on Windows

by rgladwell :: Rate this Message:

Reply to Author | View in Thread

I'm calling StatusIcon.GetGeometry to place a pop-up notification. This works fine on my Linux/Mono, but is failing on Windows Mono/.NET with an AccessViolationException (please see attached stacktrace.log).

The call to StatusIcon.GetGeometry is being called during the Application.Run loop, using a delegate via Application.Invoke, so I'm not sure if it's a system resource allocation issue or whether it is a bug with the StatusIcon API.

If anyone can shed some light I would be most grateful.

 « Return to Thread: AccessViolationException on StatusIcon.GetGeometry on Windows