Search found 223 matches

by Natulux
Thu Mar 12, 2020 2:02 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 429

Re: wxbase29u.lib expected in wx313 project

I have the impression that the terms static and shared/DLL are a bit mixed up in this discussion. On the one hand, you can use static or shared/DLL C runtime libraries (compiler switch /MT vs /MD), and on the other hand you can build wxWidgets (and other components) as static or shared/DLL. Yes, it...
by Natulux
Tue Mar 10, 2020 3:25 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 429

Re: wxbase29u.lib expected in wx313 project

This has always been a little confusing for me, but I don't talk about using a DLL build, but rather about the microsoft runtime libraries. As a default, wxWidgets is compiled with the Visual Studio compiler setting "Multithreaded-DLL (/MD)" (windows only I believe) which means that the microsoft dy...
by Natulux
Tue Mar 10, 2020 2:31 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 518

Re: Build wxWidgets 3.1.3 with VS2019

One final conclusion: [EDIT:] I am talking about the used microsoft static/dynamic runtime beeing used from visual studio on windows. Not to be confused with static or DLL build of wxWidgets. Never try to get static/dynamic compilations of wxWidgets in one directory - weird errors may occur - sepera...
by Natulux
Tue Mar 10, 2020 2:26 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 429

Re: wxbase29u.lib expected in wx313 project

ok it compiled. Conclusion: Never try to get static/dynamic compilations of wxWidgets in one directory - seperate the whole thing. What works for me: C:/wxWidgets-3.1.3_MD_2019/ (dynamic debug and release) C:/wxWidgets-3.1.3_MT_2019/ (static debug and release) It needs more disc space that way, but ...
by Natulux
Tue Mar 10, 2020 2:12 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 429

Re: wxbase29u.lib expected in wx313 project

It probably is somewhere in the project linker settings for given configuration: Grep your .vcxproj files to check. If you will not find anything there, it could be #pragma(comment, wxbase29u.lib) somewhere in the source files but that is hopefully not very likely... Nothing so easy I fear. I searc...
by Natulux
Tue Mar 10, 2020 1:11 pm
Forum: Compiler / Linking / IDE Related
Topic: wxbase29u.lib expected in wx313 project
Replies: 7
Views: 429

wxbase29u.lib expected in wx313 project

Hey I have an obscure problem. I try to port a very old project from 2.9.2/vs2008 to 3.1.3/vs2019 With the help of utelle I already set up an working enviroment with wxWidgets_313/wxSqlite3_451 static and dynmaic / Debug and Release (I checked with minimal samples). (Windows10x64, build x86) The pro...
by Natulux
Tue Mar 10, 2020 12:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 518

Re: Build wxWidgets 3.1.3 with VS2019

As far as I know the Visual Studio solution files of wxWidgets do not support to select the static C runtime libraries. One has to modify them manually, or has to use the makefile. It worked for me in the past and as far as I can see it also works now to select all the projects that come with wxWid...
by Natulux
Tue Mar 10, 2020 8:40 am
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 518

Re: Build wxWidgets 3.1.3 with VS2019

A fresh download of wxW313 and wxS451 together with your configuration advise worked like a charm! The only thing I couldn't properly set in the setup props was the distinction between static and shared libraries, because unfortunately I need both. I used to having them in seperate directories, I'll...
by Natulux
Tue Mar 10, 2020 8:01 am
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 518

Re: Build wxWidgets 3.1.3 with VS2019

I would guess that wxCOMPILER_PREFIX is vc142 . wxARCH_SUFFIX is normally x64 You are right, my mistake. Are you building using "CMake"? Or directly with MSVC? MSVC! I was just considering cmake because I wasn't aware I could configure wxWidget build via setup files even after the cmake project fil...
by Natulux
Mon Mar 09, 2020 3:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxWidgets 3.1.3 with VS2019
Replies: 8
Views: 518

Build wxWidgets 3.1.3 with VS2019

Hey, I built several wxWidget versions with several Visual Studio versions on Windows10 now, but to be honest: I had the privilege of using the project files that come with wxWidgets for vs users. Now I run into a problem compiling wxSqlite 4.4.6 (from utelle) with wxWidgets 3.1.3 MD: The wx/setup.h...
by Natulux
Tue Mar 03, 2020 10:15 am
Forum: C++ Development
Topic: multi threaded app
Replies: 17
Views: 858

Re: multi threaded app

Maybe there are some other mistakes on my side, but as of now I'd say that wxSockets should be used single threaded only, as they are not per se thread safe. The main issue seems to be, that the socket is beeing closed in the main thread and the worker thread, unaware, tries to Read/Write/Wait for a...
by Natulux
Tue Feb 11, 2020 3:34 pm
Forum: C++ Development
Topic: multi threaded app
Replies: 17
Views: 858

Re: multi threaded app

Unfortunately I also got a crash in the above described OnIdle and I still dont know what causes that. bool wxSocketBase::Destroy( ) Destroys the socket safely. Use this function instead of the delete operator, since otherwise socket events could reach the application even after the socket has been...
by Natulux
Mon Feb 10, 2020 8:10 am
Forum: C++ Development
Topic: multi threaded app
Replies: 17
Views: 858

Re: multi threaded app

Hi, What is the backtrace at the time of the crash? It actually is the same every run. The server can run for several thousand queries or just a few, but eventually it crashes here everytime: Base.exe!wxAppConsoleBase::DeletePendingObjects() Line 571 + 0x4 bytes C++ Base.exe!wxAppConsoleBase::Proce...
by Natulux
Fri Feb 07, 2020 10:01 am
Forum: C++ Development
Topic: multi threaded app
Replies: 17
Views: 858

Re: multi threaded app

Thanks for all the good hints. In my testing, I receive queries from 40 curl consoles and pass the sockets to 10 worker queries via wxMessageQueue. This actually works. At least for several minutes, because then it crashed again with access violation in the OnIdle event in the mainloop. It also cras...
by Natulux
Thu Feb 06, 2020 1:30 pm
Forum: C++ Development
Topic: multi threaded app
Replies: 17
Views: 858

Re: multi threaded app

I found wxQueueEvent which is supposed to thread safe propagate events between threads. I'm not sure if this is a misunderstanding or just bad wording: Events are always handled in the main thread. If you use wxQueueEvent, the direction is always from any thread (usually a worker thread) to the mai...