Exception when calling GetSelectionStartLine() inside OnPluginInstall

Posted by Fiendish on Sun 05 Jul 2020 06:50 PM — 2 posts, 13,653 views.

USA Global Moderator #0
Loading a world that has this plugin included causes a C++ exception and leads to crashes in base MUSHclient either right away or when closing the world.


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
   name="test"
   author="fiendish"
   id="232929de0748519ad7b22adf"
   language="Lua"
   purpose="test"
   save_state="y"
   date_written="2020-07-05 13:33:23"
   requires="5.06"
   version="1.0"
   ></plugin><script>
function OnPluginInstall()
   GetSelectionStartLine()
end
</script>
</muclient>
Amended on Sun 05 Jul 2020 07:03 PM by Fiendish
Australia Forum Administrator #1
Fixed in the pre-release version.

https://github.com/nickgammon/mushclient/commit/b5fdc19