Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2010-10

  1. JSON Parser to tree view

    I wish to use the JSON parser to create some sort of TreeView of my JSON (it's more then 500 lines of data). Before I'll write such code, do you know of any existed code…

    ik, Luiz Americo Pereira Camara, Michael Van Canneyt
    4
  2. IntList

    Hi In Lazarus project jcf2 component has an IntList class which is poorly implemented. It depends on integer and pointer being the same size. I will later suggest to…

    Juha Manninen (gmail, Brian Winfrey, Florian Klaempfl
    13
  3. Text scan in text files - (was: Full text scan - PDF files)

    Ok Guys. I already know how convert PDF files in Text files. To search strings in Text files, which lib in FPC do you recommends? I need speed and the program is a…

    Marcos Douglas, Alberto Narduzzi, DaWorm
    24
  4. TPLY

    I recently saw a semi working example of a Java to Delphi converter that was done with javacc. Unfortunately it would only convert simple java (v 1.4 maybe). Can anyone…

    Brian Winfrey, Adriaan van Os, David Riley
    20
  5. Changes in fcl-web

    Where do these methods go? protected function TCustWebApplication.WaitForRequest(out ARequest : TRequest; out AResponse : TResponse) : boolean; protected procedure…

    leledumbo, Joost van der Sluis, Julio C. Taborda
    11
  6. setting variables with DWARF in gdb

    When I compile an FPC program for debug with DWARF symbols, GDB seemingly ignores my commands to set variables or registers when debugging: With STABS (or whatever the…

    Seth Grover, ABorka, Graeme Geldenhuys
    12
  7. Makefile.fpc and packages dependencies

    I try to understand how Makefile.fpc work on indy project, I read "using fpcmake" in freepascal "Programmer's guide" but I am out of luck: I have two directories at the…

    Thierry B.
    0
  8. Leak narrowed down

    I have narrowed the leak down. It's not in FPC. It's in the LCL or most likely in the Carbon interface. It leaks memory outside of the FPC heap. Probably some CFStrings…

    Tobias Giesen, Andrew Brunner, Jonas Maebe
    5
  9. detecting c's calling convention

    I'm going to bind a SIP library called sofia-sip<http://sofia-sip.sourceforge.net/>, it is an open source (LGPL) cross platform SIP library from Nokia. Because the…

    ik, Henry Vermaak, leledumbo
    4
  10. Troubles with overloaded operators

    Hi together! I'm currently wrapping V4L2 in an object oriented way and thought that I could use operator overloading to convert flag ordinals to Pascal sets. My operator…

    Sven Barth
    1
  11. Widestring memory leaks with FPC 2.4.0?

    I'm using FPC 2.4.0 on Mac and I have a problem with WideString memory leaks. Is there any known issue, such that temporary WideStrings are not always freed, or any bug…

    Tobias Giesen, Florian Klaempfl, Honza
    18
  12. Cross-compiling with FPC 2.5.1

    I use the scripts buildcrossbinutils.sh and buildcrosssnapshot.sh to buils the FPC 2.4.2 cross compiler (linux to win32). However when I do the same steps but with FPC…

    patspiper, Jonas Maebe, leledumbo
    9
  13. Full text scan - PDF files

    I need to do a full text scan in PDF files i.e. convert PDF in plain text, parser and save the informations. I saw the XPDF[1] lib but I would like a lib coded in…

    Marcos Douglas
    1
  14. SIP library

    I'm looking for any existed open source binding for FPC regarding SIP protocol (or even better a stable SIP implementation in Pascal). Does any one know of such binding…

    ik
    0
  15. Re: A bug in documentation?

    You are correct. I will correct this. Michael.

    Michael Van Canneyt, Vladimir Zhirov
    1
  16. Range checking in a for loop

    Consider the following program: program test; var a: array [1..3] of Integer; i: Integer; begin for i := 1 to 4 do a[i] := i; end. The compiler will accept this code…

    leledumbo, David W Noon, Jonas Maebe
    5
  17. Heaptrc with symbolic stack trace or map file on Mac OS X ?

    I'm trying to find a memory leak but I am unable to get a symbolic stack trace from the heaptrc dump. Also the option -Xm does not generate a map file on Mac OS X. Or at…

    Tobias Giesen, Jonas Maebe
    1
  18. GetTempFileName in Linux

    Hi, if I run this program from command line in Linux, I allways get the same result, "/tmp/TMP00000.tmp". Shouldn't it return a different file name each time it's…

    Leonardo M. Ramé, Giuliano Colla, Graeme Geldenhuys
    43
  19. negative numbers in CurrHeapUsed and MaxHeapUsed

    Does anybody know what has become of this: http://free-pascal-general.1045716.n5.nabble.com/TFPCHeapStatus-miscalculations-in-2-3-1-td2824362.html I am currently…

    Bernd Kreuss, Jonas Maebe, Marco van de Voort
    4
  20. PostgreSQL 8.4 Ubuntu 10.10 x64

    I've got a problem with the PostgreSQL component. I've got an insert statement with int64 values. The prepare command goes through but the server denies the entire…

    Andrew Brunner, Jonas Maebe, Martin Schreiber
    5
  21. Precision of timestamp values.

    How accurate can a timestamp be calculated in FreePascal? Is the the Now() function accurate to more than a millisecond? Frank Church =======================…

    Frank Church, Felipe Monteiro de Carvalho, Michael Van Canneyt
    2
  22. Can variables be declared within a block?

    Can variables be declared within a begin end block? eg. if y = xxx then begin var xxx; var yyy; end There are there as shortnames for long expressions Frank Church…

    Frank Church, Andreas Berger, Benedikt Schindler
    30
  23. Posting to the list via GMAIL

    I have successfully contacted the maintainer of the GMANE news server in order to fix a problem with the Lazarus mail list mirror at gmane.comp.ide.lazarus.general When…

    Bo Berglund, Graeme Geldenhuys, Jonas Maebe
    7
  24. Building FPC with debug information

    I was reading on building FPC with debug enabled so I can trace into a unit and found that it was way too difficult to find the parameters. I know I had at one time…

    Andrew Brunner, Brian Winfrey, Graeme Geldenhuys
    8
  25. Real length of WideString

    How to get the real length of WideString variable. Thanks in advance. Zaher Dirkey

    Zaher Dirkey, Felipe Monteiro de Carvalho, Graeme Geldenhuys
    6
  26. Locate method in TBuFDataset

    John, Michael Van Canneyt
    1
  27. What are the issues involved in threads sharing variables?

    I am writing an app involving 2 threads, and a timer loop in the UI. The first thread monitors network events, logs them into a database, appends them to a list. The…

    Frank Church, Andrew Brunner, Brian Winfrey
    2
  28. non visual timer win32

    Guys i have an app on win32 that runs a timer when a form is hidden , any ideas how i get a timer to work when the form is hidden ? Kind Regards Delphian

    Justin Smyth, Felipe Monteiro de Carvalho, Graeme Geldenhuys
    3
  29. ReadStr/WriteStr vs Val/Str

    As a user of the old Macintosh Pascal (later THINK Pascal), both ReadStr and WriteStr functions were included and I used them quite a bit. The names were different…

    Richard Ward, Jonas Maebe, Paul Nicholls
    2
  30. FPC for High Performance Computing (HPC) Components with Application API

    I wanted to start a discussion based on current state of FPC and High Performance Computing (HPC). The premise of the thread is to discuss high scale threads. Currently…

    Andrew Brunner, Felipe Monteiro de Carvalho, Henry Vermaak
    11
  31. TR: Strange Behaviour of TBits

    Hello I found a strange behaviour of TBits. Example : procedure TForm1.Button1Click(Sender: TObject); var x:TBits; begin x:=TBits.Create(); x[0] := true;…

    Julien Devillers, Jonas Maebe
    2
  32. Problem accessing Class Method with abstraction

    I've got a class factory problem I'm trying to resolve and it appears I'm at a point where it's probably better to ask for help. TCoreObjects=class; TCoreObject=Class…

    Andrew Brunner, Andrew Hall, Michael Van Canneyt
    5
  33. Re: TInterfacedObject memory management

    In our previous episode, Juha Manninen (gmail) said: io: IUnknown; Try the above program. Yes you understood it wrong. The interface references are reference counted,…

    Marco van de Voort, Juha Manninen (gmail, Paul Ishenin
    3
  34. Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

    After reading up on multi-core systems and memory barriers I decided to do a few FPC stress tests with a brand new 6 core x64. I tested this app on Ubuntu 10.10 x64…

    Andrew Brunner, Benedikt Schindler, Florian Klaempfl
    81
  35. Re: Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

    Those kind of threads are not a big they are running during the whole application's lifetime, race conditions with concurrently running code are about as improbable as…

    Vinzent Höfler
    0
  36. Re: Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

    Nice for you, but I'd rather avoid polling solutions. Check again. You can't even access FFinished from a foreign thread. Vinzent.

    Vinzent Höfler, Luca Olivetti
    1
  37. WinCE / Win32 compilation

    I am still compiling delphi code and do now compile for both win32 and winCE. WinCE works (but executable untested), while win32 complains a few places: 1) Whenever I…

    Uffe Kousgaard, Jonas Maebe, Matt Emson
    5
  38. declaration of functions

    While trying to make delphi code compatible with FPC, I have hit this issue: Delphi allows: interface function somefunction(a: integer): integer; implementation function…

    Uffe Kousgaard, Felipe Monteiro de Carvalho, Jonas Maebe
    11
  39. Running FPC without extdebug

    Can somebody confirm that the -an option ("List node info in assembler file") is unavailable unless FPC is compiled with EXTDEBUG? Mark Morgan Lloyd markMLl .AT.…

    Mark Morgan Lloyd, Jonas Maebe
    2
  40. Detecting what is the linux distro

    I'm looking for a proper way to detect the type of Linux distro. At first I thought about /etc/issue, but it seems that some are abusing this file. Many distro's uses…

    ik, David W Noon, Graeme Geldenhuys
    17
  41. Disk Full

    The following code (Msg is just outputting to the debug monitor) will produce something strange: // replace all line endings with space for Pos1 := 1 to Len do begin try…

    Bernd Kreuss, Sven Barth
    6
  42. Length bug ?

    I think I have found a bug in FPC 2.4.0. Tested under Windows XP 32 bits and Linux 32 bits. program TestLength; begin WriteLn('L =', Length('') ); end. This program…

    Yann Bat, Michael Van Canneyt
    2
  43. Help getting Lazarus app in Ubuntu to elevate to root and back again

    I'm needing help to take my Lazarus app, elevate process to root (using GUI prompt like GKSU) and I want to drop back down to the user's level after port binding and…

    Andrew Brunner, Mark Morgan Lloyd, Sven Barth
    3
  44. fpc.cfg on windows

    I cannot find any documentation on this: On Linux I can have my global fpc.config in /etc/fpc.cfg and it will also look for a config in ~/.fpc/fpc.cfg which is very…

    Bernd Kreuss, Marco van de Voort, Sven Barth
    7
  45. Optimized matrix multiplication functions for pascal?

    I am translating a bunch of Fortran functions to FPC and I have now come across a problem with a couple of built-in Fortran90 functions: MATMUL multiplies two matrices…

    Bo Berglund, Adriaan van Os, David W Noon
    12
  46. Where is IsMultiThreaded set under Linux?

    Is it the line with InterlockedExchange() call? The reason I ask, I'm using FPC 2.4.3 under 64-bit linux and using fpGUI. All other platforms has a clear…

    Graeme Geldenhuys, Andrew Brunner, Henry Vermaak
    39
  47. Erorr: Illegal type conversion: "Set Of ShortInt" to "LongInt"

    Hello FPC-Pascal users discussions! I have this conversion: type TWordSet = set of 0..15; PWordSet = ^TWordSet; var btn: TMsgDlgButtons; begin ...…

    Roland Turcan, Jonas Maebe
    2
  48. lNet getting the local IP

    I am searching for a way to get the local IP. I already found examples with winsock, synapse and indy. Does anyone know how to do that with lNet? Felipe Monteiro de…

    Felipe Monteiro de Carvalho, Andrew Brunner, Boris Samorodov
    21
  49. Build scripts for Freepascal and Lazarus compilation from source

    I have posted an article and some code on some bash scripts I have developed to install FPC and Lazarus from source at…

    Frank Church, Honza, Jonas Maebe
    6
  50. TProcess.Free - three exceptions in ntdll.dll - only *sometimes*

    has anybody ever had the problem of TProcess.Free causing three exceptions in in ntdll.dll? C0000005 at 7C928FEA in C:\WINDOWS\system32\ntdll.dll 7C928FEA seems to be…

    Bernd Kreuss, Sven Barth
    4