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 <[email protected]> wrote: From: Laurent Etiemble <[email protected]> Subject: Re: [[email protected]] NSOpenPanel crashing intermittently To: [email protected] 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 <[email protected]> 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. }}

