Bug #9365 2006-11-04 12:39

afb

Mac OS X: application crashes on launch by file

CodeBlocks.app application crashes if you use a text file or project file to launch it, rather than first start the application and *then* double-click the file.

Probably need to delay the call to open the document until after the startup has been fully completed, like how it is being done on Windows / DDE ?

Category
Application::Crash
Group
 
Status
Closed
Close date
2006-11-05 10:51
Assigned to
afb
afb 2006-11-04 16:27
Fixed, will be commited shortly.

void CodeBlocksApp::MacOpenFile(const wxString & fileName )
{
    if (s_Loading)
    {
        s_DelayedFilesToOpen.Add(fileName);
    }
    else if (m_Frame)
    {
        m_Frame->Open(fileName, true);
    }
}
afb 2006-11-05 10:51

Fixed, rev. 3182