Hi!
I'm testing a section of a script but I keep getting this error:
index exceeds the limit of the matrix
and this is the message:
- Spoiler: show
- Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.
************** Testo dell'eccezione **************
System.IndexOutOfRangeException: Indice oltre i limiti della matrice.
in Tease_AI.Form1.SysKeywordClean(String StringClean) in C:\Users\Werner\Downloads\Tease-AI-0.55.3.0\Tease-AI-0.55.3.0\Tease AI\Form1.vb:riga 7841
in Tease_AI.Form1.PoundClean(String StringClean) in C:\Users\Werner\Downloads\Tease-AI-0.55.3.0\Tease-AI-0.55.3.0\Tease AI\Form1.vb:riga 8279
in Tease_AI.Form1.Timer1_Tick(Object sender, EventArgs e) in C:\Users\Werner\Downloads\Tease-AI-0.55.3.0\Tease-AI-0.55.3.0\Tease AI\Form1.vb:riga 4794
in System.Windows.Forms.Timer.OnTick(EventArgs e)
in Tease_AI.teaseAI_Timer.OnTick(EventArgs e) in C:\Users\Werner\Downloads\Tease-AI-0.55.3.0\Tease-AI-0.55.3.0\Tease AI\Classes\teaseAI_Timer.vb:riga 50
in System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Assembly caricati **************
mscorlib
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2634.0 built by: NET471REL1LAST_C
Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Tease AI
Versione assembly: 0.55.3.0
Versione Win32: 1.0.0.0
Base di codice: file:///C:/Users/ASUS/Desktop/tigrotto/CASA/Programmi/TeaseAI/TeaseAI/Tease%20AI.exe
----------------------------------------
Microsoft.VisualBasic
Versione assembly: 10.0.0.0
Versione Win32: 14.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2634.0 built by: NET471REL1LAST_C
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2634.0 built by: NET471REL1LAST_C
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2612.0 built by: NET471REL1LAST_B
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Speech
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Speech/v4.0_4.0.0.0__31bf3856ad364e35/System.Speech.dll
----------------------------------------
AxInterop.WMPLib
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///C:/Users/ASUS/Desktop/tigrotto/CASA/Programmi/TeaseAI/TeaseAI/AxInterop.WMPLib.DLL
----------------------------------------
Interop.WMPLib
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///C:/Users/ASUS/Desktop/tigrotto/CASA/Programmi/TeaseAI/TeaseAI/Interop.WMPLib.DLL
----------------------------------------
mscorlib.resources
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Accessibility
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.GeneratedCode
Versione assembly: 1.0.0.0
Versione Win32: 4.7.2612.0 built by: NET471REL1LAST_B
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.mshtml
Versione assembly: 7.0.3300.0
Versione Win32: 7.0.3300.0
Base di codice: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
************** Debug JIT **************
Per abilitare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
abilitato.
Ad esempio:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Quando il debug JIT è abilitato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo
Sorry it's in Italian...
I'm using markus' unofficial patch 55.5 at the moment, but it happens also with Daragorn's patch 55.3.
This is the message of the error with Daragorn's patch 55.3:
- Spoiler: show
- Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.
************** Testo dell'eccezione **************
System.IndexOutOfRangeException: Indice oltre i limiti della matrice.
in Tease_AI.Form1.SysKeywordClean(String StringClean) in G:\tigrotto\Tease-AI2\Tease AI\Form1.vb:riga 7813
in Tease_AI.Form1.PoundClean(String StringClean) in G:\tigrotto\Tease-AI2\Tease AI\Form1.vb:riga 8251
in Tease_AI.Form1.Timer1_Tick(Object sender, EventArgs e) in G:\tigrotto\Tease-AI2\Tease AI\Form1.vb:riga 4766
in System.Windows.Forms.Timer.OnTick(EventArgs e)
in Tease_AI.teaseAI_Timer.OnTick(EventArgs e) in G:\tigrotto\Tease-AI2\Tease AI\Classes\teaseAI_Timer.vb:riga 50
in System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Assembly caricati **************
mscorlib
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2634.0 built by: NET471REL1LAST_C
Base di codice: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Tease AI
Versione assembly: 0.54.9.0
Versione Win32: 1.0.0.0
Base di codice: file:///C:/Users/ASUS/Desktop/tigrotto/CASA/Programmi/TeaseAI/TeaseAI/Tease%20AI.exe
----------------------------------------
Microsoft.VisualBasic
Versione assembly: 10.0.0.0
Versione Win32: 14.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2634.0 built by: NET471REL1LAST_C
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2634.0 built by: NET471REL1LAST_C
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2612.0 built by: NET471REL1LAST_B
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Speech
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Speech/v4.0_4.0.0.0__31bf3856ad364e35/System.Speech.dll
----------------------------------------
AxInterop.WMPLib
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///C:/Users/ASUS/Desktop/tigrotto/CASA/Programmi/TeaseAI/TeaseAI/AxInterop.WMPLib.DLL
----------------------------------------
Interop.WMPLib
Versione assembly: 1.0.0.0
Versione Win32: 1.0.0.0
Base di codice: file:///C:/Users/ASUS/Desktop/tigrotto/CASA/Programmi/TeaseAI/TeaseAI/Interop.WMPLib.DLL
----------------------------------------
mscorlib.resources
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Accessibility
Versione assembly: 4.0.0.0
Versione Win32: 4.7.2558.0 built by: NET471REL1
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.GeneratedCode
Versione assembly: 1.0.0.0
Versione Win32: 4.7.2612.0 built by: NET471REL1LAST_B
Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.mshtml
Versione assembly: 7.0.3300.0
Versione Win32: 7.0.3300.0
Base di codice: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
************** Debug JIT **************
Per abilitare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
abilitato.
The section of the script that is causing the error is this:
Code: Select all
@NullResponse @RapidCodeOn
@NullResponse @Flag(24-7_work_on_friday,24-7_work_on_saturday) @Variable[#DateDifference(24-7_come_home,minutes)]>=[0]And[#DateDifference(24-7_go_to_sleep_working_day,minutes)]<=[0] @TempFlag(L5) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @Flag(24-7_work_on_friday) @NotFlag(24-7_work_on_saturday) @Variable[#DateDifference(24-7_come_home,minutes)]>=[0]And[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]<=[0] @TempFlag(L6) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @NotFlag(24-7_work_on_friday) @Flag(24-7_work_on_saturday) @Variable[#DateDifference(24-7_go_to_sleep_working_day,minutes)]<=[0] @TempFlag(L7) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @NotFlag(24-7_work_on_friday,24-7_work_on_saturday) @Variable[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]<=[0] @TempFlag(L8) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @RapidCodeOff
But I
only get this error when one between flag
24-7_work_on_friday and
24-7_work_on_saturday is set.
I checked the script multiple times and there's nothing wrong.
What is even more strange is this: the structure of the first two lines
is the same, except for the different use of
@Flag @NotFlag at the beginning.
Code: Select all
@NullResponse @Flag(24-7_work_on_friday,24-7_work_on_saturday) @Variable[#DateDifference(24-7_come_home,minutes)]>=[0]And[#DateDifference(24-7_go_to_sleep_working_day,minutes)]<=[0] @TempFlag(L5) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
@NullResponse @Flag(24-7_work_on_friday) @NotFlag(24-7_work_on_saturday) @Variable[#DateDifference(24-7_come_home,minutes)]>=[0]And[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)]<=[0] @TempFlag(L6) @SetVar[24-7_time_before_going_to_sleep]=[#DateDifference(24-7_go_to_sleep_not_working_day,minutes)] @TempFlag(24-7_checking_available_time_before_sleep)
The same with the last two lines but I only get the error when only one of the two flags is set.
Trying to understand what could be the main cause, I removed some parts of the script. What I found is that removing the
@SetVar command fix the problem.
But I need that @SetVar!
For example, if I set
only flag 24-7_work_on_friday and I remove the
@SetVar from the
@Flag(24-7_work_on_friday) line the script works.
So I tested the @SetVar alone but I didn't get the error.
Can anyone help me, please? I really don't know what to do.
I made a small script in case you want to make some tests.
Thanks!
Bye