Search found 2662 matches

by PB
Fri Mar 04, 2011 12:56 pm
Forum: C++ Development
Topic: wxLogChain and more than 2 targets
Replies: 2
Views: 561

You haven't specified the version of wxWidgets you use. Isn't it related to the very recent patch for wxWidgets 2.8 branch r67119: 2011-03-03 15:09:44 [JS] Julian Smart * [WX_2_8_BRANCH] /docs/changes.txt [diff, log, file] * [WX_2_8_BRANCH] /src/common/log.cpp [diff, log, file] Fixed crash on exit c...
by PB
Fri Mar 04, 2011 11:44 am
Forum: C++ Development
Topic: ungraceful worker thread termination
Replies: 8
Views: 2052

Ah, I overlooked that. As always doublemax saves the day. :D
by PB
Fri Mar 04, 2011 10:03 am
Forum: C++ Development
Topic: ungraceful worker thread termination
Replies: 8
Views: 2052

1. Use Debug Build 2. Call wxLog::AddTraceMask(wxTRACE_FSWATCHER) when your app starts, e.g. in wxApp::OnInit(), see fswatcher sample. 3. After you get the error, check the output of trace calls. I use MSVS, so I can see it in the Output window (Show output from debug) of the IDE. Inspecting the ERR...
by PB
Fri Mar 04, 2011 6:43 am
Forum: C++ Development
Topic: ungraceful worker thread termination
Replies: 8
Views: 2052

Are you using a wxFileSystemWatcher class (wxFSW)? I think the only source of the "Ungraceful worker thread termination" error is wxFSW on MS Windows. If you do, try checking the debug output with wxTRACE_FSWATCHER on. This being said, wxFSW worker thread is finished automatically from its destructo...
by PB
Tue Mar 01, 2011 8:01 pm
Forum: Compiler / Linking / IDE Related
Topic: How to get the demos to work - VS2008 C++
Replies: 4
Views: 2200

You need to compile the wxWidgets library first. Have you done that already? If not, then go to c:\wxWidgets-2.9.1\build\msw and open file wx_vc9.sln. Once the solution is loaded in VS IDE, build at least Debug and Release builds. You may also check out the wxWiki MSVC guide: http://wiki.wxwidgets.o...
by PB
Tue Mar 01, 2011 7:39 pm
Forum: Compiler / Linking / IDE Related
Topic: How to get the demos to work - VS2008 C++
Replies: 4
Views: 2200

What compiler?
by PB
Tue Mar 01, 2011 9:55 am
Forum: C++ Development
Topic: my system requirement in background?
Replies: 8
Views: 1363

So rainrat, you do know how to get how much resources (%CPU, memory ...) a whole application consumes using wxWidgets functions? I mean something like portable equivalents of at least some Windows's Performance Monitoring interface. Thanks.
by PB
Tue Mar 01, 2011 8:22 am
Forum: C++ Development
Topic: How to extern wxObjArray??
Replies: 5
Views: 688

As far as I know deriving from STL containers is not recommended. These classes were not designed for inheritance, notice the lack of the virtual destructor. But I agree with Brice, don't use wxWidgets containers, stick to STL ones. wxWidgets containers are relics of past, nowadays good only for wxW...
by PB
Tue Mar 01, 2011 6:26 am
Forum: C++ Development
Topic: my system requirement in background?
Replies: 8
Views: 1363

On Windows, the built-in (Ctrl+Shift+Esc) Task Manager might be enough (Processes tab, add the columns you're interested in in its Display menu). If more details are needed, what about Process Explorer ? If you need to obtain this information from within the application itself then sorry, I don't kn...
by PB
Mon Feb 28, 2011 10:11 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 2622

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. As I wrote above, it's not caught by wxWidgets but by MSVC CRT. http://img842.imageshack.us/img842/4936/assert.gif What compiler do you use there, probably n...
by PB
Mon Feb 28, 2011 10:02 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 2622

The ASSERT on MSW (using MSVC in Debug build) comes from CRT memory manager, so it's not wxWidgets thing but a compiler one. What I don't understand is why in this code OnCancel is not called even when I click on the close button or pressing Esc is not handled despite the SetEscapeId(wxID_CANCEL)?. ...
by PB
Mon Feb 28, 2011 8:10 am
Forum: C++ Development
Topic: wxComboBox append/insert slow
Replies: 28
Views: 4452

I doubt that graphic drivers have anything to do with ComboBox append performance. Have you checked the actual speed of your CPU(s) though? My Athlon's nominal speed is 3.0 GHz but it seems it runs at about 800 MHz most of the time (according to CPU-Z), but the VS's build process is usually enough t...
by PB
Sun Feb 27, 2011 9:35 pm
Forum: C++ Development
Topic: wxComboBox append/insert slow
Replies: 28
Views: 4452

BTW: my machine is also an Athlon X2, but only running 2.3 Mhz I'm about to set a new dev system up on a Phenom II x3 with lots of fast RAM, Win7, VS 2010 and the latest wxLibs, so it will be interesting to see what effect it has on the issue... Hey, even my first computer I bought many many years ...
by PB
Sun Feb 27, 2011 7:45 pm
Forum: C++ Development
Topic: wxComboBox append/insert slow
Replies: 28
Views: 4452

I have VS 2008 and I don't know how to export a project for the 2005 version, sorry. Can't you just paste it into a wxWidgets sample or something like that? Or you can add it to your program, all you need to copy is the MyDialog code and the code from MyFrame::OnShowDlg(). Those 200 ms are not times...
by PB
Sun Feb 27, 2011 5:32 pm
Forum: C++ Development
Topic: wxComboBox append/insert slow
Replies: 28
Views: 4452

#ifndef WX_PRECOMP #include <wx/wx.h> #endif class MyDialog : public wxDialog { public: MyDialog(const wxArrayString& strings, size_t comboCount, long comboStyle, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize&...