Search found 115 matches

by Victory
Sat Dec 30, 2023 1:06 am
Forum: C++ Development
Topic: wxLogMessage without message box
Replies: 1
Views: 1959

wxLogMessage without message box

I just started using wxLogMessage to print out some messages. However, I don't want it to display a message box. To achieve that, I guess I can subclass wxLog, change the implementation of the relevant methods and set an instance of that subclass as the active target. But, before I go that route and...
by Victory
Mon May 29, 2023 4:45 pm
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

Re: wxFileDialog difference between versions 3.1.4 and 3.2.2.1

Bug report filed just now: https://github.com/wxWidgets/wxWidgets/issues/23578 Thanks. P.S. I also found out why the file load dialog in our application worked even with version 3.2.2.1 and only the save dialog failed. That is because our load dialog satisfies "HasExtraControlCreator" (i.e...
by Victory
Mon May 29, 2023 4:42 am
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

Re: wxFileDialog difference between versions 3.1.4 and 3.2.2.1

After some more investigation, I found out what is causing the issue and also found an easy way in which anyone can reproduce the issue. The issue occurs if an application calls ::CoInitializeEx(NULL, COINIT_MULTITHREADED) at the beginning of the application which our application needs to. This need...
by Victory
Thu May 25, 2023 12:14 am
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

Re: wxFileDialog difference between versions 3.1.4 and 3.2.2.1

Is that VS2019? No, it is VS2022, specifically, Visual Studio Community 2022 version 17.6.1. How many toplevel windows are open at the time you try to open the file dialog? What type of toplevel windows? How is opening the file dialog triggered? Can you show a full callstack... There is just one to...
by Victory
Wed May 24, 2023 10:38 pm
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

Re: wxFileDialog difference between versions 3.1.4 and 3.2.2.1

is it possible that this code is called when the user wants to quit the application and parts of the app are already destroyed? No, that is not the case. Another update: We have one more wxWidgets based application which also has been working fine for a few years. I wanted to see whether that works...
by Victory
Wed May 24, 2023 6:31 pm
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

Re: wxFileDialog difference between versions 3.1.4 and 3.2.2.1

I had tried substituting nullptr for the parent and that didn't make a difference. I am feeling that the issue may not be with wxFileDialog per se, but, for some reason, the state has already gotten messed up by something else before the save file dialog code is invoked. I am seeing some debug outpu...
by Victory
Wed May 24, 2023 5:53 pm
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

Re: wxFileDialog difference between versions 3.1.4 and 3.2.2.1

I tried the "dialogs" sample. It worked fine. The code in our application which uses wxFileDialog: wxFileDialog saveFileDlg( this, // parent _("Save Stuff"), // caption defaultFolder, // default directory wxEmptyString, // default file _("Stuff Files(*.stf)|*.stf"), // ...
by Victory
Wed May 24, 2023 5:14 pm
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

Re: wxFileDialog difference between versions 3.1.4 and 3.2.2.1

What was the hr value after the Show() call and what does the debug output shows (produced by all those wxLogApiError() calls generously sprinkled through the wxWidgets code)? The Show call didn't even return. I put a breakpoint at the following line of src/msw/dirdlg.cpp code of wxWidgets: hr = m_...
by Victory
Wed May 24, 2023 4:00 am
Forum: C++ Development
Topic: wxFileDialog difference between versions 3.1.4 and 3.2.2.1
Replies: 19
Views: 2821

wxFileDialog difference between versions 3.1.4 and 3.2.2.1

Our application makes use of wxFileDialog in save mode in quite a few places. It has been working perfectly fine with wxWidgets version 3.1.4. Today, I upgraded to wxWidgets version 3.2.2.1, and now the save file dialog is not appearing any more. Going into the debugger, I noticed that it ends up ca...
by Victory
Sat Jan 21, 2023 8:24 pm
Forum: C++ Development
Topic: wxImage issue in non-debug build
Replies: 6
Views: 568

Re: wxImage issue in non-debug build

Thanks!
I just saw your issue report. Ouch, there are more issues as you noted there.
Ideally, the issue should be fixed where the bug really is.... in the VC++ compiler :).
by Victory
Sat Jan 21, 2023 7:09 pm
Forum: C++ Development
Topic: wxImage issue in non-debug build
Replies: 6
Views: 568

Re: wxImage issue in non-debug build

Similar to the previous issue referred to by @PB above, I confirmed that the issue I reported is also due to VC++ compiler optimization bug, but, in another part of wxImage code in image.cpp. The function resulting in the issue in my case is wxImage::ShrinkBy while the issue mentioned by PB was in t...
by Victory
Wed Jan 18, 2023 2:04 am
Forum: C++ Development
Topic: wxImage issue in non-debug build
Replies: 6
Views: 568

Re: wxImage issue in non-debug build

Thanks for the responses! Are you using an ico files? Can you try the image sample and see if that is reproducible? Are you on Windows? - No, I am not using ico file. The icons are tga files. - I tried the image sample and the problem did not get reproduced with that. - Yes, I am on Windows. One dif...
by Victory
Fri Jan 13, 2023 2:03 am
Forum: C++ Development
Topic: wxImage issue in non-debug build
Replies: 6
Views: 568

wxImage issue in non-debug build

I updated our application which used to work fine with wxWidgets version 3.1.4 to use the latest 3.2.1 version of wxWidgets. Now, I am noticing that wxImage based icons in our application look black in non-debug builds. They look right in debug build. Does anybody have any insight into what may be h...
by Victory
Sat Jan 07, 2023 4:24 am
Forum: Compiler / Linking / IDE Related
Topic: wxXmlResource link error while building with CMake
Replies: 2
Views: 1233

Re: wxXmlResource link error while building with CMake

I found the solution to the issue. Posting it here for the benefit of anyone else who ends up encountering the issue in future. I had the following line in my CMakeLists.txt file, which is what is there in some of the examples out there on the web. find_package(wxWidgets QUIET) I needed to replace t...
by Victory
Sat Jan 07, 2023 3:37 am
Forum: Compiler / Linking / IDE Related
Topic: wxXmlResource link error while building with CMake
Replies: 2
Views: 1233

Re: wxXmlResource link error while building with CMake

I looked into the issue some more and found the following. I printed the value of ${wxWidgets_LIBRARIES} and the following are what it contains: C:/myRoot/build/External/stage/wxWidgets/Debug/lib/vc_x64_lib/wxmsw32ud_core.lib; C:/myRoot/build/External/stage/wxWidgets/Debug/lib/vc_x64_lib/wxbase32ud....