Access InMemoryWorkspace from background thread

645
0
10-12-2011 04:40 PM
AmyRamsdell
New Contributor III
Can you access an inmemoryworkspace created in the main thread from a background thread? (ArcGIS 9.3.1)

This works on the main thread, but throws an error : Object reference not set to an instance of an object, when trying to do this in the background thread.

 IWorkspaceFactory workspaceFactory = new InMemoryWorkspaceFactoryClass(); 
 IWorkspace wrkspc = workspaceFactory.OpenFromFile((string)hashtable["workspace"], 0);


I would like to access this data inmemory instead of writing to a scratch workspace if possible. Any suggestions?

Thanks!
Amy
0 Kudos
0 Replies