Re: [fpc-pascal] What's the deal with CloseThread?

2013-04-24 Thread Marco van de Voort
In our previous episode, Sven Barth said: And no one bothers to read my answer :( I did. And the part about tthread not being expressed in terms of the procedural api still stands. Apples and oranges. They are IMHO two independent public API with no relation to eachother. Again: The only RTL

Re: [fpc-pascal] What's the deal with CloseThread?

2013-04-24 Thread Sven Barth
Am 23.04.2013 22:40, schrieb Anthony Walter: Thanks for so much Sven. I have another question. Is it okay for a thread to close itself before it's finished? Because I believe that is what happens when FreeOnTerminate is set to True. Here is a brief synopsis of what can execute: In

Re: [fpc-pascal] Statically link library

2013-04-24 Thread Ludo Brands
On 04/23/2013 10:14 PM, Darius Blaszyk wrote: Thanks Ludo! Works perfectly also here. However for my understanding. Why does MinGW find open, filesize etc? Is there some header file that translates these functions to be compatible with msvcrt? If not I would have to create one myself to

Re: [fpc-pascal] What's the deal with CloseThread?

2013-04-24 Thread Sven Barth
Am 24.04.2013 09:35, schrieb Marco van de Voort: The Windows TThread.SysDestroy also calls CloseHandle on the handle returned by BeginThread, so the semantic behavior of Begin-/End-/CloseThread and TThread is the same. Nevertheless in my opinion TThread needs to be adjusted so that it calls

Re: [fpc-pascal] RAD Studio XE4 Released?

2013-04-24 Thread Michael Schnell
Seemingly no support for Linux and Android. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Object Pascal Grammar in EBNF like style

2013-04-24 Thread Graeme Geldenhuys
On 2013-04-23 14:22, Kenneth Cochran wrote: Just curious how your efforts turned out? Not much changed since that post. I've made notes [thanks to the wiki links] of what I still have missing. The latest Language Reference doc can be downloaded in INF format (viewable with DocView - also

Re: [fpc-pascal] Mipsel compilation: changing elf flags?!

2013-04-24 Thread Heiko Tietze
If OP could identify the correct parameter for ld it might be possible to use fpc's -k option. What am I supposed to do? ld has myriads of options. I don't set any intentional (/usr/local/bin/mipsel-linux-ld is just a softlink to .../mipsel/bin/ld) RE: [fpc-devel] FPC for MIPS Pierre Free

Re: [fpc-pascal] What's the deal with CloseThread?

2013-04-24 Thread Marco van de Voort
In our previous episode, Sven Barth said: CloseThread for all RTLs and the direct CloseHandle call needs to be removed. And this is exactly what I will do now... If it makes you happy, but IMHO it is pointless. No, it's not pointless. If we should ever have the need to add code to the

Re: [fpc-pascal] What's the deal with CloseThread?

2013-04-24 Thread Sven Barth
Am 24.04.2013 12:43, schrieb Marco van de Voort: TThread is just an object oriented wrapper around the procedural threading API, so it must adhere to its rules as well. Around the threadmanager. Not the procedural api, it never was. Considering that all TThread implementations call BeginThread

Re: [fpc-pascal] What's the deal with CloseThread?

2013-04-24 Thread Anthony Walter
On Wed, Apr 24, 2013 at 3:53 AM, Sven Barth pascaldra...@googlemail.comwrote: That's ok, because the FHandle is information which is retrieved in the context of the calling thread (e.g. the main thread). And if we don't need any more information about the thread we just close it's handle

Re: [fpc-pascal] RAD Studio XE4 Released?

2013-04-24 Thread Zaher Dirkey
The price is greater than my salary for a year, (When i have a job). On Tue, Apr 23, 2013 at 10:49 PM, vfclists . vfcli...@gmail.com wrote: http://www.h-online.com/developer/news/item/RAD-Studio-XE4-focuses-on-cross-platform-apps-1848176.html

Re: [fpc-pascal] RAD Studio XE4 Released?

2013-04-24 Thread Jonas Maebe
Hi, Please continue this discussion on the fpc-other list, thanks Jonas FPC mailing lists admin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Simple beep sound Linux

2013-04-24 Thread Rainer Stratmann
How to program a simple beep in Linux. Now I have a mainboard which has a speaker, but needs to program using the sound device, I guess. Crt sound() does not work in this case. Is there another solution as easy as sound() in the crt unit? ___

[fpc-pascal] Odyssey: SSockets and Threads.

2013-04-24 Thread silvioprog
Hello, There are a multi-thread example using SSockets in FPC? I'm trying to implement it*, but it's very hard and this work it's consuming all my time. The difficulty is to read and write at the same time. I'm almost certain that using SSockets, I would have to create one socket for writing and

[fpc-pascal] Re: Odyssey: SSockets and Threads.

2013-04-24 Thread silvioprog
2013/4/24 silvioprog silviop...@gmail.com Hello, There are a multi-thread example using SSockets in FPC? I'm trying to implement it*, but it's very hard and this work it's consuming all my time. The difficulty is to read and write at the same time. I'm almost certain that using SSockets, I

Re: [fpc-pascal] Simple beep sound Linux

2013-04-24 Thread Tomas Hajny
On Wed, April 24, 2013 19:42, Rainer Stratmann wrote: How to program a simple beep in Linux. Now I have a mainboard which has a speaker, but needs to program using the sound device, I guess. Crt sound() does not work in this case. Is there another solution as easy as sound() in the crt unit?

[fpc-pascal] SSockets and write/read simultaneously...

2013-04-24 Thread silvioprog
Hello guys, The classes of SSockets allow to use write and read simultaneously? (eg. Gtalk/Skype send messages even receiving a attached file) Please excuse if the question is silly, I even got to do a test, but I wanted to know because I need to implement a multi-platform code, using write/read