Okay, I worded the question poorly. I mean compiled Pascal code then.
  
      I think Bob is right though, it is a case of inspecting the source code since at some point it is windows native code that is executing. So you don't know if it is strictly synchronous or asynchronous in a single threaded app? Sometimes it seems like maybe some code goes in as a Postmessage(?) while the (single) thread continues to run so that things aren't executed in a 100% linear manner.
  
  Dave

Rob Kennedy <[EMAIL PROTECTED]> wrote:
  David Smith wrote:
> 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


-----------------------------------------------------
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.

   
---------------------------------
 



           
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

[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




Reply via email to