[fpc-devel] FPC for microcontrollers

2006-08-15 Thread Alexander Todorov
Hello list, I found this and it may be interesting to some of you: http://jal.sourceforge.net/ A Pascal like compiler for microcontrollers. It is a good thing to have in FPC like there is in gcc. What do you think? ___ fpc-devel maillist -

[fpc-devel] Re: FPC for microcontrollers

2006-08-15 Thread Alexander Todorov
On Tue, 15 Aug 2006, Michael Van Canneyt wrote: Could you be more clear ? I don't understand the question? What is the relation with gcc ? Michael. AFAIK gcc can compile code for some models microcontrollers(cpus for embeded devices). I am not specialist in this area but know people who write

Re: [fpc-devel] FPC 2.0.4 arm-linux testing

2006-08-12 Thread Alexander Todorov
Hello list, full logs from the arm-linux testing are available at: http://technobin.itafree.com/fpc/fpc_2.0.4_rc2_arm-linux_test.tar.bz2 All binary files are deleted, only plain text left. Hope this will help FPC development. Greetings to all. ___

Re: [fpc-devel] FPC 2.0.4 arm-linux testing

2006-08-11 Thread Alexander Todorov
Hello, thanks to all that helped me execute the tests. These are the 3 digest files produced from testing FPC 2.0.4 rc2 for arm-linux, using 2.0.4 rc3 tests. Tested on x86(compile OK, all runs fail of course), qemu-arm, real arm device. Will provide the full logs from the test if necessary.

Re: [fpc-devel] FPC 2.0.4 arm-linux testing

2006-08-09 Thread Alexander Todorov
On 8/9/06, Florian Klaempfl [EMAIL PROTECTED] wrote: No, TEST_FPC=/.../ must be appended because the test suite distinguishes between the compiler used to build the test tools like digest and the compiler actually being tested. Thanks, I should have tried this. Another question: How do I pass

Re: [fpc-devel] FPC 2.0.4 arm-linux testing

2006-08-09 Thread Alexander Todorov
On 8/9/06, Jonas Maebe [EMAIL PROTECTED] wrote: TEST_OPT=... Thanks again. I saw the options in the readme file. After running: make TEST_FPC=/usr/local/lib/fpc/2.0.4/ppcarm TEST_OPT=-XParm-linux- clean all digest in the fpc/tests directory it starts compiling for a while and then error

Re: [fpc-devel] FPC 2.0.4 arm-linux testing

2006-08-09 Thread Alexander Todorov
Here is the digest from the test: The FPC being tested is ppcarm 2.0.4 rc2 from the ftp site. The test suite is the 2.0.4 rc3 from svn. Using qemu-arm emulator `make TEST_FPC=/usr/local/lib/fpc/2.0.4/ppcarm TEST_OPT=-XParm-linux- EMULATOR=qemu-arm clean all digest`

[fpc-devel] native compiler for ARM

2006-08-08 Thread Alexander Todorov
Hello list, I am wondering why there isn't native compiler/ide fro ARM but just cross-compiler? What is the problem for missing that? Any readings about compiler internals and different targets are more that welcome! Thanks. ___ fpc-devel maillist -

[fpc-devel] Re: native compiler for ARM

2006-08-08 Thread Alexander Todorov
We do not have a system that is powerfull enough (enough memory) to build one. You need 64mb at minimum to build the compiler and even that will be tight. Is it possible to be done with less amount of memory and large swap space? By the way, I haven't received test reports about the 2.0.4rc

[fpc-devel] Array with char index could not compile

2006-07-06 Thread Alexander Todorov
Hello, I have troubles with compiling array with char index that uses cyrillic characters. Please see issue: #7122 for details. http://www.freepascal.org/mantis/view.php?id=7122 Any ideas or workarounds are more than welcome. Thanks. ___ fpc-devel

[fpc-devel] Possible bug in thread manager

2006-06-01 Thread Alexander Todorov
Hello, I am sending you a sample which is not working as expected. The sample contains 2 FPC projects compiled with Lazarus. They are demonstrating a program that starts, goes in daemon mode, and creates two threads that will do their job, as well as the demonized program will do some job as

Re: [fpc-devel] Possible bug in thread manager

2006-06-01 Thread Alexander Todorov
On 6/1/06, Alexander Todorov [EMAIL PROTECTED] wrote: Hello, I am sending you a sample which is not working as expected. The sample contains 2 FPC projects compiled with Lazarus. They are demonstrating a program that starts, goes in daemon mode, and creates two threads that will do their job

Re: [fpc-devel] data alignment and int64 (or qword, maybe any single piece of size 8 if any)

2006-05-15 Thread Alexander Todorov
On 5/15/06, Пётр Косаревский [EMAIL PROTECTED] wrote: begin writeln(sizeof(a)); // 12 ok! writeln(sizeof(b)); // 16??? writeln(sizeof(c)); // 14 ok! writeln(sizeof(d)); // 16??? writeln(sizeof(e)); // 12 ok! end. // I don't know the numbers on other platforms/systems Linux, i386, FPC

[fpc-devel] TList.Assign - overloaded implementation

2006-05-11 Thread Alexander Todorov
Hello, procedure TList.Assign(ListA: TList; AOperator: TListAssignOp; ListB: TList); exists in Delphi that allows you to assign to a TList object the result of the operation 'ListA AOperator ListB'. This can be : copy, and, xor for example. The attached file contains and implementation of

[fpc-devel] Workaround for issue #5093

2006-05-10 Thread Alexander Todorov
Hello, recently I have reported this issue on the FPC site and there were some e-mails about SQLDb not working with PostgreSQL. http://www.freepascal.org/bugs/showrec.php3?ID=5093 The work around for TPQConnection is: Do NOT use FTransaction.Commit but USE FTransaction.CommitRetaining instead.

[fpc-devel] proposal: Extension for class properties

2006-05-10 Thread Alexander Todorov
Hello, Let's consider the following code fragment: -- type TMyRecord = record Name : String; Value : Integer; end; TMyClass = class(TObject) private FButton : TButton; FRecord : TMyRecord; public property RecordName :

Re: [fpc-devel] gtk1 linklib directive under FreeBSD

2006-05-09 Thread Alexander Todorov
On 5/9/06, Mattias Gaertner [EMAIL PROTECTED] wrote: I heard that the gtk1 libs under FreeBSD are libglib-12.so, libgdk-12.so and libgtk-12.so. But at the moment the linklib directive for FreeBSD defines {$ifdef FreeBSD} gtkdll='gtk12'; {$linklib gtk12} without the '-'. Can

[fpc-devel] Unix sockets for Windows

2006-05-05 Thread Alexander Todorov
Hello, I have an application that uses TCP sockets nut it is going to be changed with UNIX sockets. Can you point me to some easy and clean approach how to emulate UNIX sockets for Windows. The only thing I can think of is using named pipes and encapsulate the functionality in some class. Any

Re: [fpc-devel] How to add comments on FPC buglist?

2006-05-04 Thread Alexander Todorov
On 5/3/06, Daniël Mantione [EMAIL PROTECTED] wrote: It has been discussed, but Michael is currently writing a new bug reporting system in Free Pascal, and the developers are supportive to software written with our own bare hands. Glad to hear that. Hope the new system comes soon and has all

[fpc-devel] How to add comments on FPC buglist?

2006-05-03 Thread Alexander Todorov
Hello, Is it possible to add comments once a bug has been submited to the FPC bugs database? It seems to be only for admins. Password is required. Thanks. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] How to add comments on FPC buglist?

2006-05-03 Thread Alexander Todorov
On 5/3/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: It is not yet possible. We're working on this. Michael. Why don't you use a bugtracking system like Mantis, Bugzilla, PhpBugTracker, etc... like many projects do? ___ fpc-devel maillist -

Re: [fpc-devel] XML and encoding problems

2006-04-25 Thread Alexander Todorov
On 4/23/06, Bogusław Brandys [EMAIL PROTECTED] wrote: Result printed on console are not sufficient.Compare binary chunks, C:\fc -B save.txt.windows save.txt.linux Comparing files save.txt.windows and save.txt.linux 0005: 3F D0 0006: 3F A2 0007: 3F D0 0008: 3F B8 0009: 4E D1

Re: [fpc-devel] XML and encoding problems

2006-04-25 Thread Alexander Todorov
This may be relevant: http://www.freepascal.org/bugs/showrec.php3?ID=3434 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] XML and encoding problems

2006-04-23 Thread Alexander Todorov
Hello, I am developing an application in Lazarus that is multi platform. It has very strong usage of xml that contains contains cyrillic text (Bulgarian language). All xml feeds are UTF-8 encoding and is converted internaly using iconv (UTF-8 - CP1251 and vice versa) when needed. On Linux this is

[fpc-devel] TDOMNodeList.GetItem

2006-04-13 Thread Alexander Todorov
Hello, as far as I tested TDOMNodeList.GetItem is not working correctly. - original --- function TDOMNodeList.GetItem(index: LongWord): TDOMNode; var child: TDOMNode; begin Result := nil; child := node.FirstChild; while Assigned(child) do begin if index = 0 then

Re: [fpc-devel] FPC and OpenMP support.

2006-03-17 Thread Alexander Todorov
On 3/17/06, Daniël Mantione [EMAIL PROTECTED] wrote: I don't plan to put effort in OpenMP support; I don't see the need for an external library to be able to do multithreaded programming. Focus here should be on 100% Pascal implementations. Am I missing something here ? OpenMP is a standard

[fpc-devel] FPC and OpenMP support.

2006-03-16 Thread Alexander Todorov
Hello to all, are there any parallel code developers in the list? I will have to work on a mixed mode parallel project using MPI and OpenMP. There are some bindings in pascal for the MPI library which is ok. Does fpc support OpenMP compiler directives? AFAIK no. Is there a known pascal compiler

[fpc-devel] possible bug in TDOMNamedNodeMap.RemoveNamedItem

2006-03-06 Thread Alexander Todorov
Hello folks, I found that TDOMNamedNodeMap.RemoveNamedItem does not delete from memory the specified Item. It just sets FParentNode := nil. In this case the following doesn't work as expected : //- while Node.Attributes.Length 0 do

[fpc-devel] Variant assignment error

2006-01-25 Thread Alexander Todorov
Hi to all, When assigning string that represent numerical value to a variant and after that assigning that variant to a numeric variable an exception is raised. When debugging it shows the following message : ---

[fpc-devel] WinSock error 10106

2006-01-05 Thread Alexander Todorov
Hello, I have a two classes that implement TCP / IP client and server. Internally they use a base class which uses sockets to handle communication. In this part of code I get an error : procedure TTCPClient.Connect; begin FSocket := Socket(AF_INET, SOCK_STREAM, 0); // create socket descriptor

[fpc-devel] FPC 2.0.0 arm crosscompiler and bin utils.

2005-12-27 Thread Alexander Todorov
Hi, where I can download the FPC crosscompiler for arm, and related binutils? They are missing from the ftp site. TIA. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] FPC 2.0.0 arm crosscompiler and bin utils.

2005-12-27 Thread Alexander Todorov
ftp://ftp.freepascal.org/pub/fpc/dist/arm-linux-2.0.0/ Thanks. I was lookingin the wrong location. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] TProcess and mpg123/321 issues

2005-12-13 Thread Alexander Todorov
Hi, I have a GUI application created with Lazarus and I need to let users play some mp3 files. I have the following Button.OnClick - begin pMusic.CommandLine := 'mpg123 /home/user/song.mp3'; pMusic.Active := true; while pMusic.Running then

[fpc-devel] TDataSet.TempBuffer

2005-12-03 Thread Alexander Todorov
Hi folks, in FPC 2.0.0 there is TDataSet.TempBuffer function with an empty body. In FPC 2.0.1 it is removed. I am writing a custom dataset that uses a part ported from Delphi and there is TempBuffer. Can you tell me what is its purpose? It is used only in two places where TDataSet.State =

[fpc-devel] Cryptography class nedded ?

2005-11-17 Thread Alexander Todorov
Hi folks, can you tell if there is a good crypto class for FPC / Lazarus ? What do you use for crypting your stuff ? Any opinions are welcome. TIA. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

[fpc-devel] Does FPC support XML encoding ?

2005-11-04 Thread Alexander Todorov
Hi all, does fpc xml support encoding ??? I have a document with ?xml version=1.0 encoding=UTF-8? and an application which runs on a system with CP1251 locale. The text is read from the xml file but is not properly shown. How can I make it show properly ??? Delphi does this automatically ? TIA

[fpc-devel] Thread support for windows ?

2005-11-04 Thread Alexander Todorov
Hi, what is the CThreads unit replacement in Windows Do I need to use thread driver under Win32 or it is needed only for Linux? TIA. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] RQ : using TTCPClient / TEventLoop HOWTO ?

2005-10-21 Thread Alexander Todorov
Hello, can anybody point me to documentation on using TTCPClient from fpSock.pp ? I am porting a Delphi app which uses TidTCPClient to send / receive text over tcp. I changed this to using TTCPClient but when doing : MyTCPClient.Active := true an exception is raised : 'No event loop assigned'

[fpc-devel] Strange behaviour of ;

2005-10-20 Thread Alexander Todorov
Hi all, i have noticed something strange and I am not sure if this is a bug or a feature. strSQL := Copy(strSQL,1,Length(strSQL)-1) + ' WHERE '; strSQL := strSQL ; + ConstructWhereClause; --^ This part of code must construct a sql sttement which is