fastpole / tibiatekbot

Automatically exported from code.google.com/p/tibiatekbot
0 stars 0 forks source link

Cavebot crashes when removing monsters #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Users reported having this problem.

Original issue reported on code.google.com by cameri2...@gmail.com on 8 Nov 2007 at 3:42

GoogleCodeExporter commented 9 years ago

Original comment by cameri2...@gmail.com on 8 Nov 2007 at 3:42

GoogleCodeExporter commented 9 years ago
What does "removing monsters" mean? O.o
But I'm gonna put cavebot under the test today.

Original comment by Oskari.V...@gmail.com on 8 Nov 2007 at 8:50

GoogleCodeExporter commented 9 years ago

Original comment by Oskari.V...@gmail.com on 8 Nov 2007 at 8:55

GoogleCodeExporter commented 9 years ago
Actions for the Unhandled exception to happen:
1. Open Cavebot window.
2. Mark "Attack Only Monsters In List" (may be optional, I'm not sure)
3. Press "Add" and add any monster... like "Rotworm".
4. Select the monster from the list and press "Remove".

The Unhandled Exception shows this for me:
{{{
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be 
non-negative and
less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument,
ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.RemoveAt(Int32 index)
   at TibiaTekBot.frmCavebot.RemoveMonster_Click(Object sender, EventArgs e) in E:\VB
.NET Projects\TTB\trunk\TibiaTekBot2\frmCavebot.vb:line 267
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
TibiaTekBot
    Assembly Version: 2.1.0.0
    Win32 Version: 2.1.0.0
    CodeBase:
file:///D:/Program%20Files/TibiaTek%20Bot%20DevTeam/TibiaTek%20Bot/TibiaTekBot.e
xe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d5
0a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.198 (QFE.050727-1900)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e
089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/Sy
stem.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c5619
34e089/System.Runtime.Remoting.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System
.Xml.dll
----------------------------------------
CPargermer.Tibia.Crypt
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase:
file:///D:/Program%20Files/TibiaTek%20Bot%20DevTeam/TibiaTek%20Bot/CPargermer.Ti
bia.Crypt.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50
a3a/System.Configuration.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///D:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.W
eb.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
}}}

If you press "Continue" on the Unhandled exception window the monster is 
removed and
TibiaTek Bot doesn't crash.

Original comment by genoso...@gmail.com on 9 Nov 2007 at 12:39

GoogleCodeExporter commented 9 years ago
Fixed the problem.

Original comment by Oskari.V...@gmail.com on 9 Nov 2007 at 7:23