'InvalidOperationException' error when exiting application


11-01-2006, 6:58 AM

I am now getting an 'InvalidOperationException' error when I exit my applicaiton. The error message is 'DragDrop registration did not succeed'. When I copy the whole error to the clipboard, this is what I get:

System.InvalidOperationException was unhandled
  Message="DragDrop registration did not succeed."
  Source="SharpUI.Toolbars"
  StackTrace:
       at DataDynamics.SharpUI.Toolbars.BandCollection.Clear()
       at DataDynamics.SharpUI.Toolbars.UiToolbarManager.Dispose(Boolean disposing)
       at System.ComponentModel.Component.Finalize()

I am due to release my app very soon and this sort of thing is making that impossible. Please help me resolve this issue and the issue I posted yesterday.

 

Re: 'InvalidOperationException' error when exiting application


11-02-2006, 10:29 AM
iKevan,

Thank you for the post. I was not able to reproduce the problem you are reporting in the attached sample. Could you please modify this sample so that I can see this specific exception being thrown?

Thank you for any additional insight you can offer and I look forward to hearing from you.

Re: 'InvalidOperationException' error when exiting application


11-02-2006, 10:49 AM

No I can't. First of all, my app is in VB.NET, second the fault is intermittent and third, I have no idea of the cause so how exactly do you suggest I modify the sample so that you can see the exception being thrown.

Instead of trying to get me to do all the work, why don't you look at the code in the 'BandCollection.Clear' routine and attempt to determine where an 'InvalidOperationException' error could occurr and once you figure that out, try fixing it. I can't imagine there are that many places where the message 'DragDrop registration did not succeed' would be generated.

As a programmer of 15 years myself, I appreciate the difficulty of fixing an issue that you can't replicate but you simply can't put the onus back on the customer. I have purchased your product in good faith expecting it to be reliable and generally bug free (not totally bug free of course). I personally come across these situation regularly but I make absolutely every effort to figure out the problem myself before I go back to the customer and even then, I certainly don't presume that if they provide me with an example that doesn't work on their system that it won't work on my system also. Chances are, it will work fine on my system but that does not mean that the problem is theirs. It would still be my program that was erroring and therefor my problem to solve.

Please either provide me with a code based work around that I can use to prevent the problem occurring or a service pack that fixes the problem. That goes for my previous issue also.

Re: 'InvalidOperationException' error when exiting application


11-03-2006, 4:47 PM
iKevan,

Thank you for the reply. The best way that I can help you would be for me to see the behavior you are describing in a small running sample. This way I can show our development team the error message that is occuring and give them something to run against the source so that they can more effectively work to resolve the problem. Or, I can help you determine if there is something that needs to be adjusted with the way you are approaching the use of SharpUI for .NET.

Either way, I have no problem with trying to setup a sample that reproduces this. I have attached a VB.NET version of the project I will use as a base. Could you please provide some details about your project that I can use to try to replicate the error in this sample? Also, what build are you using? What development environment are you using? Are you using ToolWindows? Are you hosting any controls on toolbars? If using Toolwindows, are you hosting any controls on your toolwindows? What Operating System are you experiencing these errors on? Is there any specific action (i.e. clicking on a specific button and then on a second specific button) that this seems to occur most often with? Is there any additional information that I might need to try to modify this sample and reproduce this error message?

Thank you for your help and I look forward to hearing from you.

Re: 'InvalidOperationException' error when exiting application


03-19-2007, 5:32 AM
I have not received any notification as to the state of this issue. My application still gets this error frequently when exiting and it is still delaying the launch of our program. I am unable to create a new application that replicates this error.

Re: 'InvalidOperationException' error when exiting application


03-20-2007, 11:20 AM
iKevan,

Thank you for the reply.  As mentioned previously, we have not been able to see the problem that you are experiencing.  And without seeing the problem there is no definitive way to know whether our efforts will fix the problem.  So, reproducing the behavior is the first thing we need to achieve.

If you could modify the sample I posted earlier or provide some additional information that I can use to modify the sample I posted earlier I would be glad to take a deeper look at this with you.

Thank you for any additional insight you can offer and I look forward to hearing from you.

Re: 'InvalidOperationException' error when exiting application


05-01-2007, 9:11 AM
Hello there,

I am still getting this error and am unable to create an example that does the same thing to send to you.

Is it possible to set up a web sessoin so that you can see the error occurring.

If we can't resolve this problem we will have no choice but to drop your products from our app which would be an extremly painful process.

Can you please give me some help on this one.

IAN KEVAN

Re: 'InvalidOperationException' error when exiting application


05-01-2007, 3:45 PM
Ian,
    Thank you for your reply. Unfortunately, seeing the error message will not help much in diagnosing the exact cause of the behavior you are seeing (as it may be related to something application or machine specific). The best approach for diagnosing this behavior as Steve mentioned earlier is to attempt to localize it and reproduce it in a testing environment (so our development team has something to test a fix against to ensure it has indeed been addressed). Please provide me with any additional information you may have that could help me reproduce this behavior in a testing environment.

I look forward to hearing from you. Thank you!

Eric