Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2013-04

  1. Synchronize(dummyproc) with Linux.

    This about audio and fpc and fpGUI and LCL and Linux. (working good with Windows) Have some trouble with threads synchronize() procedure. The main thread.execute is a…

    Fred van Stappen, fredvs, Graeme Geldenhuys
    50
  2. DBF components are maintained now

    Just wanted to let you know about http://wiki.lazarus.freepascal.org/User_Changes_Trunk#TDBF_unit_deprecation_removed Currently I'm adding test cases to dbtestframework…

    Reinier Olislagers, Attila Kovács, Graeme Geldenhuys
    3
  3. Win64 release of FPC 2.6.2 missing

    I just tried to update one of my Windows VM with the latest released FPC. To my surprise there is no Win64 release for FPC 2.6.2 on SourceForge? I only found a 32-bit…

    Graeme Geldenhuys, Andrew Brunner, Bruce Tulloch
    31
  4. FPC cross compilation error: cannot find -lgcc

    I am puzzled by the failure to cross compile with recent FPC versions. Cross compilation from Ubuntu 32 bit to Win32, WIn64, and Linux 64 works well with FPC 2.6.0. With…

    patspiper, Bruce Tulloch, Marco van de Voort
    5
  5. fpGUI Toolkit v1.0 release for FPC 2.6.2

    fpGUI v1.0 is available ======================== I'm glad to announce the 1.0 release of fpGUI. This has been over a years worth of development, so a complete list of…

    Graeme Geldenhuys, Mark Morgan Lloyd, Paul Breneman
    4
  6. Problems with ImageMagick Win64

    Current FPC/Trunk running on Win64 XP I can't get ImageMagick unit to work under Windows XP 64. I changed Win32 to Windows {$ifdef Windows} MagickExport =…

    Andrew Brunner
    2
  7. Odyssey: SSockets and Threads.

    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…

    silvioprog, Jonas Maebe, Ludo Brands
    47
  8. fpdoc project file: multiple output formats

    I'm using a fpdoc project file for fpGUI documentation. The project file idea works much better than a massive set of command line parameters. So kudos to whoever…

    Graeme Geldenhuys, Marco van de Voort, Michael Van Canneyt
    8
  9. MS DOS 8086 compiler?

    Noticed that an 8086 branch was merged to fpc trunk. Is it time to get out some 5.25" diskettes[1]? [1] Shame I dumped all the accompanying hardware long ago ;) Perhaps…

    Reinier Olislagers, Adrian Maier, Bart
    14
  10. How to detect connection status of a socket

    I am writing a redis client in fpc and found that even when the connection is closed by server (via redis CLIENT KILL), send and receive can still be done without…

    Xiangrong Fang, Ewald, Marco van de Voort
    5
  11. Windows backslash

    It seems fpc converts under Windows \^ to ^. See here: http://bugs.freepascal.org/view.php?id=23294 Is this a feature or a bug? Mattias

    Mattias Gaertner, Bart, Marco van de Voort
    12
  12. [OT] Pascal compiler for embedded platforms

    has anyone of you had the chance to try this Pascal compiler for embedded platforms? http://www.mikroe.com/mikropascal/ Any comment will be appreciated! Roberto

    Roberto P., greim, Justin Smyth
    24
  13. PopCount

    Unfortunately, for POPCNT assembler, SSE 4.2 is required. For older CPUs, after some tests, I'd finally recommend function CShift(ANum : QWord) : Cardinal; var n1, n2 :…

    reyno
    0
  14. FPC_JVM compilation fails on trunk

    Hi List. I'm trying to follow this guide: http://wiki.freepascal.org/FPC_JVM/Building But when i reach the point where i do the actual compilation fail with the…

    Torsten Bonde Christiansen, Jonas Maebe
    3
  15. Statically link library

    I'm linking a C and FPC program but I keep on getting undifined symbols (see example below). Error: Undefined symbol: _strcpy Sofar I have added: {$linklib msvcrt}…

    Darius Blaszyk, Ludo Brands, Marco van de Voort
    16
  16. SSockets and write/read simultaneously...

    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…

    silvioprog
    0
  17. Simple beep sound Linux

    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…

    Rainer Stratmann, Tomas Hajny
    1
  18. RAD Studio XE4 Released?

    http://www.h-online.com/developer/news/item/RAD-Studio-XE4-focuses-on-cross-platform-apps-1848176.html…

    vfclists ., Jonas Maebe, Michael Schnell
    3
  19. What's the deal with CloseThread?

    I was looking at threading support in the System unit and also in the TThread class. According to the documentation at…

    Anthony Walter, Marco van de Voort, Sven Barth
    19
  20. Mipsel compilation: changing elf flags?!

    See this forum thread: http://lazarus.freepascal.org/index.php/topic,20664.msg119960.html#msg119960 Forum user ocye got mipsel binaries, but the ELF flags apparently need

    Reinier Olislagers, Heiko Tietze, Mark Morgan Lloyd
    4
  21. Object Pascal Grammar in EBNF like style

    I'm putting together a EBNF like syntax [not strictly EBNF] for the Object Pascal grammar, as implemented by Free Pascal, using the {$mode objfpc} compiler mode. I'm…

    Graeme Geldenhuys, Kenneth Cochran, Michael Van Canneyt
    6
  22. ppcjvm linking jar

    I am stumped about how to link a program such as the example trange1.pp into a jar file. I've followed the instructions here: http://wiki.freepascal.org/FPC_JVM and the…

    Andrew Haines, leledumbo
    3
  23. why connect is "deprecated"

    I am trying to write a tcp client (redis) in free pascal, and found this function marked as deprecated: Function Connect(Sock:longint;const addr:TInetSockAddr;var…

    Xiangrong Fang, dmitry boyarintsev, Jonas Maebe
    29
  24. fcl-stl in 2.6.2 packaged release (not source code)

    Recently someone asked me a question which I answer using fcl-stl units, however the OP who uses 2.6.2 installed using the installer said the compiler can't find those…

    leledumbo, Marco van de Voort, Sven Barth
    6
  25. GetCurrentDir

    On one of my Linux machines GetCurrentDir returns '', when the working directory is a samba share. Is this a feature or a bug? Mattias

    Mattias Gaertner, Henry Vermaak, Marco van de Voort
    7
  26. SqlDB vs Zeos: TDataset.FieldDefs[].Size

    I have a Firebird database living on a FreeBSD server. I did not specify a charset when the database was created. I have a table with a string field defined as…

    Graeme Geldenhuys, LacaK, Ludo Brands
    3
  27. The 2.6.2 RPM and Deb archives are still in preparation

    Some words about me: I'm a pascalist for now more than 25 years. I developped many embedded applications, but I don't feel well putting the hands on the compiler...…

    Ched
    0
  28. TSocketServer and DoDisconnect event?

    Well, the TSocketServer has the event DoConnect, but, how to I know when a client is disconnected? (eg, when I kill a client with Ctrl+Alt+Del) I find a event such as…

    silvioprog
    1
  29. LLVM (again)

    I have read the discussions about FPC using LLVM and the reasons against it (which I fully understand and support). But a friend of mine called my attention to this:…

    Reimar Grabowski, Mark Morgan Lloyd, Nikolay Nikolov
    6
  30. string memory management

    I'm studying how pascal manages strings. I wrote a simple test program: program stringtest; {$mode objfpc}{$H+} uses Classes, sysutils; function test: PString; var s :…

    Xiangrong Fang, Flávio Etrusco, Michael Van Canneyt
    5
  31. using mtprocs

    I have a program that captures xml data every 2-6 secs from a power sensor, win , xp. Would like to use freearc ebvery minute or so to compress the previous data in…

    John Lee, Mattias Gaertner
    3
  32. compiling mtprocs

    Got mtprocs from lazurus svn, compiles ok with win 2.6.2 but not with 2.7.1 2.7.1-r1:23421 [2013/01/18]--Free Pascal Compiler version 2.7.1-r1:23421 [2013/01/18] for i386

    John Lee, Mattias Gaertner
    3
  33. Yet again Objects auto destruction

    I think it is not the first time this topic was opened, but still think we need when using object to have automatically destructor called by compiler when the object…

    Zaher Dirkey, August Oktobar
    1
  34. How to use TThread?

    I tried to use TThread in a small sample, but it don't works. The code is very simple, and I'm sending it in attached. Silvio Clécio My public projects -…

    silvioprog, Antonio Fortuny, Jeppe Græsdal Johansen
    5
  35. TBufDataset error

    Hi Guys. Got something funny using the TBufDataSet FCL component. One is dropped onto a TForm. I fill in some TFields (double click on the component image) and give them…

    Antonio Fortuny, Michael Van Canneyt
    2
  36. Bending System.IndexByte to my will!!?

    (FPC 2.6.2 x86, trunk x64, on Windows; found similar behaviour on Linux x64) Busy getting DBase III memo support correct ;) In fcl-db\src\dbase\dbf_common.pas we find…

    Reinier Olislagers, Jeppe Græsdal Johansen
    2
  37. socket timeout

    How can I set the connection and read/write timeout when using socket in free pascal? I like the way it works now (blocking, NOT async), but the timeout is a bit too…

    Xiangrong Fang, Fabio Luis Girardi, Luca Olivetti
    9
  38. Fpcup for FreeBSD: feedback welcome

    Just uploaded a new version of fpcup (automatic FPC+Lazarus svn downloader/installer for both stable and trunk) at https://bitbucket.org/reiniero/fpcup/downloads I…

    Reinier Olislagers
    0
  39. Correct way for partial generic specialization

    This code: {$mode objfpc}{$H+} type generic TType1<A,B> = class end; generic TType2 = specialize TType1<A,String>; begin end. fails: x.pas(5,42) Error: Identifier not…

    leledumbo, Sven Barth
    6
  40. Same code from LCL project throw error in console application

    I have strange issue. Simple mpg123 player which work fine on LCL project, on console application throw floating error in line "mh_e := mpg123_read(mh, @outbuf[0],…

    Krzysztof, José Mejuto, Michael Van Canneyt
    4
  41. Is this a bug?

    I just wanted to get some opinions on this as to whether this is a bug. Generics in 2.7.x trunk allows units which use a generic class defined in another unit can access…

    Anthony Walter, Sven Barth
    1
  42. Array assignment, and not-a-number

    I was having a bit of fun earlier while waiting for a call. Am I correct in believing that something like type t1= array of integer; var a1: t1; x: integer; a1 :=…

    Mark Morgan Lloyd, Jonas Maebe, Marco van de Voort
    7
  43. Warnings crti.o and crtn.o not found

    I just updated my FPC 2.7.1 from revision 23807 to 24236 and for every project I compile I now get warnings that crti.o and crtn.o are not found. Does anyone know why I…

    Reimar Grabowski, Anthony Walter, Marco van de Voort
    10
  44. TDBF: Initial Visual FoxPro support

    I've been working on the tdbf code. It had rudimentary support for both Visual Foxpro and older Foxpro file formats, but mixed them up a bit. I split out the distinction…

    Reinier Olislagers, Norbert Saint Georges
    2
  45. Free member after inherited Destroy;

    Is it safe to free memeber object after call inherited in Destroy? in Delphi/ObjFPC modes type TMyObject=class(TObject) FMyMember:TmyMemberObject; .... destructor…

    Zaher Dirkey, Michael Van Canneyt
    1
  46. What's the status of RTL and IsMultiThreaded := True?

    I did some Googling earlier tonight regarding using the RTL and threads without creating a TThread class. I found some older results from this mailing list such as...…

    Anthony Walter, Jonas Maebe, Sven Barth
    6
  47. 64 bit cross binutils on a 32 bit OS

    Is it possible to build cross binutils to produce win 64 bit files on a 32 bit Linux OS (Ubuntu 32 bit)? If I set target=x86_64-cygwin, the error is: 'BFD does not…

    patspiper, leledumbo, Marcos Douglas
    17
  48. Why does this work?

    As a certified high-level coder with a fear for anything that smells like pointers and bits I hesitated to post this as the answer may well be: figure it out yourself,…

    Reinier Olislagers, Ludo Brands, Marco van de Voort
    3
  49. Difference between fpc 2.6.2 rc1 and fpc 2.6.2 final

    Somehow i missed the final release of 2.6.2 So i'm still using fpc 2.6.2rc1 Are there any difference between those two versions? Luiz

    luiz americo pereira camara, Jonas Maebe
    2
  50. Re: fpc-pascal Digest, Vol 106, Issue 26

    Am 11.04.2013 um 12:00 schrieb I was successful with target=x86_64-w64-mingw32

    Schindler Karl-Michael
    0