Search found 55 matches

by vid512
Sun Oct 24, 2021 10:12 pm
Forum: Compiler / Linking / IDE Related
Topic: Unit tests crashing on GTK2
Replies: 3
Views: 1964

Re: Unit tests crashing on GTK2

Will do. Thanks for explanation, I wasn't clear where to reach devs.
by vid512
Sun Oct 24, 2021 10:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Unit tests crashing on GTK2
Replies: 3
Views: 1964

Re: Unit tests crashing on GTK2

After some experiments, I am fairly certain that this is a race condition, caused by wxYield() not really doing what it is expected to (eg. to ensure that all controls are fully realized before going on with tests). I just have easier time hitting this race condition, becuase I am running tests on a...
by vid512
Sun Oct 24, 2021 8:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Unit tests crashing on GTK2
Replies: 3
Views: 1964

Unit tests crashing on GTK2

What is the current state of WxWidgets unit tests with GTK2? Are they supposed to be working? I have tried running tests/test_gui from master branch (on linux, with GTK2) and very often I get undeterministic crash with this error message: Test program for wxWidgets GUI features build: 3.1.6 (wchar_t...
by vid512
Sun Jan 22, 2012 10:59 pm
Forum: C++ Development
Topic: Tab-character is not shown by wxMessageBox on Windows 7
Replies: 1
Views: 958

Re: Tab-character is not shown by wxMessageBox on Windows 7

This seems to be dependant upon which Common controls are selected in your manifest. If you edit your manifest and delete following entry from it, the "old style" controls appear: <assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitectur...
by vid512
Thu Mar 03, 2011 12:58 pm
Forum: Platform Related Issues
Topic: wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?
Replies: 5
Views: 1975

Thanks for updating. Kinda weird behavior, IMO, to allow tabs in multi-line controls only.

I'll have to try adding Tab traversal myself.
by vid512
Mon Feb 28, 2011 10:43 pm
Forum: Platform Related Issues
Topic: wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?
Replies: 5
Views: 1975

I'm afraid I am a bit too busy right now to register and learn to properly use whatever bugtracking system wx uses. You are obviously more experienced, could you please report it yourself?
by vid512
Mon Feb 28, 2011 10:26 am
Forum: Platform Related Issues
Topic: wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?
Replies: 5
Views: 1975

wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?

Following code works fine under wxMSW-2.8.11, wxMSW-2.9.1 and wxGTK-2.8.11, but under wxGTK-2.9.1 tab traversing doesn't work when focus is on multiline text control (as if it had wxTE_PROCESS_TAB style). #include <wx/wx.h> class MyApp: public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) c...
by vid512
Mon Feb 28, 2011 10:18 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 3429

PB: You're right. Seems in my Windows test I was linking to non-debug version of MSVCRT even in debug build. I'm in hurry a bit right now, so I can't test now.

briceandre: OK, I understand.
by vid512
Mon Feb 28, 2011 10:05 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 3429

There is no assert on wxMSW, only on wxGTK. And that's exactly the problem - IMO wxGTK *should* catch this error itself, if that is possible.
by vid512
Mon Feb 28, 2011 10:00 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 3429

Yes, this happens in debug version. Release version segfaults, as expected.

According to wxWindow::Destroy() description, this should only schedule dialog destruction for later, so checking for double scheduling should be possible.
by vid512
Mon Feb 28, 2011 9:50 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 3429

Thanks, that's it.

However, wxGTK should IMO still at least catch this error in its assert, not let it pass to glibc assert / segfault.
by vid512
Mon Feb 28, 2011 9:37 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 3429

wxGTK: Invalid free() call

Following code causes "double free() or corruption" glibc error on wxGTK. Happens with both 2.8.11 and 2.9.1. Same code works fine on wxMSW. #include <wx/wx.h> class MyApp: public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) class MyDlg: public wxDialog { protected: void OnOK(wxC...
by vid512
Sun Feb 27, 2011 10:01 pm
Forum: Platform Related Issues
Topic: wxGTK: Menu accelerator overrides CTRL+C in wxTextCtrl
Replies: 0
Views: 1068

wxGTK: Menu accelerator overrides CTRL+C in wxTextCtrl

In my app, I use CTRL+C menu accelerator, eg. menuFile->Append( ID_Connect, _("&Connect\tCTRL-C") ); Under wxMSW, this accelerator works unless I am currently focues in text control (wxTextCtrl). In such case default copy-to-clipboard behavior of CTRL+C takes priority. This is desired ...
by vid512
Wed Jan 12, 2011 4:09 pm
Forum: C++ Development
Topic: wxMessageBox with different font
Replies: 2
Views: 1246

wxMessageBox with different font

Is there some way to change font of wxMessageBox? Or do I have to reimplement its functionality?
by vid512
Mon Dec 27, 2010 1:45 pm
Forum: Platform Related Issues
Topic: Best Platform-portable way to manage icon in source?
Replies: 1
Views: 1248

Best Platform-portable way to manage icon in source?

My application runs under Windows and linux/GNOME. Majority of development goes on under Windows. Currently I only support application icon (icon shown on taskbar and during ALT+Tab task switching) for Windows. My icon is currently stored in .bmp file, from which .ico is generated. This .ico is put ...