Skip to Content
author's profile photo Former Member
Former Member

Tips & tricks asynchronous processing

Hi all,

We are having a server program that is processing files for a certain folder. At the moment this is being done synchronous and i am looking for tips & tricks to convert this behaviour to asynchronous processing.

The server program has a datawindow in which all the processing is being logged ie


file c:\data\123.txt was processed and moved to c:\data\backup

file c:\data\'456.txt was processed and moved to c:\data\backup

auto-mail function for c:\data\456.txt completed


Depending on the contents of the file either 1 or more entries (read : rows in the datawindow) with logging information are created in this datawindow.

I know and read about the SharedObjectRegister and so on.

Questions i am having is

1) I read that we can't access any object from the original thread inside our sharedobject. Can we use any variable (structure) or something like that so we can pass the logging information back to the main thread and inside the datawindow ?

2) How many sharedobjects can be run ? Should this be a concern ?

3) Any general tips , tricks concerning this issue are always welcome !



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 04, 2014 at 12:55 PM

    Hi John;

    Here are my responses to your questions:

    1) Yes, you can access any object n the main thread ... you just need to pass in its address to the secondary thread and of course, make sure that you use the IsValid ( ) method to ensure that its still a viable resource.

    2) I have tested up to 255 concurrent threads. I have a few applications in production that use up to 50 threads with no issues. I might also add that their work load is quite intense as well and they run 24/7 with no issues.

    3) If you are looking for a framework that supports multi-threading ... have a look at my free framework for PB, EAS, IIs and Appeon on SourceForge (note: All my clients multi-threaded applications are built from this framework) ... STD Foundation Classes | Free Development software downloads at


    Regards ... Chris

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.