Bug 60721 - Access error on creating new window
Summary: Access error on creating new window
Status: NEW
Alias: None
Product: Gtk#
Classification: Mono
Component: gtk-sharp ()
Version: 2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-11-16 15:34 UTC by rthiebaud
Modified: 2017-11-16 15:34 UTC (History)
1 user (show)

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 60721 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 rthiebaud 2017-11-16 15:34:20 UTC
In the following program in Visual Studio 2017, the program aborts when creating a new window.

using Gtk;
using System;

class Main1
    static int Main(string []args)
        Window win1 = new Window("Main1");
        return 0;

The program aborts with error:


Unhandled Exception: System.AccessViolationException: Attempted to read or write
 protected memory. This is often an indication that other memory is corrupt.
   at Gtk.Window.gtk_window_new(Int32 type)
   at Gtk.Window..ctor(WindowType type)
   at Gtk.Window..ctor(String title)
   at Main1.Main(String[] args) in f:\src\main1\main2.cs:line 9


Using GTK# for .Net 2.12.45 under Windows 7