Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
peter green wrote: What does the compiler do when translating "procedure ... message" ? I need to know this as I want to create a non-GUI workalike of the TApplication class that can do things like "TTimer" "TThread.Synchronize", Message events, etc, using Windows messages in Windows (for tes

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Vincent Snijders
Michael Schnell schreef: peter green wrote: What does the compiler do when translating "procedure ... message" ? I need to know this as I want to create a non-GUI workalike of the TApplication class that can do things like "TTimer" "TThread.Synchronize", Message events, etc, using Windows mes

RE: [fpc-devel] procedure ... message

2007-02-13 Thread Thorsten Engler
That is the result of what is happening. Most of it is done by the library (the compiler can't do this by itself), and I am trying to use some home-brew library functions here. What I wanted to know is how the compiler does this (or how I can find out what exactly it

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
I see you are still a bit lost. Maybe the documentation can help: http://www.freepascal.org/docs-html/ref/refsu24.html I in fact am lost (as I still don't dare to try to look into the compiler's source code). Unfortunately the docs text does not say what code the compiler generates to make t

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
What happens is that the compiler creates an try in the message table of the RTTI for the class. Check out the implementation of Tobject.Dispatch to see how that is used. Thanks. That seems to give me a clue. I have no idea what "creates a try" means but maybe I'll find out. Thanks again,

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Vincent Snijders
Michael Schnell schreef: I see you are still a bit lost. Maybe the documentation can help: http://www.freepascal.org/docs-html/ref/refsu24.html I in fact am lost (as I still don't dare to try to look into the compiler's source code). Unfortunately the docs text does not say what code the com

RE: [fpc-devel] procedure ... message

2007-02-13 Thread Thorsten Engler
> Thanks. That seems to give me a clue. I have no idea what > "creates a try" means but maybe I'll find out. Should have been "an entry". ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
See implementation of dispatch. It gets the message number and looks for the corresponding method in a table. The compiler generates this table at compile time. Thanks. I did try to find it but am lost up till now. regarding Thorsten's message I assume it is a member function to some class (

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Micha Nelissen
Michael Schnell wrote: What happens is that the compiler creates an try in the message table of the RTTI for the class. Check out the implementation of Tobject.Dispatch to see how that is used. Thanks. That seems to give me a clue. I have no idea what "creates a try" means but maybe I'll fi

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
Thorsten Engler wrote: Thanks. That seems to give me a clue. I have no idea what "creates a try" means but maybe I'll find out. Should have been "an entry" Sorry for not guessing this :-\ . Now I need to find out what exactly it puts into the RTTI and how to extract it from there. Also

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
"creates an entry" most probably. Right. Thanks. -Michael (not a native speaker :-( ) ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
Also I failed to find the implementation of TObject.Dispatch. Have you any hint where to search ? Sorry. Found it ! Thanks again. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
Thanks. I did try to find it but am lost up till now. regarding Thorsten's message I assume it is a member function to some class (e.g. TObject), but my usual means to find such functions don't show it to me. Sorry. Found it ! Thanks again. -Michael

[fpc-devel] "daemon" units in Lazarus (to Michael van Canneyt ?)

2007-02-13 Thread Michael Schnell
I was told that in the next not yet released Lazarus version there will be a platform independent feature that lets you create daemons (applications without user interface). I need to do something like this. Is there any documentation on how this works ? Is the sourcecode available somewhere

Re: [fpc-devel] "daemon" units in Lazarus (to Michael van Canneyt ?)

2007-02-13 Thread Michael Van Canneyt
On Tue, 13 Feb 2007, Michael Schnell wrote: > I was told that in the next not yet released Lazarus version there will be a > platform independent feature that lets you create daemons (applications > without user interface). > > I need to do something like this. > > Is there any documentation o

Re: [fpc-devel] "daemon" units in Lazarus (to Michael van Canneyt ?)

2007-02-13 Thread Michael Schnell
Michael Van Canneyt wrote: On Tue, 13 Feb 2007, Michael Schnell wrote: I was told that in the next not yet released Lazarus version there will be a platform independent feature that lets you create daemons (applications without user interface). I need to do something like this. Is there an

Re: [fpc-devel] procedure ... message

2007-02-13 Thread Michael Schnell
Somewhere user code must call MyObject.Dispatch(MyMessage); This looks as if this might be good news. The dispatch mechanism seems to be completely platform independent and so it seems I just need to fire the normal (obviously hierarchical) dispatch mechanism when a message arrives. Tha

Re: [fpc-devel] "daemon" units in Lazarus (to Michael van Canneyt ?)

2007-02-13 Thread Burkhard Carstens
Am Dienstag, 13. Februar 2007 16:32 schrieb Michael Van Canneyt: > On Tue, 13 Feb 2007, Michael Schnell wrote: > > I was told that in the next not yet released Lazarus version there > > will be a platform independent feature that lets you create daemons > > (applications without user interface). >

Re: [fpc-devel] "daemon" units in Lazarus (to Michael van Canneyt ?)

2007-02-13 Thread Michael Van Canneyt
On Tue, 13 Feb 2007, Burkhard Carstens wrote: > Am Dienstag, 13. Februar 2007 16:32 schrieb Michael Van Canneyt: > > On Tue, 13 Feb 2007, Michael Schnell wrote: > > > I was told that in the next not yet released Lazarus version there > > > will be a platform independent feature that lets you cre

Re: [fpc-devel] "daemon" units in Lazarus (to Michael van Canneyt ?)

2007-02-13 Thread Burkhard Carstens
Am Dienstag, 13. Februar 2007 17:42 schrieb Michael Van Canneyt: > On Tue, 13 Feb 2007, Burkhard Carstens wrote: > > Am Dienstag, 13. Februar 2007 16:32 schrieb Michael Van Canneyt: > > > On Tue, 13 Feb 2007, Michael Schnell wrote: > > > > I was told that in the next not yet released Lazarus versio

Re: [fpc-devel] "daemon" units in Lazarus (to Michael van Canneyt ?)

2007-02-13 Thread Bram Kuijvenhoven
Michael Schnell wrote: How can access the SVN ? Unfortunately I suppose I can't access a Version Control System as here we ave a Firewall that only allows to do http and ftp via a proxy. IIRC SVN also can use the http protocol (exactly for this reason). See http://www.freepascal.org/develop.