fpc-pascal · 2010-10
- JSON Parser to tree view4
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…
- IntList13
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…
- Text scan in text files - (was: Full text scan - PDF files)24
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…
- TPLY20
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…
- Changes in fcl-web11
Where do these methods go? protected function TCustWebApplication.WaitForRequest(out ARequest : TRequest; out AResponse : TResponse) : boolean; protected procedure…
- setting variables with DWARF in gdb12
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…
- Makefile.fpc and packages dependencies0
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…
- Leak narrowed down5
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…
- detecting c's calling convention4
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…
- Troubles with overloaded operators1
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…
- Widestring memory leaks with FPC 2.4.0?18
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…
- Cross-compiling with FPC 2.5.19
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…
- Full text scan - PDF files1
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…
- SIP library0
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…
- Re: A bug in documentation?1
You are correct. I will correct this. Michael.
- Range checking in a for loop5
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…
- Heaptrc with symbolic stack trace or map file on Mac OS X ?1
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…
- GetTempFileName in Linux43
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…
- negative numbers in CurrHeapUsed and MaxHeapUsed4
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…
- PostgreSQL 8.4 Ubuntu 10.10 x645
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…
- Precision of timestamp values.2
How accurate can a timestamp be calculated in FreePascal? Is the the Now() function accurate to more than a millisecond? Frank Church =======================…
- Can variables be declared within a block?30
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…
- Posting to the list via GMAIL7
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…
- Building FPC with debug information8
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…
- Real length of WideString6
How to get the real length of WideString variable. Thanks in advance. Zaher Dirkey
- 1
- What are the issues involved in threads sharing variables?2
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…
- non visual timer win323
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
- ReadStr/WriteStr vs Val/Str2
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…
- FPC for High Performance Computing (HPC) Components with Application API11
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…
- TR: Strange Behaviour of TBits2
Hello I found a strange behaviour of TBits. Example : procedure TForm1.Button1Click(Sender: TObject); var x:TBits; begin x:=TBits.Create(); x[0] := true;…
- Problem accessing Class Method with abstraction5
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…
- Re: TInterfacedObject memory management3
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,…
- Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x6481
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…
- Re: Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x640
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…
- Re: Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x641
Nice for you, but I'd rather avoid polling solutions. Check again. You can't even access FFinished from a foreign thread. Vinzent.
- WinCE / Win32 compilation5
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…
- declaration of functions11
While trying to make delphi code compatible with FPC, I have hit this issue: Delphi allows: interface function somefunction(a: integer): integer; implementation function…
- Running FPC without extdebug2
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.…
- Detecting what is the linux distro17
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…
- Disk Full6
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…
- Length bug ?2
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…
- Help getting Lazarus app in Ubuntu to elevate to root and back again3
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…
- fpc.cfg on windows7
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…
- Optimized matrix multiplication functions for pascal?12
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…
- Where is IsMultiThreaded set under Linux?39
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…
- Erorr: Illegal type conversion: "Set Of ShortInt" to "LongInt"2
Hello FPC-Pascal users discussions! I have this conversion: type TWordSet = set of 0..15; PWordSet = ^TWordSet; var btn: TMsgDlgButtons; begin ...…
- lNet getting the local IP21
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…
- Build scripts for Freepascal and Lazarus compilation from source6
I have posted an article and some code on some bash scripts I have developed to install FPC and Lazarus from source at…
- TProcess.Free - three exceptions in ntdll.dll - only *sometimes*4
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…
