Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Help / Re: Wiki Service
« Last post by ollydbg on Today at 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.
2
Using Code::Blocks / Re: Can't Get Debugger to Work
« Last post by Pecan on Yesterday at 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?
3
Nightly builds / Re: The 09 February 2026 build (13785) is out.
« Last post by Miguel Gimenez on Yesterday at 07:13:22 pm »
Thanks for testing. The second should use GetBlue instead of Blue, they are different accessors.
4
Nightly builds / Re: The 09 February 2026 build (13785) is out.
« Last post by Xaviou on Yesterday at 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'
5
Help / Re: Wiki Service
« Last post by Frank_CB on Yesterday at 05:19:08 pm »
@ollydbg:

Thanks for forwarding the issue of the Wiki service being unavailable to the administrator. The response was superb. 
6
Nightly builds / Re: The 09 February 2026 build (13785) is out.
« Last post by Miguel Gimenez on Yesterday at 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"));
7
Help / Re: Wiki Service
« Last post by ollydbg on Yesterday at 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.
8
Help / Re: Wiki Service
« Last post by stahta01 on Yesterday at 10:29:44 am »
Might wish to tell someone to update https://www.codeblocks.org/post/ because it implies that this forum is down.
9
Help / Re: Wiki Service
« Last post by ollydbg on Yesterday at 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.
10
Using Code::Blocks / Re: Can't Get Debugger to Work
« Last post by cdavalillo on Yesterday at 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 ... 10