Certainly. OS = Snow Leopard.Mono = 2.4.3MonoDevelop = 2.2 RC 20091208-0 MonoObjc = 2.0.413.0
--- On Sun, 12/13/09, Laurent Etiemble <laurent.etiem...@monobjc.net> wrote: From: Laurent Etiemble <laurent.etiem...@monobjc.net> Subject: Re: [us...@lists.monobjc.net] NSOpenPanel crashing intermittently To: users@lists.monobjc.net Date: Sunday, December 13, 2009, 11:10 AM Hello, Can you provide ?- The OS version- The Mono and Monobjc versions- The stack trace or the crash log Regards, Laurent Etiemble. 2009/12/13 Debbie Croft <dcrof...@yahoo.com> I've trying to use a folder browser dialog in my application. However, the application crashes after the dialog has been opened anywhere between 1 and 5 times. Is the code I'm using correct? [ObjectiveCMessage("browseForDatabaseFolderPath:")]public void BrowseForDatabaseFolderPath(){ const int DIALOG_HEIGHT = 400; const int DIALOG_WIDTH = 600; NSOpenPanel openPanel = NSOpenPanel.OpenPanel; openPanel.CanChooseDirectories = true; openPanel.CanChooseFiles = false; openPanel.SetContentSize(new NSSize(DIALOG_WIDTH, DIALOG_HEIGHT)); int dialogResult = openPanel.RunModal(); if (dialogResult == NSPanel.NSOKButton) { // OK. } else { // Cancel. }}