Thanks for replying Bob.
So what I think you're saying is that if I'm calling a function of some 3rd party library for example, I don't know that it isn't spawning a thread so can't assume it's going to finish before it returns? But how about standard Delphi pascal code? Can I assume that things are synchronous there for the most part? I can't think of a specific example, I just had doubts raised several times that that was what was really happening. I couldn't think of a good way to test it besides using SendMessage or PostMessage. I wasn't even considering multi-threading applications, just the regular single thread. Thanks.
Dave
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
Hi Dave,
you can't be sure, you have to believe
or
look into the windows sources.
But
Windows is designed to work exactly in that way: pre-emptive, miltitasking, thread based.
There might be a good chance, that your underlying database uses messages and waits for the conclusion of a command,
but it will be designed in a way that your program will not gain control again until that job is finished.
You ought to belive in the functionallity of the elementary techniques, better doubt the complex ones ;-)
how to make RELLY sure? there are tCriticalSection and WatForSingleObject ot govern threads. use them at rare needs
Have fun!
Bob
> I would like to know how I can make sure the code will wait for something to process before executing the next line of code or NOT wait. I know I'm getting this with
> Sendmessage or PostMessage but not sure with Delphi events. So I guess my question is, Is a Delphi event synchronous (waits until first line finishes before going to next line) or
> asynchronous (executes next line even if first line isn't finished). I have seen things happen that raised doubts in my mind that Delphi was processing things synchronously.. like a
> lengthy talbe read followed by some code.
>
> Dave
>
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
SPONSORED LINKS
C programming language Computer programming languages Java programming language The c programming language C programming language Concept of programming language
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "delphi-en" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2ยข/min with Yahoo! Messenger with Voice.
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
SPONSORED LINKS
| C programming language | Computer programming languages | Java programming language |
| The c programming language | C programming language | Concept of programming language |
YAHOO! GROUPS LINKS
- Visit your group "delphi-en" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

