51
Development / Re: Assert in Setting/Environment
« Last post by Miguel Gimenez on March 23, 2026, 03:51:33 pm »Fixed in r13828.
The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .
I have fixed incorrect usage of these flags in some files (see r13827).
I have NOT changed env_settings.xrc, as the discussion is still alive.

Correspondingly, when using a horizontal sizer, each child can be centered, aligned at the bottom or aligned at the top.
<object class="sizeritem">
<object class="wxBoxSizer">
<object class="sizeritem">
<object class="wxStaticText" name="wxID_ANY">
<label>Select application appearance (if supported by platform):</label>
</object>
<flag>wxLEFT|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
<border>4</border>
</object>
<object class="sizeritem">
<object class="wxChoice" name="chAppearance">
<content>
<item>System default</item>
<item>Dark</item>
<item>Light</item>
</content>
<selection>0</selection>
<enabled>0</enabled>
</object>
<flag>wxALIGN_CENTER_VERTICAL</flag>
<border>4</border>
<option>1</option>
</object>
</object>
<flag>wxEXPAND</flag>
<border>4</border>
</object>
You likely have a broken Compiler or wxWidgets installation or do NOT have WX_PRECOMP defined (but the log you posted has it defined).Maybe I need to post this question in another forum topic? For example, in Using Code::Blocks? I really need to configure Code::Blocks to create GTK applications, and in this topic the answer is no.
Where and How did you do the wxWidgets installation?
It appears to be missing the #include "wx/msw/wrapwin.h" from "wx/wxprec.h" header.
(The wrapwin.h includes windows.h; that includes winnt.h that defines HEAP_INFORMATION_CLASS fnf)
In the app.cpp file try adding the code below between the including <sdk.h> and "app.h".
If it works; likely have wxWidgets issue; if it still fails likely has a bad Compiler.
To confirm compiler try including
#include <windows.h>
or
#include <winnt.h>
Edit 4 or 5: changed __WINDOWS__ to __WXMSW__ in code below.Code#include <sdk.h>
#ifndef WX_PRECOMP
#ifdef __WXMSW__
#include <wx/msw/wrapwin.h> // HEAP_INFORMATION_CLASS
#endif // __WXMSW__
#endif // WX_PRECOMP
#include "app.h"
Tim S.