LocalDataStoreSlot storage has been freed.

3 posts, 0 answers
  1. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 19 Dec 2008 Link to this post

    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. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 19 Dec 2008 Link to this post

    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.
  3. DevCraft banner
  4. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 19 Dec 2008 Link to this post

    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!
Back to Top