Can not execute a call to CStringCreateWithCString lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- MISV · 2017-07-03 11:19 In Lazarus 1.6.4 running in debugger macOS Sierra 10.12.4 With the underneath code I am getting Quote"The debugger encountered and error when trying to run/step the application. Cannot find bounds of current function" Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure myTest;var  TestStrUTF8: UTF8String;  TmpStrPr_CSS: ConstCStringPtr;  TmpCFStrRef: CFStringRef;  TmpStrPtr: Pointer;begin  TestStrUTF8 := 'http://example.com';  TmpStrPtr := Pointer(TestStrUTF8)  TmpStrPtr_CSS := ConstCStringPtr(TmpStrPtr);  TmpCFStrRef := CStringCreateWithCString(nil, TmpStrPtr_CSS, kCFStringEncodinguTF8); // Note1: we are only using ASCII, Note2: We have tried KCFStringEncodingWindowsLatin1 with same problem   // jumps out of routine - and shows debugger dialog "Cannot find bounds of current function" here   showmessage('never reaches, crashes first');end;  I do not otherwise have problems debugging.I am running above code in main thread. ---------------------------------------------------------------------- MISV · 2017-07-03 18:40 This seems to be a  Mac debugger issue calling any Mac issues so moved post to here: https://forum.lazarus.freepascal.org/index.php?topic=37429