User forums > Help
using code profiler in C - crash! (svn 7071)
wangdong1226:
--- Quote from: oBFusCATed on March 28, 2011, 04:39:02 pm ---I've seen this problem on Centos 5.5, so wangdong1226 is not a spambot :)
I've a patch for it but, I've no time to discuss it with the others or to test it on anything else than CentOS.
A workaround is to use --with-contrib-plugins=all,-CodeSnipets (see ./configure --help for details)
p.s. Don't attach images on the forum, use a picpaste service like imageshank, photobucket, etc. The attachment space is limited and the admins wipe at random, when there is no space left on the device.
--- End quote ---
Thank you very much for your kindness, oBFusCATed.
I'll try acc. to your guide.
Best regards.
David.
stahta01:
--- Quote from: wangdong1226 on March 28, 2011, 04:29:59 pm ---
--- Quote from: stahta01 on March 28, 2011, 04:06:54 pm ---Please Re-Read my last message on your wxWidgets build problem!!!!
Note: I am now considering you to be a spam bot!!!
--- End quote ---
No, I'm not a spam bot!
when I use CB on wxGTK-2.8.12, problem happens, not on wx2.9!!!
I do know on wx2.9 some strange problems may happen, you've told me. I know this. But it is still wx2.8, just wx2.8.12!!!
I don't understand, why codeblocks developers do not want to hear or listening something even it is a little bit new ?!
In China, there's a word "If you stop going ahead, you will regress."
I do not want to give you a lesson, for I'm only a very very junior code lover. But I or someone like me (very very junior code lover or coder) want to know some new things and try to understand and using them, why you skilled advanced professional developers don't ??!!
You don't like new and fresh things? even they can give you new idea and eyesight ?
--- End quote ---
I disagree
http://forums.codeblocks.org/index.php/topic,14289.msg96177.html#msg96177
Bye
Tim S.
oBFusCATed:
wangdong1226 can you try this patch:
--- Code: ---Index: src/plugins/contrib/codesnippets/codesnippetstreectrl.cpp
===================================================================
--- src/plugins/contrib/codesnippets/codesnippetstreectrl.cpp (revision 7071)
+++ src/plugins/contrib/codesnippets/codesnippetstreectrl.cpp (working copy)
@@ -94,8 +94,6 @@
m_mimeDatabase = 0;
m_bBeginInternalDrag = false;
m_LastXmlModifiedTime = time_t(0); //2009/03/15
- m_itemAtKeyUp = m_itemAtKeyDown = 0;
-
m_pSnippetsTreeCtrl = this;
GetConfig()->SetSnippetsTreeCtrl(this);
@@ -1070,11 +1068,7 @@
}
delete pDoc; pDoc = 0;
- m_itemAtKeyDown = 0;
- m_itemAtKeyUp = 0;
-
- return;
-
+ m_itemAtKeyDown = m_itemAtKeyUp = wxTreeItemId();
}//OnEndTreeItemDrag
// ----------------------------------------------------------------------------
void CodeSnippetsTreeCtrl::OnEnterWindow(wxMouseEvent& event)
@@ -1291,9 +1285,7 @@
delete textData; //wxTextDataObject
delete fileData; //wxFileDataObject
m_TreeText = wxEmptyString;
- m_itemAtKeyDown = 0;
- m_itemAtKeyUp = 0;
-
+ m_itemAtKeyDown = m_itemAtKeyUp = wxTreeItemId();
}
//// ----------------------------------------------------------------------------
//void CodeSnippetsTreeCtrl::OnMouseMotionEvent(wxMouseEvent& event)
@@ -1403,7 +1395,7 @@
m_MouseUpX = event.GetPoint().x;
m_MouseUpY = event.GetPoint().y;
- m_itemAtKeyUp = 0;
+ m_itemAtKeyUp = wxTreeItemId();
int hitFlags = 0;
wxTreeItemId id = HitTest(wxPoint(m_MouseUpX, m_MouseUpY), hitFlags);
if (id.IsOk() and (hitFlags & (wxTREE_HITTEST_ONITEMICON | wxTREE_HITTEST_ONITEMLABEL )))
--- End code ---
wangdong1226:
--- Quote from: stahta01 on March 28, 2011, 05:08:00 pm ---I disagree
http://forums.codeblocks.org/index.php/topic,14289.msg96177.html#msg96177
Bye
Tim S.
--- End quote ---
Dear Tim S,
I did edit the wxGTK.spec file and removed the "--enable-compat24 \" parameter of the "%configure" command.
I'll try oBFusCATed's patch for codeblocks svn 7071 on wxGTK-2.8.12 and on wxGTK-2.8.11-3, and submit report later.
wangdong1226:
the patch seems good in XP. I've recombined codeblocks based on new released official wxWidgets2.8.12.
Then I'll try in my Fedora 14 system; after finished I'll submit the report.
Best regards.
David.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version