Re: [fpc-pascal] Re: Strange issue with threads

2011-08-23 Thread Luca Olivetti
Al 23/08/11 22:46, En/na rzbhatti ha escrit: I followed the bug report http://bugs.freepascal.org/view.php?id=13798 and it says that it is resolved and closed. I am using fpc 2.4.4 on Windows XP. Like Luca Olivetti I am trying to create 256 threads, but it chocks at 121 saying

Re: [fpc-pascal] Re: linux: should we hard-code versioned or unversioned shared libraries in our apps?

2012-08-16 Thread Luca Olivetti
Al 16/08/2012 9:50, En/na Michael Van Canneyt ha escrit: On Thu, 16 Aug 2012, Marco van de Voort wrote: If dynamic linking is so great, why do we constant, constantly have these discussions and worse all these illadvised changes? Because the problem is not in dynamic versus static. We

Re: [fpc-pascal] TProcess InheritHandles has no effect

2013-02-23 Thread Luca Olivetti
Al 26/05/11 13:14, En/na Luca Olivetti ha escrit: According to the documentation InheritHandles only works in windows. However the windows implementation of TProcess.Execute has in the first line FInheritHandles:=true so it doesn't work even under windows. fpc 2.4.2, but I checked

Re: [fpc-pascal] a proposal about with syntax

2013-03-17 Thread Luca Olivetti
Al 17/03/13 03:37, En/na Flávio Etrusco ha escrit: unfortunate, because IMO the 'with' syntax is one of the most abominable un-pascal things Borland introduced in the language, and *forcing* the AS syntax (but probably with some other keyword like ALIAS) would make it much more palatable. I

Re: [fpc-pascal] a proposal about with syntax

2013-03-17 Thread Luca Olivetti
Al 17/03/13 13:16, En/na Sven Barth ha escrit: On 17.03.2013 11:42, Paul Ishenin wrote: 17.03.13, 18:25, Sven Barth пишет: With a=VeryLongNameForARecord, b=AnotherRecordWithAVeryLongName do ... Now THAT is really unpascalish... either := or the already suggested as... Why? Constants and

Re: [fpc-pascal] a proposal about with syntax

2013-03-17 Thread Luca Olivetti
Al 17/03/13 13:54, En/na Marco van de Voort ha escrit: In our previous episode, Sven Barth said: Texas Instruments' Pascal had an extension of the with statement, IIRC it used = instead of AS With a=VeryLongNameForARecord, b=AnotherRecordWithAVeryLongName do ... Now THAT is really

Re: [fpc-pascal] a proposal about with syntax

2013-03-19 Thread Luca Olivetti
Al 18/03/13 04:11, En/na Paul Ishenin ha escrit: '=' can't be used because it can be a part of expression. There is no big difference between with (a = SomeObject) do and with a = SomeObject do But since with is only for records/objects/classes there's no possible confusion (the result of

Re: [fpc-pascal] File Association and opening with already running app

2013-04-04 Thread Luca Olivetti
Al 04/04/13 11:08, En/na Graeme Geldenhuys ha escrit: How do they accomplish this? I would like to implement something like that for fpGUI, and it must work under all fpGUI supported desktop platforms. Look at http://wiki.freepascal.org/UniqueInstance Bye -- Luca

Re: [fpc-pascal] socket timeout

2013-04-16 Thread Luca Olivetti
Al 16/04/13 12:20, En/na Michael Schnell ha escrit: On 04/16/2013 11:26 AM, Xiangrong Fang wrote: How can I set the connection and read/write timeout when using socket in free pascal? I seem to remember that synapse can do this. Only in svn and it does it this way if FConnectionTimeout 0

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Luca Olivetti
En/na Jürgen Hestermann ha escrit: Zaher Dirkey schrieb: use c:\lazarus\Lazarus.exe --pcp=x:\lazarus\config Thanks for the solution! Still I am wondering why the directory Local Settings is used and not Application Data as all other applications do. Then it would be saved with roaming

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Luca Olivetti
En/na Vincent Snijders ha escrit: Jürgen Hestermann schreef: Still I am wondering why the directory Local Settings is used and not Application Data as all other applications do. Then it would be saved with roaming profiles too. Luca Olivetti schrieb: http://bugs.freepascal.org/view.php?id

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Luca Olivetti
En/na Vincent Snijders ha escrit: Luca Olivetti schreef: I am not sure having a 100 MB lazarus *roaming* profile by default would be a good idea. My lazarus config directory is 254K under windows and 196K under linux. I guess your lazarus directory is either writable or you didn't install

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-15 Thread Luca Olivetti
En/na Vincent Snijders ha escrit: Yes, my lazarus directory is writable. The configuration directory doesn't seem to me a suitable place for the executable. That's why under windows you have both CSIDL_APPDATA and CSIDL_LOCAL_APPDATA. Correct. And that is why if you have only one config dir,

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Luca Olivetti
En/na Vinzent Hoefler ha escrit: But you would lose your settings when changing the machine, because then the settings aren't part of your profile anymore. Well, this is happening now, since CSIDL_LOCAL_APPDATA isn't roamed. Bye -- Luca ___

Re: [fpc-pascal] Lazarus settings and roaming profiles in Windows

2009-07-16 Thread Luca Olivetti
En/na Michael Van Canneyt ha escrit: I will attempt to solve the discussion: AFAIK Lazarus uses the getappconfigdir() call. I'll add a optional parameter called 'Roaming', which defaults to 'False' (for backward compatibility), and which can then be used to get the roaming profile directory.

Re: [fpc-pascal] TFileStream.SetSize sometimes fails

2009-08-13 Thread Luca Olivetti
En/na Mattias Gaertner ha escrit: Yes. The code worked pretty well for years on many systems. But you know the story of the ext4 bug. I hope this is not something like that. It was not a bug, and if you're doing it on ext4 (and probably xfs) it's possible that what you're seeing is a

Re: [fpc-pascal] Status of fpc on Nokia n810

2009-08-22 Thread Luca Olivetti
En/na Den Jean ha escrit: I am also seriously interested in the Optimae 5E with Maemo, but it will probably not be available in Europe. Any chinese FPC user reading this and interested in a percentage :-) ?

Re: [fpc-pascal] Status of fpc on Nokia n810

2009-08-22 Thread Luca Olivetti
En/na Den Jean ha escrit: On Saturday 22 August 2009 18:21:38 Luca Olivetti wrote: You can buy the moses smartq5 on dealextreme, then install mer on it are sources of all drivers available to recompile under Mer? I'm not sure, but I think that everything is working, or at least the vendor

Re: [fpc-pascal] Why is cthreads unit not included by default

2009-08-27 Thread Luca Olivetti
En/na Marco van de Voort ha escrit: It makes it very hard to longterm succesfully deploy a simple linux binary over several systems. FWIW, yesterday I add to compile on a current system a 5 years old very simpe program (updated 2 years ago) with current lazarus/gtk2/fpc 2.2.4 to deploy on

Re: [fpc-pascal] Re: getting started with threads

2009-09-18 Thread Luca Olivetti
En/na Tobias Giesen ha escrit: Also possible but not easier. Threads should not be started or stopped for each task, instead they should wait for an event telling them to continue with the next task. For example using SetEvent / ResetEvent as well as: {$ifdef win32}

Re: [fpc-pascal] Command prompt

2009-09-29 Thread Luca Olivetti
En/na Carsten Bager ha escrit: In the old days you could write exec(C:\DOS\COMMAND.COM',' COM1'); and then get access to the command prompt via a serial interface Could someone give me a hint how to do this in a Linux environment? /sbin/getty -L ttyS0 115200 vt100 man getty for the gory

Re: [fpc-pascal] TUN/TAP

2009-10-03 Thread Luca Olivetti
En/na Jorge Aldo G. de F. Junior ha escrit: Opening the TUN/TAP (/dev/net/tun) without the ioctl call is not doing the job, but i dont know how to do this with pascal equivalent code... There's an fpioctl function in freepascal (never used it though):

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread Luca Olivetti
En/na Felipe Monteiro de Carvalho ha escrit: The problem now is that the write doesn't go immediately to disk, so How so? If you're using a database server (or sqlite), any connection should see the modifications as soon as the transaction is committed (in fact the data or the journal

Re: [fpc-pascal] question about FpTimes in BaseUnix package

2009-11-18 Thread Luca Olivetti
En/na Rainer Stratmann ha escrit: Am Tuesday 17 November 2009 19:34:19 schrieb Bruce Bauman: I am using the FpTimes function from the BaseUnix package. The documentation says it returns -1 on an error, otherwise the number of clock ticks since boot time. What does clock ticks exactly mean? I

Re: [fpc-pascal] Split and Join

2009-11-27 Thread Luca Olivetti
En/na Michael Van Canneyt ha escrit: Of course it does exist. Split can be implemented like this: List:=TStringList.Create; List.Delimiter:=Delim; List.StrictDelimiters:=True; List.DelimitedText:=Str; Never though of it. And join can be done too. Pity that delimiter is a single character.

Re: [fpc-pascal] String types in a wider perspective

2009-12-01 Thread Luca Olivetti
En/na Mattias Gaertner ha escrit: One of the innovations of the last years is the higher demand for multi threaded apps. Reference counted strings need atomic operations and are therefore much slower as soon as you start another thread. I always protect multithreaded sting access with a

Re: [fpc-pascal] sql server embedded: sqlite the only solution?

2009-12-23 Thread Luca Olivetti
En/na JoshyFun ha escrit: SQLite is faster than Firebird, but take care that SQLite does not enforce foreign keys, so data integrity must be handled by the programmer manually. It does, since version 3.6.19 (released in October). Before that you could enforce foreign keys using triggers, and

Re: [fpc-pascal] unit export control

2010-05-31 Thread Luca Olivetti
Al 31/05/10 18:25, En/na Jonas Maebe ha escrit: For instance, the first point I met is a literal notation for records r := (a:1 ; b:2);. But fpc refuses that to me :-( (Same result with array notations.) FPC indeed does not support this, and I'm not aware of any immediate plans to add

Re: [fpc-pascal] Two questions about Pascal

2010-07-30 Thread Luca Olivetti
Al 30/07/10 00:12, En/na José Mejuto ha escrit: I was looking for a with like: with TNX(a) named as TNX_a do begin with TNXX(b) named as TNXX_b do begin TNX_a.OP1:=TNXX_b.OP2; TNXX_b.OP3:=TNX_a.OP2; [.] end; end; But I think that there is nothing like that in Pascal.

Re: [fpc-pascal] SNAPI Driver and USB HID

2010-09-06 Thread Luca Olivetti
Al 06/09/10 19:07, En/na Johann Glaser ha escrit: As I'm not very confident that such a driver does exist, I've also evaluated the USB descriptors and such stuff. The scanner offers an USB HID class interface. From the manual I see that it also offers com port emulation. In that case it

Re: [fpc-pascal] SNAPI Driver and USB HID

2010-09-06 Thread Luca Olivetti
Al 06/09/10 22:28, En/na Johann Glaser ha escrit: Unfortunately, /dev/ttyUSB0 is not standardized but requires different drivers for every chip (e.g. cp2101, ft232, ...). For the MS4407 scanner I didn't yet find a serial driver. So, unfortunately, the RS232 emulation does not work too. :-(

Re: [fpc-pascal] lNet getting the local IP

2010-10-07 Thread Luca Olivetti
En/na Marco van de Voort ha escrit: In our previous episode, Brian Winfrey said: I found an example for linux on stack overflow that was in c http://stackoverflow.com/questions/212528/linux-c-get-the-ip-address-of-local-computer Compiles on FreeBSD and the result looks sane (but on a system

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-16 Thread Luca Olivetti
Al 15/10/10 22:31, En/na Vinzent Höfler ha escrit: - FreeOnTerminate should be gone, (meaning no way to actively call TThread.Destroy from another thread, a thread gets destroyed automatically when it leaves its execute method) I don't agree, the creator of the thread should be able to see

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-16 Thread Luca Olivetti
Al 16/10/10 16:57, En/na Vinzent Höfler ha escrit: Well, the usual implementation of an externally called Destroy is - first a call to the Terminate method - then a WaitFor() Nope, I avoid the WaitFor. I usually do a while not FFinished do CheckSynchronize(100); (where FFinished is

Re: [fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

2010-10-16 Thread Luca Olivetti
Al 16/10/10 17:42, En/na Luca Olivetti ha escrit: Al 16/10/10 16:57, En/na Vinzent Höfler ha escrit: Well, the usual implementation of an externally called Destroy is - first a call to the Terminate method - then a WaitFor() Nope, I avoid the WaitFor. I usually do a while not FFinished do

Re: [fpc-pascal] upgrading fpc rpm removes fpc.cfg

2011-03-17 Thread Luca Olivetti
Al 17/03/11 12:20, En/na Mattias Gaertner ha escrit: Hi all, I just installed on a fresh Linux Fedora 14 the fpc rpm via yum, which installed fpc 2.4.0. Then I downloaded from www.freepascal.org the rpm for fpc 2.4.2 and installed it via upgrade function (rpm -Uvh fpc-2.4.2-1.i686.rpm). To

Re: [fpc-pascal] com port using prolific driver

2011-03-20 Thread Luca Olivetti
Al 20/03/11 19:47, En/na johnelee1...@googlemail.com ha escrit: Paul and other responders, thanks. Think I'm a bit clearer how to do it now. q1) My com device is an energy monitor that sends a block of xml data, 1000 bytes or so, every 6 secs. Guess this means I might be better 'using getbuf

Re: [fpc-pascal] Parsing commandline parameters with wildcards on Linux

2011-04-10 Thread Luca Olivetti
Al 10/04/11 01:34, En/na Bart ha escrit: Obviously this is a common scenario on Linux, so how to treat it? You don't, accept the fact and don't try to oppose resistance ;-) I would prefer to expand the wildcards by myself, but it seems I have no access to what the user actually typed on

[fpc-pascal] Is there a problem on the lazarus mailing list?

2011-04-12 Thread Luca Olivetti
Sorry for the off-topic, but I sent a message yesterday to the lazarus mailing list and it hasn't appeared. In fact there aren't new messages since last Sunday. Does anybody know if is there a problem with the lazarus list server? Bye -- Luca ___

Re: [fpc-pascal] Is there a problem on the lazarus mailing list?

2011-04-12 Thread Luca Olivetti
Al 12/04/2011 9:24, En/na Juha (gmail) ha escrit: Luca Olivetti kirjoitti tiistai, 12. huhtikuuta 2011 10:20:04: Sorry for the off-topic, but I sent a message yesterday to the lazarus mailing list and it hasn't appeared. In fact there aren't new messages since last Sunday. Does anybody know

Re: [fpc-pascal] Is there a problem on the lazarus mailing list?

2011-04-12 Thread Luca Olivetti
Al 12/04/2011 15:45, En/na Vincent Snijders ha escrit: 2011/4/12 Luca Olivettil...@ventoso.org: Sorry for the off-topic, but I sent a message yesterday to the lazarus mailing list and it hasn't appeared. In fact there aren't new messages since last Sunday. Does anybody know if is there a

[fpc-pascal] TProcess InheritHandles has no effect

2011-05-26 Thread Luca Olivetti
According to the documentation InheritHandles only works in windows. However the windows implementation of TProcess.Execute has in the first line FInheritHandles:=true so it doesn't work even under windows. fpc 2.4.2, but I checked in svn and it's the same. Bye -- Luca

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Luca Olivetti
En/na Micha Nelissen ha escrit: Luca Olivetti wrote: synchronize and critical sections, c library with callbacks to pascal, etc.) is working flawlessly in the foreground, but it segfaults if I try to background it (or try to use fpFork), and this is a problem since I want to write a daemon (i

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Luca Olivetti
En/na Micha Nelissen ha escrit: Luca Olivetti wrote: [EMAIL PROTECTED]:~$ uname -a Linux lspro 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl GNU/Linux I've gotten access to an arm-linux system, where I cannot reproduce the crash. That system is using 2.6.18 kernel. Can you try

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-03 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: the example daemon.pp, for example, crashes right away, strace doesn't seem very useful to me: but it works fine cross-compiling (with fpc 2.0.4). I cannot find a way to cross-compile my test program: [EMAIL PROTECTED] fork]$ ppcarm -Fu/home/luca/fpc-arm-2.0.4

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-04 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: the example daemon.pp, for example, crashes right away, strace doesn't seem very useful to me: but it works fine cross-compiling (with fpc 2.0.4). I cannot find a way to cross-compile my test program: [EMAIL PROTECTED] fork

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-04 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: the example daemon.pp, for example, crashes right away, strace doesn't seem very useful to me: but it works fine cross-compiling (with fpc 2.0.4). I cannot find a way to cross-compile my test

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-04-04 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: OTOH my real program, even if cross-compiled (what a pain!), is still throwing an exception if I use ctrl-z, is still having problems with fork but at least (if I leave it in the foreground) I can use ctrl+c. This is another test program that shows my problem

Re: [fpc-pascal] writing device driver using FPC

2007-04-05 Thread Luca Olivetti
En/na Bisma Jayadi ha escrit: What kind of windows driver? First choose that. There are lot´s and lot´s of types of windows drivers. Device driver for a custom hardware connected through USB port. I'm currently writing an usermode device driver for an USB device (a voip phone) using libusb

[fpc-pascal] usermode driver and sip phone for the topcom butler 4012

2007-04-06 Thread Luca Olivetti
Hello, I used freepascal to write an usermode usb driver (using libusb) for the topcom butler 4012 voip usb phone. I also wrote a program that uses linphonecore to make a sip phone controlled by the 4012 (making a quick'n'dirty modification of the h2pas translated linphonecore.h). Due to the

Re: [fpc-pascal] Fcp for arm linux for EABI

2007-04-26 Thread Luca Olivetti
En/na Henry Vermaak ha escrit: On 26/04/07, Jose Pascual [EMAIL PROTECTED] wrote: Hi, 2.3.1 version ? is development snap? donwload from? or make from scratch? there's one from 2007-03-10. i haven't tried it, though.

Re: [fpc-pascal] Fcp for arm linux for EABI

2007-04-26 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Henry Vermaak ha escrit: On 26/04/07, Jose Pascual [EMAIL PROTECTED] wrote: Hi, 2.3.1 version ? is development snap? donwload from? or make from scratch? there's one from 2007-03-10. i haven't tried it, though. ftp://ftp.freepascal.org/pub/fpc

Re: [fpc-pascal] Some class or units

2007-05-02 Thread Luca Olivetti
En/na josepascual (almudi) ha escrit: hi there, Is there some fpc/pascal unit which implements semaphores for windows and linux (without libc unit)? have a look at syncobjs and Is there some fpc/pascal unit which implement some logfile (in order to write log information during application

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-05-24 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: This is another test program that shows my problem with fork: as soon as I start the thread, the main program stops working (the thread *is* running, you can put a writeln in its loop to show it). Note that in this short example I don't close stdin,stdout,stderr

Re: [fpc-pascal] Serial Programming

2007-06-02 Thread Luca Olivetti
En/na Rainer Stratmann ha escrit: Hello, porting to the new 2.1.4 Version, I tried to convert the serial stuff, because there is nomore oldlinux unit. I can not find the equivalent unit(s) for the serial stuff. Is there someone who is serial interface experienced? I've used synaser in the

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Luca Olivetti
En/na Rick Seiden ha escrit: It's what I like to call a pass through server. My ISP won't let me send email unless I'm on their network (at home). So, I have a server I wrote in VB that listens for a connection on a non standard port. When connected, it connects to my ISP's SMTP server.

[fpc-pascal] How to analyze a core dump?

2007-06-10 Thread Luca Olivetti
Hello, I'm trying to debug a segment violation, I compiled the program with -g, but analyzing the core dump isn't really helpful, maybe the warning can't read pathname for load map is the cause? Or it's possible that it's caused by some of the c libraries used having no debug symbols? Any

Re: [fpc-pascal] How to analyze a core dump?

2007-06-10 Thread Luca Olivetti
En/na John Coppens ha escrit: On Sun, 10 Jun 2007 21:30:09 +0200 Luca Olivetti [EMAIL PROTECTED] wrote: I'm trying to debug a segment violation, I compiled the program with -g, but analyzing the core dump isn't really helpful, maybe the warning can't read pathname for load map is the cause

Re: [fpc-pascal] How to analyze a core dump?

2007-06-14 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: Hello, I'm trying to debug a segment violation, I compiled the program with -g, but analyzing the core dump isn't really helpful, maybe the warning can't read pathname for load map is the cause? Or it's possible that it's caused by some of the c libraries used

Re: [fpc-pascal] Metaware

2007-06-19 Thread Luca Olivetti
En/na Mark Wood ha escrit: I have found that there are some functional differences that Metaware has over fpc, one example is the yield() function which returns the intermediate result of a function call. ? '?' indeed! I am fascinated! What does yield do exactly... presumably it

Re: [fpc-pascal] Re Serial (RS232)

2007-06-20 Thread Luca Olivetti
En/na [EMAIL PROTECTED] ha escrit: All I've am wondering if FPC comes with a simple way to use the serial interface to a system. If someone could point me to something within I would be much appreciated. The documentation does not show anything on this and I want to do this with free pascal

Re: [fpc-pascal] How to analyze a core dump?

2007-06-25 Thread Luca Olivetti
En/na Jonas Maebe ha escrit: On 14 jun 2007, at 19:04, Luca Olivetti wrote: No suggestions? Is there some special option (apart from -g) that I should specify to compile/link my program? No. But the garbage backtrace means that either your gdb cannot parse the signal handler frame

Re: [fpc-pascal] How to analyze a core dump?

2007-06-26 Thread Luca Olivetti
En/na Tom Walsh ha escrit: Nope, it is 'gdb -c corefilename'. Sorry :-( Been there, done that, got the t-shirt. http://article.gmane.org/gmane.comp.compilers.free-pascal.general/8211 thanks for trying. -- Luca ___ fpc-pascal maillist -

Re: [fpc-pascal] How to analyze a core dump?

2007-06-26 Thread Luca Olivetti
En/na Jonas Maebe ha escrit: On 25 jun 2007, at 22:44, Luca Olivetti wrote: En/na Jonas Maebe ha escrit: On 14 jun 2007, at 19:04, Luca Olivetti wrote: No suggestions? Is there some special option (apart from -g) that I should specify to compile/link my program? No. But the garbage

Re: [fpc-pascal] How to analyze a core dump?

2007-06-26 Thread Luca Olivetti
En/na Cesar Romero ha escrit: Where S is initialized? I only see L initialized. []s Cesar Romero 442: L:=length(s); 443: if L1 then exit; 444: case s[1] of so I can't see how it could possibly be uninitialized. nothwithstanding the fact that if length(s)1 line 444 won't be executed,

Re: [fpc-pascal] How to analyze a core dump?

2007-06-27 Thread Luca Olivetti
En/na Vinzent Hoefler ha escrit: On Tuesday 26 June 2007 17:26, Luca Olivetti wrote: procedure TButlerPhone.Receive(s: string); so s is a parameter. This procedure is called exclusively from procedure TStatusThread.Receive; begin FOwner.Receive(FData) end; (FOwner is a TButlerPhone

Re: [fpc-pascal] How to analyze a core dump?

2007-06-27 Thread Luca Olivetti
En/na Vincent Snijders ha escrit: On Wed, 27 Jun 2007 19:38:03 +0200 Luca Olivetti [EMAIL PROTECTED] wrote: En/na Luca Olivetti ha escrit: En/na Cesar Romero ha escrit: Where S is initialized? I only see L initialized. []s Cesar Romero 442: L:=length(s); 443: if L1 then exit; 444

Re: [fpc-pascal] How to analyze a core dump?

2007-06-30 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: Maybe it's not a good idea to mix c multithreaded libraries and pascal code? Any special unit I should use? (I already tried cmem and it made no difference). If I cannot solve it I think I'll have to write a small backend program in c that communicates

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Luca Olivetti
En/na josepascual ha escrit: I always receive An unhandled exception occurred at $BEED89C8 : EAccessViolation : Access violation $BEED89C8 same here (only at a different address), though I have many funky errors under arm that nobody else has. Using self-built native fpc-2.1.4 [EMAIL

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Luca Olivetti
En/na Henry Vermaak ha escrit: soft float just means that the compiler needs to emulate the floating point unit if it doesn't exist in your hardware (like some arm processors). if you have an fpu, then you don't have to worry about soft float. the following assumes that you need soft float

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Luca Olivetti
En/na Bernd Mueller ha escrit: FPC 2.1.4 compiler built without softfloat option, running on an (little endian) ARM processor without fpu on Linux, kernel version 2.6.21.1 (OABI). ppcrossarm -gl datetostr_test.pas could you check bug 9191?

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-03 Thread Luca Olivetti
En/na [EMAIL PROTECTED] ha escrit: Luca, could you check bug 9191? http://www.freepascal.org/mantis/view.php?id=9191 if I try to compile, the linker complaints about not finding the object dl, though dl.o and dl.ppu are present in the rtl/units/arm-linux directory.

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Luca Olivetti
En/na Bernd Mueller ha escrit: thank you Jonas, that was helpful. I finally was able to compile the file, but I think there is still a problem with the libraries. The program does not run as expected. not expected as in the bug report or something completely different? Bye -- Luca

[fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-04 Thread Luca Olivetti
En/na Henry Vermaak ha escrit: i urge you to read this: http://wiki.debian.org/ArmEabiPort http://www.codesourcery.com/gnu_toolchains/arm/faq.html i haven't completely read it (hence i can't answer your questions that well, sorry). I'm wondering if my strange problems are due to a badly

Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-05 Thread Luca Olivetti
En/na Bernd Mueller ha escrit: I guess that fpc does not care about OABI/EABI. The compiler ether generates fpu opcodes or not (when floating point is used). This depends on the -CfSOFT option while building the compiler/rtl. Yes, but I think that fpc generates its own syscalls (not going

Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-06 Thread Luca Olivetti
En/na Marco van de Voort ha escrit: En/na Bernd Mueller ha escrit: I guess that fpc does not care about OABI/EABI. The compiler ether generates fpu opcodes or not (when floating point is used). This depends on the -CfSOFT option while building the compiler/rtl. Yes, but I think that fpc

Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-08 Thread Luca Olivetti
En/na Jonas Maebe ha escrit: On 06 Jul 2007, at 12:37, Luca Olivetti wrote: FPC can do both, but syscalls are default because these binaries are more portable across distributions (and versions) than glibc and thus easier to deploy. (and recently, libc has been broken after the introduction

Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-08 Thread Luca Olivetti
En/na Jonas Maebe ha escrit: On 08 Jul 2007, at 18:06, Luca Olivetti wrote: I don't think anyone has ever tried to use the libc-based rtl with linux/arm. And without using libc, what kind of syscalls do fpc generate OABI or EABI? (or, again, is there no difference between the two?) I

Re: [fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-08 Thread Luca Olivetti
En/na Marc Santhoff ha escrit: Can't you try to write a simple program using the functions in question and compile with fpc -al? the syscalls are in the rtl, so they won't show up in my program (not that I understand asm assambler, but according to

Re: [fpc-pascal] splitting string into array

2007-07-10 Thread Luca Olivetti
En/na Marc Santhoff ha escrit: Hi, is there any function in the libraries of fpc for splitting a string into an array naming the separator? not exactly but I found: http://www.freepascal.org/docs-html/rtl/strutils/extractdelimited.html maybe exactly what you're searching is already there,

Re: [fpc-pascal] splitting string into array

2007-07-11 Thread Luca Olivetti
En/na L ha escrit: Many functions should be merged into an FPC rtl unit I suppose, since it appears many of us are reinventing the wheel each time rolling our own private units. It's amazing the amount of extremely useful types/classes/functions available out of the box, but they are

Re: [fpc-pascal] Free Pascal port of ffmpeg API example

2007-08-01 Thread Luca Olivetti
En/na BlueCat ha escrit: Hello folks again, I have revised my ffmpeg API example. Your suggestions or improvements are still very welcome. http://www.nabble.com/file/p11948056/mpegpas02.zip mpegpas02.zip Hello, to get it to compile under linux (with fpc 2.0.4) I had to change the name of

Re: [fpc-pascal] notify and notigyall

2007-08-23 Thread Luca Olivetti
En/na Mattias Gaertner ha escrit: Maybe you can try http://www.freepascal.org/docs-html/rtl/system/rtleventwaitfor.html If this works, you can write a small example for the wiki: http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial How are these different to the

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Luca Olivetti
En/na Marco van de Voort ha escrit: Naturally, this is not possible: The PC speaker is simply controlled by a timer, which creates a square wave (on/off). In ancient DOS times there was a trick by doing a frequency modulation, i.e. you turn the timer on and off quite fast. But on Linux etc.

[fpc-pascal] Compiling a program for openwrt?

2007-09-19 Thread Luca Olivetti
Hello, I received a message from a user that's trying to use my program with openwrt. I provide a binary for arm that I compiled natively on my lspro and he cannot run it. I suspect a library problem (the lspro has a full-fledged linux system, while openwrt seems to be using uClibc). This is

Re: [fpc-pascal] Compiling a program for openwrt?

2007-09-20 Thread Luca Olivetti
En/na Florian Klaempfl ha escrit: Luca Olivetti schrieb: Hello, I received a message from a user that's trying to use my program with openwrt. At least the WRT54 is MIPS based. Is the user's system really an arm? Good question. He has an asus wl500g premium, and according to the table

Re: [fpc-pascal] problem with threads and backgrounding, fpc 2.1.3 arm native

2007-09-25 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Luca Olivetti ha escrit: This is another test program that shows my problem with fork: as soon as I start the thread, the main program stops working (the thread *is* running, you can put a writeln in its loop to show it). Note that in this short example I

[fpc-pascal] threads, fpfork and bug #9836

2007-10-03 Thread Luca Olivetti
I'm posting here since I cannot add a comment to bug #9836 (probably because it's closed?) I'm puzzled because a) I could find examples of unix daemons, the parent simply exits with exit b) I swear I saw some fpc example where the parent simply uses halt (or halt(0)) and most important c) I'm

Re: [fpc-pascal] serial ports under Unix using Freepascal

2007-10-04 Thread Luca Olivetti
En/na [EMAIL PROTECTED] ha escrit: Hi! I'm creating a component that handles serial port in windows/unix. Under Windows I include in uses the unit windows, that open, close, read, write, test if the configuration of serial port is valid (some set of configurations of baudrate, stop bits and

Re: [fpc-pascal] FPC and JAVA

2007-10-26 Thread Luca Olivetti
En/na Matt Emson ha escrit: Does FPC support the flavour of Linux on the N800? That might also be something I'd like to look at. No :-( All packages for the n800 are armel, i.e. they use EABI, while fpc generates OABI calls. I don't really know all the details of OABI vs EABI, I only know

Re: [fpc-pascal] Libc and 2.2.0

2007-11-30 Thread Luca Olivetti
En/na [EMAIL PROTECTED] ha escrit: Hi, after I upgraded fpc 2.0.4 - 2.2.0, I can't find unit Libc = can't use Synaser and RS232. I use Kubuntu 6.10 and I'm not a programmer (I am electronics). Any advise? Try synasnap, it includes synaser and supposedly doesn't use libc (I say supposedly just

Re: [fpc-pascal] Question on programming serial communication.

2008-02-25 Thread Luca Olivetti
El Mon, 25 Feb 2008 18:13:59 +0100 (CET) Rainer Hantsch [EMAIL PROTECTED] escribió: Luca Olivetti mentioned SynaSer. I had a short look on the web site he pointed me to, but the first thing I read is: This is library for blocking communication on serial ports. It is non-visual class

Re: [fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread Luca Olivetti
El Wed, 27 Feb 2008 12:04:22 -0700 L [EMAIL PROTECTED] escribió: While using synapse in a thread, I saw that it didn't report an error on connection, eventually I saw that the call to WSAGetLastError was returning 0 even if it couldn't connect and the connect call returned an

Re: [fpc-pascal] WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-27 Thread Luca Olivetti
En/na Marco van de Voort ha escrit: Hello, before reporting a bug, I'm asking for support here since I'm not sure I doing something wrong (and if so what am I doing wrong). I can't test easily atm, but trying killing off socketerror and the older calls without fp. Try also to move the write

Re: [fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-02-28 Thread Luca Olivetti
En/na L ha escrit: Found the problem using my brute force writeln('') skills. It is an issue with freepascal's stack or something to do with buggy threads methinks. As it is when you call lasterror within another procedure with local variables.. they are corrupted or something. Aha.. I

Re: [fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-03-03 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na L ha escrit: Found the problem using my brute force writeln('') skills. It is an issue with freepascal's stack or something to do with buggy threads methinks. As it is when you call lasterror within another procedure with local variables

Re: [fpc-pascal] Re: WSAGetLastError returns 0 when it shouldn't but I cannot see why

2008-03-06 Thread Luca Olivetti
El Thu, 06 Mar 2008 13:09:34 +0100 Lukas Gebauer [EMAIL PROTECTED] escribió: It is IMHO bug in FPC, just because Synapse code working in Delphi/Kylix threads perfectly. It have a problem on FPC threads only, and as I see in this discussion, problem have other programs too, not just

Re: [fpc-pascal] MaskEdit

2008-03-16 Thread Luca Olivetti
En/na Marek Nožka ha escrit: On Mon, 28 Jan 2008 15:00:56 +0100 Roberto Padovani [EMAIL PROTECTED] wrote to FPC-Pascal users discussions fpc-pascal@lists.freepascal.org: a TMaskEdit was posted in attachment by David on 23-nov-2007 The subject wasRe: [lazarus] TMaskEdit new release Thank

[fpc-pascal] fix for GetLastError/WSAGetLastError with threads under windows [was WSAGetLastError returns 0 when it shouldn't but I cannot see why]

2008-03-18 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: El Thu, 06 Mar 2008 13:09:34 +0100 Lukas Gebauer [EMAIL PROTECTED] escribió: It is IMHO bug in FPC, just because Synapse code working in Delphi/Kylix threads perfectly. It have a problem on FPC threads only, and as I see in this discussion, problem have other

[fpc-pascal] Windows GetLastError doesn't work with threads

2008-03-26 Thread Luca Olivetti
I hate to be obnoxious, but I posted a patch for the issue in the subject (WSAGetLastError/GetLastError is reset by the rtl when one is using threads) and I'd like some feedback (if it's the proper solution or is there a better one). http://bugs.freepascal.org/view.php?id=10205 Bye -- Luca

  1   2   3   4   >