This is a migrated thread and some comments may be shown as answers.

LocalDataStoreSlot storage has been freed.

2 Answers 167 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 2
Robert asked on 19 Dec 2008, 02:52 PM
Not sure why but when I close my app now I get an OpenAccessORM exception.  This was working before when I was using multiple scopes but since changing to one global scope this error occurs when I close my application.  Any ideas?

"   at System.LocalDataStore.GetData(LocalDataStoreSlot slot)\r\n   at System.Threading.Thread.GetData(LocalDataStoreSlot slot)\r\n   at OpenAccessRuntime.logging.LogEvent.getContext()\r\n   at OpenAccessRuntime.logging.LogEvent..ctor()\r\n   at OpenAccessRuntime.storagemanager.logging.StorageManagerEvent..ctor(Int32 storageManagerId, Int32 type)\r\n   at OpenAccessRuntime.storagemanager.logging.SmTxEvent..ctor(Int32 storageManagerId, Int32 type, Boolean optimistic)\r\n   at OpenAccessRuntime.storagemanager.logging.SmTxEvent..ctor(Int32 storageManagerId, Int32 type)\r\n   at OpenAccessRuntime.storagemanager.logging.LoggingStorageManager.rollback()\r\n   at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.rollbackImp()"

2 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 19 Dec 2008, 04:21 PM
Hi Robert,
We have to fix that, is there a place in your app where you can Dispose the scope just before exiting? I am not sure why this exception is thrown to your app, it should be handled internally.

Regards,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Robert
Top achievements
Rank 2
answered on 19 Dec 2008, 04:44 PM
Visual Studio is catching it as the app shuts down.

I've disposed of any opened context on shutdown and the problem went away.

Thanks!
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 2
Answers by
Jan Blessenohl
Telerik team
Robert
Top achievements
Rank 2
Share this question
or