|
-
May 7th, 2026, 02:36 AM
#2
Re: RC6: Memory-Cn visibility problem
 Originally Posted by tmighty2
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|