[fpc-pascal] Truncate procedure unable to work under Linux, is this a bug?

2015-05-17 Thread Géza Kovacs Géza
Truncate procedure unable to work under Linux, is this a bug? This code is unable to work under linux: the Truncate drops an error message if the file is larger than 2 or 3 GB. I tested it with Free Pascal 2.6.4 under Debian Jessie 64 bit. It produce the same error message under Ubuntu 12.04 32 bit

[fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-24 Thread Géza Kovacs Géza
Hi All! What is the faster and more efficient, using the TFileStream or the classical way ("file of byte", or "file") type with blockread/blockwrite and the other well-know procedures? What is the better, faster on large files? See the two example code below. Program FileCopy_stream; {$mode objf

Re: [fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

2015-05-25 Thread Géza Kovacs Géza
Hi! Thx your answer. Can I use the "AssignFile" procedure from the SysUtils unit instead of the simple assign procedure from the System unit? What is the problem with the simple "assign"? I read from the Free Pascal Wiki: AssignFile (prevent the use of the older Assign procedure) - Assign a nam

[fpc-pascal] How can I write a multithread program as simple as possible?

2015-05-26 Thread Géza Kovacs Géza
Hi! I read the Wiki about this article, it's looks like very complicated for me. :-( Can anybody show me a very simple example? Below is a code, i would like to run it multithread both under Windows and Linux. Program Sorting; const n = 999000; var data : array [1..n] of integer;

Re: [fpc-pascal] How can I write a multithread program as simple as possible?

2015-05-29 Thread Géza Kovacs Géza
Hi! Can anybody send me a "Pascal Multithreading tutorial for beginners" or similar document (if it exist)? What is the simplest method to learn and understand it? Best regards, G ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists

Re: [fpc-pascal] [fpc-announce] FPC 3.0.0-rc1 release

2015-08-28 Thread Géza Kovacs Géza
Hi All, The sound procedure does not work in FPC 3.0.0-rc1. I tested it under Linux. Under Windows, it works only with the WinCRT unit. But under linux, there is not an alternative. It was my problem with the recent 2.6 version too. Can you resolve the sound procedure to work well platform indepen

Re: [fpc-pascal] [fpc-announce] FPC 3.0.0-rc1 release

2015-08-28 Thread Géza Kovacs Géza
Dear Michael, What are the better ways of producing sound than use the sound procedure? Best regards, G ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Sound procedure does not work

2015-09-14 Thread Géza Kovacs Géza
Hi All, What can I use if the sound procedure unable to work? It works under Windows, when I use the WinCRT unit, but it unable to work under Linux. What are the methods of (cross-platform) produce sound? Best regards, G ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] Sound procedure does not work

2015-09-14 Thread Géza Kovacs Géza
Hi Graeme, Thx your answer. I unable to compile UOS on Windows, I tested it with Free Pascal 2.6.4. It produces the following errors: Free Pascal Compiler version 2.6.4 [2014/03/06] for i386 Copyright (c) 1993-2014 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling consoleplay.pa

Re: [fpc-pascal] Sound procedure does not work

2015-09-15 Thread Géza Kovacs Géza
Hi! I succesfully compiled the updated version. What component can I use when i only want to play only the specified Hz frequency of sound? I would like to use this component within a console-based application. I am not using Lazarus IDE (or Delphi), only Free Pascal. Sorry if this question too