Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
Help / Re: Wiki Service
« Last post by ollydbg on February 19, 2026, 01:08:27 am »
Might wish to tell someone to update https://www.codeblocks.org/post/ because it implies that this forum is down.

This issue is fixed, thanks.
52
Using Code::Blocks / Re: Can't Get Debugger to Work
« Last post by Pecan on February 18, 2026, 07:53:02 pm »
Working on Linux I experience crashes too. Basically when I going to see variables content on the Watches window (or control widgets) the application (Code::Blocks) simply freeze until it close completely. I thought it was a memory issue but after check twice I have enough free memory (32 GB). I know it has to do with the memory used for debugging because in small blocks of code never happens this, while in blocks of code with many variables it always crashes.

What version of CB are you using?
What are your settings for the debugger @ Settings>Debugger... ?
How many variables do I have to have to re-create the error?
53
Nightly builds / Re: The 09 February 2026 build (13785) is out.
« Last post by Miguel Gimenez on February 18, 2026, 07:13:22 pm »
Thanks for testing. The second should use GetBlue instead of Blue, they are different accessors.

EDIT:
The solution recommended by Gemini is the same but using "unsigned int"
Code
BindMethod(v, _SC("GetAlpha"), NoParamGetterInt<unsigned int, wxColour, &wxColour::GetAlpha>, _SC("wxColour::GetAlpha"));
54
Nightly builds / Re: The 09 February 2026 build (13785) is out.
« Last post by Xaviou on February 18, 2026, 06:44:01 pm »
The only difference I see is the method declarations are "unsigned char Green()" instead of "ChannelType Green()". ChannelType is a typedef for unsigned char, but the compiler may be too picky.

Last shot: replace "wxColour::ChannelType" with "unsigned char" in calls to the NoParamGetterInt template.

EDIT: Another possibility (not fully compatible) is using
Code
BindMethod(v, _SC("GetBlue"), NoParamGetterInt<int, wxColour, &wxColour::GetBlue>, _SC("wxColour::GetBlue"));

None of these 2 worked:
Code
Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:1079:19: error: no matches converting function 'NoParamGetterInt' to type 'SQFUNCTION' {aka 'int (*)(struct SQVM*)'}
 1079 |         BindMethod(v, _SC("Blue"), NoParamGetterInt<unsigned char, wxColour, &wxColour::Blue>, _SC("wxColour::Blue"));
      |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:17:
include/scripting/bindings/sc_utils.h:992:11: note: candidate is: 'template<class ReturnType, class ClassType, ReturnType (ClassType::* func)() const> SQInteger ScriptBindings::NoParamGetterInt(HSQUIRRELVM)'
  992 | SQInteger NoParamGetterInt(HSQUIRRELVM v)
      |           ^~~~~~~~~~~~~~~~
and
Code
Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:1079:19: error: no matches converting function 'NoParamGetterInt' to type 'SQFUNCTION' {aka 'int (*)(struct SQVM*)'}
 1079 |         BindMethod(v, _SC("Blue"), NoParamGetterInt<int, wxColour, &wxColour::Blue>, _SC("wxColour::Blue"));
      |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from Z:\wxWidgets\CodeBlocks\src\sdk\scripting\bindings\sc_wxtypes.cpp:17:
include/scripting/bindings/sc_utils.h:992:11: note: candidate is: 'template<class ReturnType, class ClassType, ReturnType (ClassType::* func)() const> SQInteger ScriptBindings::NoParamGetterInt(HSQUIRRELVM)'
  992 | SQInteger NoParamGetterInt(HSQUIRRELVM v)
      |           ^~~~~~~~~~~~~~~~
Regards
Xav'
55
Help / Re: Wiki Service
« Last post by Frank_CB on February 18, 2026, 05:19:08 pm »
@ollydbg:

Thanks for forwarding the issue of the Wiki service being unavailable to the administrator. The response was superb. 
56
Nightly builds / Re: The 09 February 2026 build (13785) is out.
« Last post by Miguel Gimenez on February 18, 2026, 05:10:51 pm »
The only difference I see is the method declarations are "unsigned char Green()" instead of "ChannelType Green()". ChannelType is a typedef for unsigned char, but the compiler may be too picky.

Last shot: replace "wxColour::ChannelType" with "unsigned char" in calls to the NoParamGetterInt template.

EDIT: Another possibility (not fully compatible) is using
Code
BindMethod(v, _SC("GetBlue"), NoParamGetterInt<int, wxColour, &wxColour::GetBlue>, _SC("wxColour::GetBlue"));
57
Help / Re: Wiki Service
« Last post by ollydbg on February 18, 2026, 01:44:00 pm »
The wiki is OK now, our website admin just fixed this issue.

Might wish to tell someone to update https://www.codeblocks.org/post/ because it implies that this forum is down.

I will wrote another email to our boss.  ;) Thanks.
58
Help / Re: Wiki Service
« Last post by stahta01 on February 18, 2026, 10:29:44 am »
Might wish to tell someone to update https://www.codeblocks.org/post/ because it implies that this forum is down.
59
Help / Re: Wiki Service
« Last post by ollydbg on February 18, 2026, 09:37:21 am »
Please restore Wiki Service. It's been unavailable for approximately 36 hours.

I just sent an email to our site administrator for help. Let's wait for some days. Thanks for the report.
60
Using Code::Blocks / Re: Can't Get Debugger to Work
« Last post by cdavalillo on February 18, 2026, 12:43:45 am »
Working on Linux I experience crashes too. Basically when I going to see variables content on the Watches window (or control widgets) the application (Code::Blocks) simply freeze until it close completely. I thought it was a memory issue but after check twice I have enough free memory (32 GB). I know it has to do with the memory used for debugging because in small blocks of code never happens this, while in blocks of code with many variables it always crashes.
Pages: 1 2 3 4 5 [6] 7 8 9 10