I cant reproduce exactly when this would be triggered but is really frequent at the moment.1.1.36.00 32bit
5
Critical Error: Invalid memory read/write.
Line#
306: Return,Trim(data, "
")
307: }
310: {
313: Gui,main:Default
314: Gui,Submit,NoHide
316: sci.SetText(false, "")
318: preview := HrefLink.Convert(source ? source : HrefType)
---> 320: Switch preview
321: {
322: Case ERRNONHTML:
323: MsgBox,"The script couldnt access the HTML clipboard on this computer."
324: Return,false
325: Case ERRNONLINKS:
326: MsgBox,"The text selected doesnt contain HTML."
327: Return,false
The program is now unstable and will exit.
EDIT:
well, there seem to be a type mismatch between my variable and the switch case value:
The interesting thing is that my function actually returns a variable that contains a number, so im not sure why the preview variable is set as a string.