Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unhandled exception when making new sale

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
althurm



Joined: 09 Aug 2016
Posts: 9

PostPosted: Mon Aug 29, 2016 6:42 pm    Post subject: Unhandled exception when making new sale Reply with quote

Hello All,

I have my license tracker server setup as SQL server and am able to make new sales fine on my machine. On another machine I have a different user that is trying to make sales on the same SQL Server db. When I do new sale I try to select a product in the product dropdown. When I select my desired product I am getting an exception thrown by the software:

"An unhandled exception occured in Infralution License Tracker."
Exception Type: ObjectDisposedException
Message: Cannot access a disposed object.
Object Name: 'VirtualListBox'.

And it goes on to list the stack trace, etc... Has anyone seen this or have any idea what might cause this?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Aug 29, 2016 10:12 pm    Post subject: Reply with quote

Can you repeat the error? If so can you please post the exact steps that cause the error. Also if you could post the stack trace (pressing Control-C will copy the message dialog text to the clipboard) that would help.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
althurm



Joined: 09 Aug 2016
Posts: 9

PostPosted: Tue Aug 30, 2016 1:58 pm    Post subject: Reply with quote

Basicaly I had created a product variant

1. Open License Tracker
2. Click New Sale
3. At the Product dropdown I see My parent product and when I click the dropdown arrow I see the product variant under that.
4. Choose the Product variant which is 2nd in the dropdown list

The exception then comes. There seems to be an issue with how the GUI handles mouse clicks (just figured this out). Because if I use the keyboard and just tab to the dropdown and use the arrow keys to select the product then it seems to work fine. Not sure if this matters but, machine showing the issue is Win 7 x64 with .net framework 3.5



---------------------------
Unhandled Exception
---------------------------
An unhandled exception occurred in Infralution License Tracker. Please contact Infralution and provide the information given below:



Exception Type: ObjectDisposedException
Message: Cannot access a disposed object.
Object name: 'VirtualListBox'.

Stack Trace:
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.PointToClientInternal(Point p)
at Infralution.Controls.VirtualListBox.OnDragSelectTimerTick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Click Retry to attempt to continue, Abort to terminate the program or Ignore to continue and ignore any further errors.

---------------------------
Abort Retry Ignore
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Aug 30, 2016 10:09 pm    Post subject: Reply with quote

So this happens without another user also accessing the database?

Unfortunately I can't replicate this issue. Are you able to replicate it each time?

What version of License Tracker are you using?

How many products are there in the drop down list?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
althurm



Joined: 09 Aug 2016
Posts: 9

PostPosted: Wed Aug 31, 2016 10:55 am    Post subject: Reply with quote

I am able to replicate it. Actually, one of two things will happen When I try to select the 2nd product in the list:
1. The exception occurs
2. Nothing happens and the dropdown goes back up and the 1st product remains selected

If I keep trying to select the 2nd selection eventually the exception will occur

Version 6.2.0.0

There are only 2 products in the dropdown
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Aug 31, 2016 11:39 pm    Post subject: Reply with quote

That's strange. I've set up License Tracker to replicate your configuration but still can't replicate an error. Do you get the same issue with other dropdowns (for instance the Customer dropdown in the Sale dialog)?

Are you doing anything unusual - or is there anything unusual about your machine?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Sep 01, 2016 12:42 am    Post subject: Reply with quote

Even though I can't replicate the issue I think I can see how the error may occur. I have uploaded a beta version of the next release (6.3.0) which includes a fix for this. You can you download this beta version from:

www.infralution.com/downloads/InfralutionLicensingSetup6-3-0Beta.exe

If you can install this and verify whether it fixes the issue on your machine. We will then release the version formally after some further testing.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
althurm



Joined: 09 Aug 2016
Posts: 9

PostPosted: Thu Sep 01, 2016 3:56 pm    Post subject: Reply with quote

Unfortunately, the machine that has the issue is in our software loading cell on our manufacturing floor. I do not have authorization to install and test beta software on that machine. We have rewritten our procedure to just use the keyboard at the New Sale dialog. Essentially the manufacturing engineer will just tab to each dropdown and use the arrow keys to make his selection. Thanks
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Sep 01, 2016 10:53 pm    Post subject: Reply with quote

Have you seen the issue on any other machines that you can access?

We will release Version 6.3 with the change anyway - since it does no harm.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group