@icehuli said:
in case somebody using it, added a new project "IHL_CsR22ExtApp0" for Sketchup 2018/2017 x64 with ruby 22
Interesting and nice job Icehuli!
I currently working on your C# project "IHL_CsExt0" .After successfully build your code I connected this with SketchUp 2023 but I got exception at following function :
public static void rb_define_module_function(VALUE module, string name, CallbackArg2 func)
{
MethodDelegates.Add(func);//keep a reference to "func" to prevent it being garbage collected
rb_define_module_function(module, name, func, 2);
}
exception occurs ::
1.Exception thrown at 0x00007FF99A750EB6 (x64-msvcrt-ruby270.dll) in SketchUp.exe: 0xC0000005: Access violation reading location 0x000000006F21B998.
2.System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
3.kernelbase.pdp Not Loaded
Currently using ::
SketchUp 2023 with "x64-msvcrt-ruby270.dll" in visual studio 2019.
framework=.net 4.5 also add post build event to copy "IHL_CsExt0.so" file (SketchUp)Plugin folder
Can you please help me out for this issue. Thank you In Advance!