Re: [fpc-pascal] writeln: FPC runtime race conditions in external C threads

2010-07-13 Thread Alexander Grau
Am 12.07.2010 um 22:58 schrieb Jonas Maebe: Alexander Grau wrote on Mon, 12 Jul 2010: Am 12.07.2010 um 22:31 schrieb Jonas Maebe: I forgot to mention: before this works, you have to create at least one thread using the FPC RTL in order to initialise the threading subsystem. It can

[fpc-pascal] writeln: FPC runtime race conditions in external C threads

2010-07-12 Thread Alexander Grau
Hello, While using an external C framework (Mac OS X, discrecording OS framework, FPC 2.4), I noticed that my FPC console app crashes when I use writeln's in both C threads (callbacks). Example: Two FPC functions that are called from an external C library (c_callback1 and c_callback2) -

Re: [fpc-pascal] writeln: FPC runtime race conditions in external C threads

2010-07-12 Thread Alexander Grau
? Michael. On Mon, 12 Jul 2010, Alexander Grau wrote: Hello, While using an external C framework (Mac OS X, discrecording OS framework, FPC 2.4), I noticed that my FPC console app crashes when I use writeln's in both C threads (callbacks). Example: Two FPC functions that are called from

Re: [fpc-pascal] writeln: FPC runtime race conditions in external C threads

2010-07-12 Thread Alexander Grau
Am 12.07.2010 um 18:17 schrieb Jonas Maebe: On 12 Jul 2010, at 13:24, Michael Van Canneyt wrote: Basically, any heap memory access and standard pascal I/O are forbidden in threads started outside FPC, because the necessary thread structures are not initialized correctly. I think that

Re: [fpc-pascal] writeln: FPC runtime race conditions in external C threads

2010-07-12 Thread Alexander Grau
Am 12.07.2010 um 18:17 schrieb Jonas Maebe: On 12 Jul 2010, at 13:24, Michael Van Canneyt wrote: Basically, any heap memory access and standard pascal I/O are forbidden in threads started outside FPC, because the necessary thread structures are not initialized correctly. I think that

Re: [fpc-pascal] writeln: FPC runtime race conditions in external C threads

2010-07-12 Thread Alexander Grau
Am 12.07.2010 um 22:31 schrieb Jonas Maebe: Alexander Grau wrote on Mon, 12 Jul 2010: Am 12.07.2010 um 18:17 schrieb Jonas Maebe: On 12 Jul 2010, at 13:24, Michael Van Canneyt wrote: Basically, any heap memory access and standard pascal I/O are forbidden in threads started outside FPC

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-15 Thread Alexander Grau
dmitry boyarintsev schrieb: On Tue, Jun 15, 2010 at 11:37 AM, Alexander Grau a...@grauonline.de wrote: This is not the most elegant (or easiest) solution, however it has no dependencies to any libraries :) The solution still depends upon decompression libraries. However, they can

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Alexander Grau
Graeme Geldenhuys schrieb: Hi, Has anybody managed to play sound files under both Linux and Windows? Does FPC have a cross-platform API or FCL class for this? If so, what sound format's are supported? ogg, wav, mp3? We have developed some kind of API to play a .wav file on both Windows

Re: [fpc-pascal] How to set LCL widgetset for my project?

2009-10-27 Thread Alexander Grau
章宏九 schrieb: On the page (http://wiki.lazarus.freepascal.org/Qt_Interface), I read To compile a project for Qt just select it as the target widgetset on the Compiler Options dialog. However, I am using vim instead of Lazarus IDE. How should I set the compiler options in the command line? I would

Re: [fpc-pascal] How to set LCL widgetset for my project?

2009-10-27 Thread Alexander Grau
my project is compiled and no compiled LCL is given in FPC and Lazarus? I guess that LCL is given in sources code form and compiled while my program compiles. Thank you for your answer. --- Zhang, Hongjiu 2009/10/27 Alexander Grau a...@grauonline.de: 章宏九 schrieb: On the page (http

[fpc-pascal] Looking for remote working freelancer for a C++ to FPC porting project

2009-10-09 Thread Alexander Grau
Alexander Grau Grau GbR Hardware Software Solutions Eschenweg 12 32609 Huellhorst Germany www.grauonline.de Tel: +49 (0) 5741 2301259 Fax: +49 (0) 5741 235530 E-Mail: a...@grauonline.de ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http