Hi,
reported serious Cocoa problem here:
http://bugs.freepascal.org/view.php?id=31253I investigated already a couple of hours but need help now:
Crash will happen on calling: ctx.saveGraphicsState; All components based on TCocoaCustomControl have this problem trying to draw its content in drawRect. NSGraphicsContext.currentContext.saveGraphicsState; will also crash e.g. if one put this e.g. into TCocoaCustomControl.drawRect(dirtyRect: NSRect);
But other NScalls from NSGraphicsContext like NSGraphicsContext.currentContext.isDrawingToScreen working.
Are there any conditions for the NSGraphicsContext that has to be fullfilled before calling to saveGraphicsState is allowed?
By the way: debugged with self compiled and signed gdb 1.12 from downloaded source code. Description here worked for me:
https://sourceware.org/gdb/wiki/BuildingOnDarwin:
./configure
make
make install
codesign -f -s "gdbcert" /usr/local/bin/gdb
Thanks for any hint or fix.