Quote Originally Posted by tmighty2 View Post
The reason why I am asking if that I create a cconnection exactely the same from the main thread and from a threaded dll, and the cconnection is created using yet another an activex dll, and for some reason, there kind of a "timing problem": When I press Pause in the IDE at some point of time, the main thread can suddenly "see" the cconnection and the records that the threaded lib inserted.
But I have not found out the problem behind it.
With such a shared MemDB, you can instantiate a separate cConnection in the main, as well as in each (STA)-thread.
All these separate Connection-Objects then share the same MemDB-allocation - and can "read/write" into it -
(as long as the same virtual file-name is used: as e.g. file:drivescanner?mode=memory&cache=shared)

Your above "problem" (the main-thread can read data, which other AX-Dll-Threads have written into the MemDB,
is exactly "what one tries to achieve" with such a setup... (data-sharing in a mem-area, conveniently accessible from each thread).

Please describe in more detail, what you're trying to accomplish...

Olaf