|
-
Aug 14th, 2004, 12:57 AM
#1
Thread Starter
Frenzied Member
Whats the best way to send varables between processes rapidly?
Whats the best way to send and receive data between two processes? I have about 10 processes open, all needing to work with data from the (1) main process. My current method is that the main process has all the data in a listbox, and each of the 10 processes grab the first item from that listbox, then delete the first item, so that 10 processes can work at their own pace with data that is stored in the main process.
but naturally , this can create problems. ive found if many apps access that listbox at the same time, and delete items at the same time, the app can crash.
which leads me to this post. what would be the best way of sending/receiving data between applciations?
i thought of another way.. to have an array of 10 textboxes, with the main process assigning the text to those textboxes. the other processes could use WM_GETTEXT to retrieve the string stored in that textbox, and process the data. when finished it could use WM_SETTEXT to set the textbox string to "done", then in the textbox_change event, ill be able to tell which process has completed its task on that string, and the app can assign a new string to the box which the process can retrieve again.
is there a better method to do this?
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
|