AGS Crash (not sure where to post this.)

Started by ironhide1975, Sat 21/06/2025 20:30:12

Previous topic - Next topic

ironhide1975

Error: Index and length must refer to a location within the string.
Parameter name: length
Version: AGS 3.6.2.11

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at AGS.Editor.ScintillaWrapper.GetPreviousPathedExpression(Int32 startAtPos, Boolean skipSpacesBeforeCursor)
   at AGS.Editor.ScintillaWrapper.ParsePreviousExpression(Int32 startAtPos, String& charactersAfterDot, Boolean& staticAccess, Boolean& isThis)
   at AGS.Editor.ScintillaWrapper.GetFullTypeNameAtPosition(Int32 charIndex)
   at AGS.Editor.ScriptEditorBase.UpdateScriptDocumentContext(Int32 clickedPositionInDocument)
   at AGS.Editor.ScriptEditorBase.UpdateUICommands()
   at AGS.Editor.ScriptEditorBase.scintilla_UpdateUI(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at AGS.Editor.ScintillaWrapper.OnUpdateUI(Object sender, EventArgs e)
   at ScintillaNET.Scintilla.OnUpdateUI(UpdateUIEventArgs e)
   at ScintillaNET.Scintilla.WmReflectNotify(Message& m)
   at ScintillaNET.Scintilla.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Crimson Wizard

Please tell when and under which circumstances did this happen?

Does this happen regularly, or happened once?

SMF spam blocked by CleanTalk