User forums > Help

crash: codeblocks wx2.6.1 unicode

<< < (3/5) > >>

grv575:
See if this is correct code (attached).  Works for me without crashes.  Someone on the wxWidgets mailing list hinted at the new wxSplitter being buggy and to set the sash pos in the splithorizontally() function:

bool SplitHorizontally(wxWindow* window1, wxWindow* window2, int sashPosition = 0)

http://lists.wxwidgets.org/archive/wxPython-users/msg04394.html

Have not tested on linux yet.

Btw: with current version of the code, you can try to hardcode it as  m_splitter->SetSashPosition((long int)307);
and then play with resizing the window and moving the Projects tab horizontal seperator.  It crashes sometimes, not others (depends if resized sashpos > registry value or current sash pos or something once exiting).  Looks like it has something to do with this comment in the docs:

wxSplitterWindow::SetSashPosition
...
Remarks

Does not currently check for an out-of-range value.

But I have no idea what that means.
 :?

[attachment deleted by admin]

rickg22:
No wonder the bug didn't happen in 2.4.2...  please send me a personal message about it, since there's no way (AFAIK) to mark threads as important. I forget things often :(

David Perfors:

--- Quote from: rickg22 on August 24, 2005, 08:11:12 pm --- I forget things often :(

--- End quote ---
I think that has something todo with you're age :P

tiwag:

--- Quote from: mispunt on August 24, 2005, 11:11:36 pm ---
--- Quote from: rickg22 on August 24, 2005, 08:11:12 pm --- I forget things often :(

--- End quote ---
I think that has something todo with you're age :P

--- End quote ---
:shock:

grv575:
OK CVS HEAD doesn't have this crash.  So might not be worth looking into at this point.  (CVS HEAD unicode built according to: http://forums.codeblocks.org/index.php/topic,811.0.html)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version