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.
Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!
Might wish to tell someone to update https://www.codeblocks.org/post/ because it implies that this forum is down.
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.
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 usingCodeBindMethod(v, _SC("GetBlue"), NoParamGetterInt<int, wxColour, &wxColour::GetBlue>, _SC("wxColour::GetBlue"));
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)
| ^~~~~~~~~~~~~~~~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)
| ^~~~~~~~~~~~~~~~BindMethod(v, _SC("GetBlue"), NoParamGetterInt<int, wxColour, &wxColour::GetBlue>, _SC("wxColour::GetBlue"));Might wish to tell someone to update https://www.codeblocks.org/post/ because it implies that this forum is down.
Thanks.Please restore Wiki Service. It's been unavailable for approximately 36 hours.