Author Topic: Problem when generating C::B with wxWidgets 3.1.4 found on git  (Read 3454 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 800
Problem when generating C::B with wxWidgets 3.1.4 found on git
« on: February 19, 2020, 07:23:48 pm »
As wxwidgets 3.1.4 is not far from beeing published, I try to work with it, only for testing until now.
They have made recent changes, at least in event.h and now wxPaintEvent is no more public.
So, it's a problem when generating C::B, at least in main.cpp, at line 2683 (svn 11957).
Is it a bad idea in wxWidgets or something C::B has to modify and adapt itself ... I don't know.

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Problem when generating C::B with wxWidgets 3.1.4 found on git
« Reply #1 on: February 19, 2020, 08:17:18 pm »
3.1.4 is due for october, see https://github.com/wxWidgets/wxWidgets/milestones

The wxPaintEvent and the ProcessEvent in main.cpp:2683 can be replaced with a call to Update().

There is another issue in watchesdlg.cpp:106, the constructor for wxPGWindowList without arguments has been removed. Looking at the removed code the line must be changed to:

Code
wxPGWindowList const list(NULL);

See commit https://github.com/wxWidgets/wxWidgets/commit/f2f9cbe619601fd71f2c5c0dc29796267144322d#diff-c075e089ea383fff6a40ef29c0c30bfb

I have compiled the whole workspace (in MSW) and there are no more compilation issues

Offline gd_on

  • Lives here!
  • ****
  • Posts: 800
Re: Problem when generating C::B with wxWidgets 3.1.4 found on git
« Reply #2 on: February 19, 2020, 09:05:28 pm »
OK, nice if there is a workaround on MSW.
You said that :
Quote
3.1.4 is due for october,
as mentioned in your link. But on another "official" link : https://trac.wxwidgets.org/roadmap , the date is really different : 10 feb 2020 : already exceeded for 10 days, but this is usual.

Where is the truth  :(

Wait and see ...

gd_on

PS : how do you use this call to Update() ?
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.5 (tests with 3.3), Msys2 Compilers 14.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1632
Re: Problem when generating C::B with wxWidgets 3.1.4 found on git
« Reply #3 on: February 20, 2020, 09:21:08 am »
Quote
Where is the truth  :(

The release rate is about one version every ten months, so I think february is too premature.

Quote
PS : how do you use this call to Update() ?

Just remove the two lines with the event-related code and call Update() instead

Code
        wxBusyCursor useless;
        // wxPaintEvent e;
        // ProcessEvent(e);
        Update();
        for (unsigned int i = 0; i < files.GetCount(); ++i)
          success &= OpenGeneric(files[i]);