Search found 123 matches

by tigerbeard
Sun May 07, 2023 7:24 pm
Forum: C++ Development
Topic: Can wxAuiToolBar be used without wxAUI?
Replies: 1
Views: 391

Re: Can wxAuiToolBar be used without wxAUI?

wxAuiToolBar is basically just a custom control, so I would think it can be used separately. It has dependencies to wxAuiToolBarItem and wxAuiToolBarArt but they are defined in the same header, so this should get you going. You can also include them with wxSmith in case you are using the CodeBlocks ...
by tigerbeard
Sun May 07, 2023 11:56 am
Forum: C++ Development
Topic: wxSocketWriteGuard write reentrancy assert
Replies: 4
Views: 933

Re: wxSocketWriteGuard write reentrancy assert

i know its an old post, but its the only I found with this assert I got the problem as well and found that two conditions can cause it A) as the assert says, when wxSocekt::Write() is in a function and that function is called at the same time from different locations - e.g. from the main thread and ...
by tigerbeard
Wed Mar 15, 2023 12:53 pm
Forum: C++ Development
Topic: wxListCtrl with 2 line header
Replies: 2
Views: 387

Re: wxListCtrl with 2 line header

Thanks. I'll have a look at wxGrid.
by tigerbeard
Wed Mar 15, 2023 10:33 am
Forum: C++ Development
Topic: wxListCtrl with 2 line header
Replies: 2
Views: 387

wxListCtrl with 2 line header

I would like to make a wxListCtrl list in Report mode (wxLC_REPORT) with a 2-line header. The header shoud look like this. The idea is to show (adjustable) units without wasting horizontal space. | name | lenght | height | mass | | | [m] | [m] | [kg] | I tried setting the label with "length\n[m...
by tigerbeard
Wed Feb 22, 2023 7:50 pm
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Re: Crash with wxSocketServer->LastError() in wxSocket sample

The official name of the package is cURL. For the Pascal/Java/C/C++ it is known as libcurl. Ok. I think we are on the same page now. Curl as libcurl and its other ports is a separate external lib and its used in Wx as a base for the for the wxWebRequest class. And only for that. I think the confusi...
by tigerbeard
Wed Feb 22, 2023 6:34 pm
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Re: Crash with wxSocketServer->LastError() in wxSocket sample

cURL dependency was introduced with the wxWebRequest, which was included in version 3.1.5, according to the documentation. wxcURL I mentioned before was a nice addition to wxWidgets world, but because wxCode becomes abandoned with time the package becomes unmaintainable. Now you don't have to use w...
by tigerbeard
Tue Feb 21, 2023 7:22 pm
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Re: Crash with wxSocketServer->LastError() in wxSocket sample

ONEEYEMAN wrote: Tue Feb 21, 2023 6:54 pm Can you make the sample crash?
Sorry, did you read my first post?
That describes how to make the sample crash and asks someone to confirm it...
by tigerbeard
Tue Feb 21, 2023 6:34 pm
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Re: Crash with wxSocketServer->LastError() in wxSocket sample

ONEEYEMAN wrote: Tue Feb 21, 2023 3:54 pm Since you already looked: how is the error reported in the sample?
see above: it should have reported "wxSOCKET_IOERR", instead it crashed.

Code: Select all

    if ( bind(m_fd, m_local.GetAddr(), m_Local.GetLen()) != 0)
       m_error_ wxSOCKET_IOERR;
by tigerbeard
Tue Feb 21, 2023 3:03 pm
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Re: Crash with wxSocketServer->LastError() in wxSocket sample

It is good you found the cause. Maybe the cause but not a solution :cry: However, what I wrote is "This is especially true on Windows." It does not exclude other platforms. The build settings have to match. I have to admit that you did not convince me, but lets not sidetrack the issue. It...
by tigerbeard
Tue Feb 21, 2023 10:54 am
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Re: Crash with wxSocketServer->LastError() in wxSocket sample

The build settings of wxWidgets HAS TO MATCH build settings of the application. This is especially true on windows, where DEBUG and RELEASE CRT are different. Please compile both as Debig and run it. As in OP I am on Linux, so even when you are right, that does not apply. But I boiled it down to a ...
by tigerbeard
Tue Feb 21, 2023 12:29 am
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Re: Crash with wxSocketServer->LastError() in wxSocket sample

Are you running a debug build? If not, please do and check for assert messages. Yes, I did run a debug build of my application and it just crashed without any asserts. I did not run a build with a debug version of the wxWidgets library. However, this shouldn't normally happen. I am not sure what yo...
by tigerbeard
Mon Feb 20, 2023 4:30 pm
Forum: C++ Development
Topic: Crash with wxSocketServer->LastError() in wxSocket sample
Replies: 16
Views: 1928

Crash with wxSocketServer->LastError() in wxSocket sample

Can someone please confirm this crash and suggest a workaround? System: Linux Ubuntu 22.04, wxWidgets 3.0.5 Sample: "sockets" file "baseserver.cpp" The crash happens after the socket should be created with an IP address that the computer does not have. When I am tryping to get de...
by tigerbeard
Sun Feb 05, 2023 5:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Why does WX compile to different structures in Linux and Windows?
Replies: 14
Views: 10201

Re: Why does WX compile to different structures in Linux and Windows?

It's not possible to install just libraries or just headers. How will you use it then? 😀 I meant that when I deploy my own programs created with WX in Linux I only need the libs (=so objects) to run the application. In other words I "install" my binaries and "just" some libs. Wh...
by tigerbeard
Sun Feb 05, 2023 12:00 pm
Forum: C++ Development
Topic: wxPrintf wrapper II
Replies: 2
Views: 396

Re: wxPrintf wrapper II

So here is the solution. Its a similar implementation that the original Printf() code. Its not easy to find in the sources because there is no wxString::Printf() anyhere. Instead there is a lot of macro magic with some interesting workarounds I was not aware of before - like you could add "onl...