Executing any of the following lines of Lua crashes SciTE.
They show an error message and terminate SciTE since these functions should not be called by the part of the interface code to Scintilla which is used by scripts. The error message is shown on Windows but doesn't currently appear on GTK+ which doesn't handle fatal panics well.
If they should not be called, why are they exposed at all?! Why couldn't these accesses just return nil instead of crashing loudly? Even an error box is wrong here; it's supposed to be a programmatic interface. Doing the equivalent of
for key, value in pairs(editor) do
(which I had to monkeypatch in anyway) should neither crash nor inconvenience the user in any way.
They are exposed by some generic code that doesn't understand that the call it uses is dropping bits from (64-bit when on 64-bit platforms) pointers returned through a 32-bit interface.
If its important to you then handle the ScintillaFailure exception in the scripting layer.
Fix committed as .
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.