AccessViolationException on StatusIcon.GetGeometry on Windows

View: New views
5 Messages — Rating Filter:   Alert me  

AccessViolationException on StatusIcon.GetGeometry on Windows

by rgladwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Re: AccessViolationException on StatusIcon.GetGeometry on Windows

by Christian Hoff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

rgladwell wrote:
> 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
> http://www.nabble.com/file/p24257005/stacktrace.log stacktrace.log ).
>  
Uggh, this sounds like a bug. Are you using Windows Vista or a later
version? We've had quite some trouble with AccessViolationExceptions
lately. Please file a bug report at www.mono-project.com/Bugs together
with a small repro and the complete console output (including any
GLIB_CRITICALS or GLIB_WARNINGS you may get before the exception occurs).
> 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.
>  

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: AccessViolationException on StatusIcon.GetGeometry on Windows

by rgladwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-06-29 at 20:04 +0200, Christian Hoff wrote:
> rgladwell wrote:
> > 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
> > http://www.nabble.com/file/p24257005/stacktrace.log stacktrace.log ).
> >  
> Uggh, this sounds like a bug. Are you using Windows Vista or a later
> version?

I was getting this on Windows XP. Will check my Vista instance as well

> We've had quite some trouble with AccessViolationExceptions
> lately. Please file a bug report at www.mono-project.com/Bugs together
> with a small repro and the complete console output (including any
> GLIB_CRITICALS or GLIB_WARNINGS you may get before the exception occurs).

Will do.

Also, I'd be interested to know if there was a technical reason why the
StatusIcon wasn't made a sub-class of Gtk.Widget?

--
Ricardo Gladwell <ricardo.gladwell@...>

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: AccessViolationException on StatusIcon.GetGeometry on Windows

by Chris Howie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 29, 2009 at 3:27 PM, Ricardo
Gladwell<ricardo.gladwell@...> wrote:
> Also, I'd be interested to know if there was a technical reason why the
> StatusIcon wasn't made a sub-class of Gtk.Widget?

Because a Widget is a thing that lives in a Container.  A StatusIcon
lives "outside" of the application, not in any container at all, or
rather not in a container that can be represented as a Container
class.

--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: AccessViolationException on StatusIcon.GetGeometry on Windows

by rgladwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,

Created defect for this issue here:

https://bugzilla.novell.com/show_bug.cgi?id=518169

Hope that's OK. Regards,

Ricardo Gladwell <ricardo.gladwell@...>



2009/6/29 Chris Howie <cdhowie@...>:

> On Mon, Jun 29, 2009 at 3:27 PM, Ricardo
> Gladwell<ricardo.gladwell@...> wrote:
>> Also, I'd be interested to know if there was a technical reason why the
>> StatusIcon wasn't made a sub-class of Gtk.Widget?
>
> Because a Widget is a thing that lives in a Container.  A StatusIcon
> lives "outside" of the application, not in any container at all, or
> rather not in a container that can be represented as a Container
> class.
>
> --
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
>
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list