So it must not be a xpm! A simple txt will do to give a crash if the file does not belong to a project. (Jens, the xpm you tried is from an open project, right?) The following patch stops cb crashing:
Index: nativeparser.cpp
===================================================================
--- nativeparser.cpp (revision 6773)
+++ nativeparser.cpp (working copy)
@@ -3368,7 +3368,7 @@
SwitchParser(project, parser);
}
- if (m_ClassBrowser && parser->ClassBrowserOptions().displayFilter == bdfFile)
+ if (m_ClassBrowser && parser && parser->ClassBrowserOptions().displayFilter == bdfFile)
{
// check header and implementation file swap, if yes, don't need to rebuild browser tree
m_ClassBrowser->UpdateView(true);
Don't know if it is the right way!
The other thing is that: IMHO an xpm should be parsed.