Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Michael on February 09, 2006, 01:09:00 pm

Title: Crashes when removing file from Project tree (rev1966)
Post by: Michael on February 09, 2006, 01:09:00 pm
Hello,

I have experienced some crashes with rev1966 (Windows XP SP2). The crashes seem to occur (but not always) when I select a file from the project tree and I would like to remove it. Sometimes C::B crash at this point. The problem is that if I do not have saved the project file, then I loose all the modifications I have done so far.

I attach the RPT file. Hope it can help.

Best wishes,
Michael

PS.: To look at the RPT file, please remove the txt extension and then unpack it with 7zip.


[attachment deleted by admin]
Title: Re: Crashes when removing file from Project tree (rev1966)
Post by: mandrav on February 09, 2006, 01:38:32 pm
The attachment is corrupt. Try again...
Btw, I 've allowed the 7z extension so don't append .txt to it. This is why it gets corrupted...
Title: Re: Crashes when removing file from Project tree (rev1966)
Post by: Michael on February 09, 2006, 01:44:26 pm
Ok, I see. May be because it is handled as text even if it is binary. Here it is without txt. Sorry.

Michael


[attachment deleted by admin]
Title: Re: Crashes when removing file from Project tree (rev1966)
Post by: MortenMacFly on February 09, 2006, 02:28:50 pm
Here it is without txt.
...I wonder what happens if "pf" from:
Code
ProjectFile* pf = ftd->GetProjectFile();
is NULL (or similar) because there is no project file? What would that mean to the the following line (that crashes):
Code
EditorBase* ed = Manager::Get()->GetEditorManager()->IsOpen(pf->file.GetFullPath());
...just a wild guess...
Morten.