> Rob, Do you know if there a native way to asynchronously process
> messages in Delphi (besides PostMessage)?
I'm not really sure what you mean. Can you give an example of what you
hope to be able do?
--
Rob
Sending WM message to TDataModule
2006-05-22 22:14:36
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
Rob Kennedy <rkennedycs.wisc.edu> wrote:
David Smith wrote:
> Rob, Do you know if there a native way to asynchronously process
> messages in Delphi (besides PostMessage)?
I'm not really sure what you mean. Can you give an example of what you
hope to be able do?
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:
delphi-en-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.
[Non-text portions of this message have been removed]
Sending WM message to TDataModule
2006-05-23 14:58:26
> 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).
A Delphi event is nothing more than a method pointer. When the
circumstances corresponding to an event occur, the component inspects
its event property. If the property is non-nil, the component invokes
the event handler. That simply calls the method. It's just like calling
any other method. Control is transfered from the caller to that method,
and code in the caller does not run until the method returns.
--
Rob