Strange ADO.NET problem

  • Thread starter Christian Westerlund
  • Start date
C

Christian Westerlund

Hi there!

I have an application which communicates alot with a SQL-Server.
It has grids for displaying data and edit-forms for editing data.
I have an AppException handler so I will receive all unhandled
exceptions and ignore them if they aren't important.
But when I edit tables alot, add data and remove data I get the
following exception when I close my app and I isn't caught by my AppExit
handler.

An unhandled exception of type 'System.InvalidOperationException'
occurred in mscorlib.dll

Additional information: LocalDataStoreSlot-lagringen har frigjorts.

The part written in swedish above would roughly translate into:
"LocalDataStoreSlot-Store has been released."

Do anyone know what the problem is.
I use sqldataadapters and commandbuilders.

/Christian
 
W

W.G. Ryan eMVP

What exceptions are you getting that you are ignoring? Don't mean to
lecture but that's probably hurting your performance. It's hard to tell.

Does it only happen when you close?
 
C

Christian

Hi!

Well actually I'm not getting any exceptions that I'm ignoring for the
moment, the AppException purpose was when we showed the program for our
customers so that no exception would pop up in front of them.
So there isn't any exception other than the one I'm talking about which
only appears when I close the app, either with me.close or with the red
cross up to the right.
I'm also using the adapter.RowUpdating handler for setting the foreign
key in a child table if that is of any importance.
This exception only occurs when adding/editing/removing data from the
table which has a child table with information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top