In Lazarus 1.6.4 running in debugger macOS Sierra 10.12.4
With the underneath code I am getting
"The debugger encountered and error when trying to run/step the application. Cannot find bounds of current function"
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.