Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
Using Code::Blocks / Re: Can't Get Debugger to Work
« Last post by Pecan on February 19, 2026, 08:20:12 pm »
I'm on the 25.03 version, the number of variable I think is like 20 std::vectors, I don't use raw pointers so I know it is not wrong pointer arithmetics or overflow indices errors. The settings for debuggers are almost the default, I only check for full log on debugging.

It's important to know if you have the debugger "Watch local variables" set.
How big are your 20 std:vectors so I can emulate the problem.
Are the vectors global or local to a function?
52
Help / Re: Wiki Service
« Last post by stahta01 on February 19, 2026, 05:22:21 pm »
Might want to check wiki it is down for me
53
Using Code::Blocks / Re: Can't Get Debugger to Work
« Last post by cdavalillo on February 19, 2026, 01:17:19 pm »
I'm on the 25.03 version, the number of variable I think is like 20 std::vectors, I don't use raw pointers so I know it is not wrong pointer arithmetics or overflow indices errors. The settings for debuggers are almost the default, I only check for full log on debugging.
54
General (but related to Code::Blocks) / Plugin GIT ? Plugin SVN ?
« Last post by ThierryD on February 19, 2026, 12:03:15 pm »
Hi,

Many recent IDE provide "transparent" access to GIT repository or in lesser degree access to SubVersion repository.
When I search if an "plugin" CB can manage these "store", I don't find.

Is an "eccentric" or ridiculous idea or not to think an solution of my ask into CB ?

Just an recent suggestion to developers CB.

Thank.

Regards.
 
55
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.
56
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?
57
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"));
58
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'
59
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. 
60
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"));
Pages: 1 2 3 4 5 [6] 7 8 9 10