Exception when running VS2005 Sample 3

Bug reports.
ranettix
Posts: 20
Joined: Mon Aug 28, 2006 12:07 pm

Exception when running VS2005 Sample 3

Post by ranettix » Mon Aug 28, 2006 12:14 pm

The error is System.NullReferenceException, at
RanorexVS2005Sample3\Class1.cs:Line 244 - Ranorex.NumericUpDown.UpButton()

Assuming this is a bug
:?:

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Tue Aug 29, 2006 11:54 am

It could be a bug, but we cannot reproduce it.
We tried windows XP English and windows XP German with all Ranorex versions.
Please post your OS version, OS language and Ranorex version.

Best Regards

Jenö Herget
Ranorex Team

ranettix
Posts: 20
Joined: Mon Aug 28, 2006 12:07 pm

Post by ranettix » Tue Aug 29, 2006 12:57 pm

Here the Versions used:

1. Windows Version 5.1
(Build 2600.xpsp_sp2_gdr.050301-1519 : Service Pack 2)


2. Ranorex Version 0.9.2


3. Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installierte Edition: C# Express
Microsoft Visual C# 2005 76544-000-0000011-00126


I'm starting the application in a DOS window, so the messages
are still visible when the application exited.

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Wed Aug 30, 2006 11:50 am

Do you start the origin RanorexVS2005Sample3.exe (unzipped from Ranorex-0.9.2.zip) or your own build version?

Jenö Herget
Ranorex Team

ranettix
Posts: 20
Joined: Mon Aug 28, 2006 12:07 pm

Post by ranettix » Wed Aug 30, 2006 12:44 pm

That was new compilation. But I just downloaded your release 0.9.3-beta1
and tried the delivered Exe - same result. Here the details:

************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Ranorex.Mouse.MoveToElement(Element element)
bei VS2005Application.Form1.TestNumericUpDown_Click(Object sender, EventArgs e)
bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
bei System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
bei System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
bei System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Also, at the console, there is the crash message:

.................................................
Role=ScrollBar Name=Horizontale Bildlaufleiste Location=(696,683)
Role=PushButton Name=Bildlauf nach links Location=(696,683)
Role=PushButton Name=Seite nach links
Role=Indicator Name=Position Location=(713,683)
Role=PushButton Name=Seite nach rechts Location=(755,683)
Role=PushButton Name=Bildlauf nach rechts Location=(816,683)
Role=Grip Name= Location=(833,683)
Item Location=(718,628)

NumericUpDown found
Value=45

Unbehandelte Ausnahme: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Ranorex.Mouse.ClickElement(Element element)
bei Ranorex.NumericUpDown.UpButton()
bei RanorexVS2005Sample3.Class1.Main(String[] args)

ranettix
Posts: 20
Joined: Mon Aug 28, 2006 12:07 pm

Post by ranettix » Thu Aug 31, 2006 9:23 am

Sorry ... when runnning the sample on another computer, with Windows 2000, the error comes up also.

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Thu Aug 31, 2006 3:59 pm

OK thank you for the info,
we will check the problem with Windows 2000

Jenö Herget
Ranorex Team

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Tue Sep 05, 2006 4:16 pm

The bug was fixed, please use the V0.9.3 Beta3 or higher if you have this problem.

Download: http://www.ranorex.com/download/Ranorex-0.9.3-Beta3.zip

Jenö Herget
Ranorex Team