Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2009-10

  1. Does GetLastError in WinCE work?

    Hello I get strange results form GetLasError in WinCe; something like 1449435930, for example; I use this: {$include…

    epergola, Sven Barth
    2
  2. memory mapped file

    All the good days. You can not tell what I need to read and/or study for solving cross-platform (linux/windows) implementation of the memory mapped file? Thanks in…

    Alexey Voytsehovich, Henry Vermaak, Micha Nelissen
    4
  3. Compiler allows strange statement

    I looked at http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-db/tests/testfieldtypes.pas?r1=13971&r2=13970 and did not understand the meaning of:…

    Vincent Snijders, Graeme Geldenhuys, Jonas Maebe
    13
  4. bzip2 compression with FPC

    ok, I created a new thread for bzip2. So, FCL seems to have bzip2 unit but it only has decompression. Does anyone know of alternatives for bzip2 compression with FPC?…

    Juha Manninen, Marco van de Voort
    1
  5. Experimental and Unimplemented directives

    With reference to FPC 2.2.4 Linux, can somebody please explain how to get the compiler to compile code that uses the Experimental and Unimplemented hint directives? An…

    Unknown author
    1
  6. Lazarus 0.9.28.2 released

    The Lazarus team is glad to announce the 0.9.28.2 release. This release is based on fpc 2.2.4. This release can be downloaded from the SourceForge download page:…

    Vincent Snijders
    0
  7. X, Y co-ordinate system under OS/2

    I'm porting an OS/2 application to Linux & Windows. From what I can see in the code, it looks like co-ordinates (0,0) is in the bottom left corner of the screen.…

    Graeme Geldenhuys, Juha Manninen, Paul Nicholls
    7
  8. PChar -> AnsiString -> PChar = memory leak?

    Do I create a memory leak if I cast a PChar it a AnsiString. Then append text to the AnsiString and then cast it back to the original PChar? eg: var Text: Pchar; <--…

    Graeme Geldenhuys, Aleksa Todorovic, Henry Vermaak
    20
  9. How to set LCL widgetset for my project?

    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…

    章宏九, Alexander Grau, Graeme Geldenhuys
    8
  10. writing to syslog from FreePascal

    We are porting an application which needs to write to the system log via syslog. We are running under Red Hat Enterprise Linux. Is there an existing mechanism to do…

    Bruce Bauman, Michael Van Canneyt, Unknown author
    2
  11. fpc and serial port

    Hi May I have a few examples to access /dev/ttyS* using fpc? My purpose is to connect my Arm handheld to a thermal printer connected to /dev/ttyS0. Presently, having a…

    Nataraj S Narayan, Carsten Bager, Unknown author
    2
  12. someone using indy10 (tiburon)?

    the indy people seem only to support/work on the Tuburon branch. For me it works on windows. But I have no luck on MACOSX! seems to be a problem with lib-iconv - but the…

    Henrik Genssen, Jürgen Hestermann, Marco van de Voort
    4
  13. 'Uses' keyword

    Is there any way to get FPC to tell me what units get included when I include a unit? I'm asking because I'd like to know so I can find out what units I'm using and what…

    James Buren, Vincent Snijders
    1
  14. WORD (2 bytes) to String conversion

    I'm reading in a WORD (2 bytes) from a binary file. I can display the Hex format of that value without a problem, but I would also like to display the String value of…

    Graeme Geldenhuys, Aleksa Todorovic, Jeff Wormsley
    21
  15. streaming child components

    I have another question regarding serialization. I need to stream child components, and here: http://wiki.freepascal.org/Streaming_components it says that "TComponent…

    Roland Schaefer, Mattias Gaertner
    2
  16. can not debug on macosx 10.4 ppc

    I am trying to debug an application on my old ppc mac running macosx 10.4.11 with lazarus from trunc. On debugging the app starts, but it does not accept breakpoints...…

    Henrik Genssen, Jonas Maebe, JoshyFun
    5
  17. streaming functions in LResources

    I am trying to figure out property streaming a little more in-depth and have a question. I have just started fiddling with it, so please bear with me if I just missed…

    Roland Schaefer
    1
  18. How to translate this C header struct to Pascal

    The first item is 31bit and the second item is 1 bit. Does FPC support a record structure that can define bit level sizes? uint32_t SearchStart:31; // file offset…

    Graeme Geldenhuys, dmitry boyarintsev, Florian Klaempfl
    10
  19. Enhanced RTTI?

    I don't have Delphi 2010 yet and not sure if I'll sit this version out or not, since I'm quite happy with D2009 so I haven't had a chance to play with it yet. Here's a…

    Lee Jenkins, Michael Van Canneyt
    1
  20. array [boolean] and typecasting fail

    It appears that, in a special case here, the boolean typecast is not being done properly/completely, and thus an array is being indexed out of bounds. If I compile with…

    David Emerson, ik, Martin
    4
  21. Sphinx2 headers

    Do somebody used sphinx2 for speech recognition from Freepascal (or Delphi) ??? How? Thanks Horacio

    Horacio Jamilis
    0
  22. fpc on solaris 10 x86?

    I find no instructions howto install fpc on solaris 10 x86. Maybe I'm googeling wrong... Yet someone has compiled and some experience? Any help would be appreciated.…

    DUCARROZ Birgit
    0
  23. Creating text files with TFileStream

    How do you create plain text file output with TFileStream? Or is TFileStream reserved for binary output only? I'm using TFileStream as follows; // helper function to…

    Graeme Geldenhuys, Aleksa Todorovic, Frank Peelo
    20
  24. Streaming classes?

    I've encountered this mentioned several times in the documentation but I have no clue what its used for or why I would want to use it. Is it talking about reading and…

    James Buren, leledumbo
    1
  25. Pixel tricks on arm architech, how can I get more?

    I am working on a wince game and want to do some fadein/out works on a vga screen. I use alphablt in IDirectDrawSurface, but it only support a constant 50% alpha. When…

    Unknown author
    0
  26. FPC 2.3.1: undefined reference to `fpc_geteipasebx'

    Hello! I use FPC 2.3.1 to let FPC compile shared libraries with PIC code. (PIC support is broken in FPC 2.2.4) My shared lib compiles successful, but if I compile a…

    Matthias Klumpp, Jonas Maebe
    2
  27. Why has StrToDate() failing under FPC 2.3.1 (64bit)

    Compiling the project works fine under FPC 2.3.1 (linux 64bit), but running it, i get a EConvertError and I don't know why. I am telling sysutils what LongDateFormat is…

    Graeme Geldenhuys, Michael Van Canneyt
    16
  28. Division by Zero: EDivByZero and EZeroDivide

    Is there a reason why in fpc both floating point and integer division by zero raise an EDivByZero exception? See:…

    Bart, Aleksa Todorovic, Frank Peelo
    19
  29. What about the Foreach statement?

    Have you considered implementing the foreach construct similar to that found in many modern languages? Nino

    Unknown author, Jonas Maebe
    1
  30. Thread Priorities - Linux

    The Linux tthread.inc file in FPC 2.2.4 refers: There is a constant array defined at line 55 that lists 'priority' values which I think are inverted. i.e. Currently, the…

    Unknown author, Graeme Geldenhuys
    2
  31. Who said Pascal isn't popular

    I came across this link by chance. Wow, I never knew there was that many Pascal Compiler implementations. A lot! http://pascaland.org/pascall.htm - Graeme -…

    Graeme Geldenhuys, dmitry boyarintsev, Gustavo Enrique Jimenez
    40
  32. BNF grammar for fpc

    is a complete grammar for fpc written in some variant of BNF available somewhere? I searched the website and the wiki, to no avail. Marc Marc Santhoff

    Marc Santhoff, Felipe Monteiro de Carvalho, Florian Klaempfl
    20
  33. (no subject)

    i want to don't send mail to me from you but idn't know how do it. please guide me

    ak za, Micha Nelissen
    1
  34. New/Dispose vs GetMem/FreeMem

    Which of these should I use in new projects? I read somewhere that GetMem/FreeMem is actually compatibility methods from Turbo Pascal days, yet I have seen lots of new…

    Graeme Geldenhuys, Alain Michaud, Florian Klaempfl
    3
  35. MySQL

    FPC 2.2.4 OS X 10.6.1 Xcode 3.2 All references to MySQL function are unresolved by linker. libMySQLclient.a is copied to .pas directory. Using FPC test code for MySQL…

    Paul Davidson, Jonas Maebe, Vincent Snijders
    12
  36. open arrays as parameters (why packed not allowed)?

    I am translating some Pascal code from MetaWare Professional Pascal to Free Pascal. The MetaWare code uses conformant arrays, which are not supported within Free Pascal.…

    Bruce Bauman, Jonas Maebe, Jürgen Hestermann
    6
  37. pointer arithmetic help required

    Sorry, I suck at this pointers think. Currently I am reading one record in correctly and from there is all corrupted data. :-( Seeing that the first block of data…

    Graeme Geldenhuys, Jürgen Hestermann, Martin
    6
  38. What does TFileStream.Seek() return?

    Based on the documentation shown here, it doesn't mention what the return value is. Anybody have a clue?…

    Graeme Geldenhuys, Michael Van Canneyt
    4
  39. two small ?s - high(real) and nearest 2^x

    1. Is there a way to get the highest and lowest real values? I can do high(longint) but high(real) gives me an error. Also of interest is a low(real) value (-m * 10^n)…

    David Emerson, Aleksa Todorovic, Anton Tichawa
    16
  40. Linux IPC (SHM) : Getting Strange Value for shm_nattch (# of attachements)

    I try to get number of processes attached to a specific shared memory segment. So I read the shmctl record to retrieve this into shared memory : type TShmid_ds = record…

    Tom__G, Henry Vermaak
    3
  41. Code conversion question - alloc and dealloc memory

    I'm am having problems allocating memory and then populating that memory with a TFileStream.Read() call. So I thought, maybe my GetMem() call is incorrect. I then looked…

    Graeme Geldenhuys, Florian Klaempfl, Michael Van Canneyt
    4
  42. More OS X problems

    OS X 10.6.1 FPC 2.2.4 Xcode 3.2 (64 bit) Using code base that has complied correctly since 2004 Fixed $MODE OBJFPC Current problems 1) A unit with identical first few…

    Paul Davidson, Jonas Maebe
    2
  43. Video4Linux access

    I need video4linux support for my new project. I tried vfp unit I found in the contribute units website. But it seems very outdated. Itried all things menitioned in the…

    Hartmut Eilers, James Buren
    1
  44. How to Copy a Record data to a buffer?

    TCommsBuffer = packed record UnitID: Byte; FunctionCode: TModBusFunction; MBPData: TModBusDataBuffer; Spare: Byte; end; { TCommsBuffer } SendBuffer: TCommsBuffer;…

    yu ping, Aleksa Todorovic, Florian Klaempfl
    79
  45. Lazarus 0.9.28 released

    The Lazarus team is glad to announce the 0.9.28 release. This release is based on fpc 2.2.4. This release can be downloaded from the SourceForge download page:…

    Mattias Gaertner, Silvio Clecio
    1
  46. Why use pointers to arrays?

    The other "arrays" discussion got me thinking, and after working so long with only desktop type applications that talk to database API's, I long some knowledge of the…

    Graeme Geldenhuys, Andrew Brunner, Florian Klaempfl
    10
  47. Mac OS X 10.6.1 problem

    Using OS X 10.6.1, FPC 2.2.4, Xcode 3.2 on intel iMac. The program and units all have {$I Directives.inc} at top of each file. Compile lists many errors like: 6: Mode…

    Paul Davidson, Jonas Maebe, Marco van de Voort
    2
  48. Exporting user-defined conditionals

    According to the note in chapter 2, section 2.2.1 of the FPC Programmer's Guide, it is not possible for conditionals to be exported to other units. Is there a way around…

    Unknown author, David Emerson
    1
  49. QueueUserAPC Similar Cross platform Functionality

    I've got a unit I'm porting from Windows to Linux and I came across a QueueUserAPC (Kernel32 Windows) I make to add a callback method that gets executed by the thread I…

    Andrew Brunner, David Emerson
    3
  50. FIONREAD FPC FpIOCtl for Cross platform Sockets

    Sockets programming often requires a poll for how much data is available on a particular socket descriptor. I'm porting an inhouse library for a sockets implementation…

    Andrew Brunner, Marco van de Voort, Micha Nelissen
    2