Re: [fpc-pascal] timing again

2010-05-17 Thread Felipe Monteiro de Carvalho
You can use EpikTimer for that: http://wiki.lazarus.freepascal.org/EpikTimer -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Remote Thread creation and function calling

2010-05-17 Thread Felipe Monteiro de Carvalho
Hello, I have recently worked on a project that required creating a remote thread in another Process. The thread is injected by allocating memory in the target process and copying my thread as well as some data. This thread surely needs to call Windows APIs, but curiously direct calls to kernel32.

[fpc-pascal] timing again

2010-05-17 Thread spir ☣
Hello, I posted a question about timing some time a go and got an answer; but let down for a while because other problems required my attention. So, I need a simple func to get the current time; mainly to benchmark various implementation choices, possibly for other needs. The timer module brin

Re: [fpc-pascal] Main thread wait and CheckSynchronize

2010-05-17 Thread Brad Campbell
Jonas Maebe wrote: On 17 May 2010, at 16:00, Brad Campbell wrote: I wish there was a way for a thread to asynchronously notify the main thread there is a Synchronize() pending. On Linux I can insert an fd() for a pipe into the gtk event loop and poke data into the pipe from the thread. It's

Re: [fpc-pascal] What is the lowest MS-DOS version supported by FPC?

2010-05-17 Thread Bihar Anwar
Tomas Hajny on May 17, 2010 5:43:07 PM wrote: >However, I don't think that anyone tried it with anything older than >MS-DOS 5.0 recently. So, the safe assumption is fpc-compiled programs should run smoothly in at least MS-DOS 5.0. Thanks for the info. >If you really need to use an even older

Re: [fpc-pascal] Main thread wait and CheckSynchronize

2010-05-17 Thread Jonas Maebe
On 17 May 2010, at 16:00, Brad Campbell wrote: Michael Van Canneyt wrote: I think that what you did is the only right solution. Synchronizing threads is tricky, and the default mechanism is meant for GUI apps where the main thread is the GUI thread. I wish there was a way for a thread to a

Re: [fpc-pascal] Execute commands in Windows

2010-05-17 Thread Henry Vermaak
On 17 May 2010 15:04, Rainer Stratmann wrote: > To execute commands in Linux it goes with fpsystem(); > Is there a similar function for Windows? There are some options here: http://wiki.lazarus.freepascal.org/Executing_External_Programs Henry ___ fpc-

[fpc-pascal] Execute commands in Windows

2010-05-17 Thread Rainer Stratmann
To execute commands in Linux it goes with fpsystem(); Is there a similar function for Windows? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Main thread wait and CheckSynchronize

2010-05-17 Thread Brad Campbell
Michael Van Canneyt wrote: Hello, I think that what you did is the only right solution. Synchronizing threads is tricky, and the default mechanism is meant for GUI apps where the main thread is the GUI thread. I wish there was a way for a thread to asynchronously notify the main thread the

Re: [fpc-pascal] What is the lowest MS-DOS version supported by FPC?

2010-05-17 Thread Tomas Hajny
On Sat, May 15, 2010 22:48, "Vinzent Höfler" wrote: > Bihar Anwar > >> I've tried googling and searching FPC mailing list for information about >> this one, but I found nothing. >> I just found in http://www.delorie.com/djgpp/v2faq/faq3_1.html that >> DJGPP requires MS-DOS version 3.1 or later.

Re: [fpc-pascal] Main thread wait and CheckSynchronize

2010-05-17 Thread Michael Van Canneyt
Hello, I think that what you did is the only right solution. Synchronizing threads is tricky, and the default mechanism is meant for GUI apps where the main thread is the GUI thread. Michael. On Sun, 16 May 2010, Roland Schaefer wrote: Allow me to bump this. I'd appreciate any comments, ev