Access InMemoryWorkspace from background thread

Discussion created by aramsdell on Oct 12, 2011
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?