fpc-pascal
Subscribe to this list Your subscription
Latest threads
- homepage - no foundation link1
Maybe I'm going blind (considering the amount of screen time its very likely), but I don't see any link to the Free Pascal Foundation from the Free Pascal homepage?…
- TStringList - Strange quotation mark handling7
With the attached example program and data.csv I got the next result: 0 * 84392 1 * asfds 2 * hytr 3 * 43421454 4 * O 5 * fdsfds 6 * 654645645 "O" fdsfsd 7 * hgfgfedw 8…
- Multi-OS fp.ini and fp.cfg ?1
Would it be not too hard to make fp.ini and fp.cfg containing sections dedicated to one OS (bot read by others, but kept untouched) ? I'm working on my source codes both…
- Using other fpc installation10
For debugging reasons I have installed fpc 2.6.4 on Debian so I can compile some old SVN revisions, number 32959 for example. I want to use the fp editor to run the…
- Best way to insert bytes into a TBytes variable?21
I am working on moving away from using AnsiString as communications buffer in an old application, so I need to write efficient replacements for certain string functions…
- TInifile does not handle " " (space) as a value.9
Dear List. I was trying to use the ini file for our program to store a single space " " as a value, but this does not seem to be posible. From the Wikipedia definition…
- TMemDataSet1
Does TMemDataSet support loading/saving blobs? Mattias
- BlockWrite() version 2.6.46
Can anyone familiar with FPC 2.6.4 comment on the specifics of how BlockWrite() functions under Linux. Specifically does BlockWrite() call the Linux kernel or call…
- program crash when -Cfsse2 enabled0
Hi this is a portion of the program , when i add -Cfsse2 it crashes. but works ok without sse2 ////////////////////////////////////// program demo; {$ifdef FPC}{$mode…
- Food for thought - language string improvement46
Ever had a problem like this? You have some SQL, say: SELECT Customers.CustomerName, Orders.OrderID FROM Customers FULL OUTER JOIN Orders ON Customers.CustomerID =…
- FPC IDE generating Sig2910
I keep getting 'Program generated a signal 291. Save your sources and restart the IDE.' Errors with the FPC IDE. I'm using version 3.0.4RC1 on a Windows 10 x64…
- Windows API SendMessage()4
I'm trying to use SenMessage() to turn the display on or off under program control of a console application. I got the function to work, and it turns off the display,…
- inline callback functions?3
I’m seeing feature this in other languages and it’s pretty useful. Has anyone ever considered this for Pascal? Instead of declaring a method in the class (or other…
- why the 0.5 in the Unix Epoch (for UnixToDateTime function)5
I just noticed that the definition of the constants have 0.5 in it. Why? from dateh.inc const JulianEpoch = TDateTime(-2415018.5); UnixEpoch = JulianEpoch +…
- Syncobjs Event and BlockWrite() question0
When using WaitFor() , ResetEvent and SetEvent as a semaphore , if a thread is using BlockWrite() and the execution of BlockWrite() is conditional on WaitFor() , will…
- Is it always safe to typecast a old style object as its parent?0
TParent = object A : integer; end; TChild=object(TParent) B : integer; end; var Parent : TParent; Child : TChild; begin Child.A := 10; Child.B := 20; Parent :=…
- Const attributes9
The following code is compilable. I'm using a private const with type defined and I can change it in the constructor. 1. Is this by design? 2. Is there a way to declare…
- XML: Differences between Delphi and FPC5
FPC/Lazarus always tried stay compatible with Delphi... thus, why the FPC XML classes is so different than Delphi classes? Delphi XML is interface-based. There exists…
- BlockWrite of dynamic arrays1
I am converting older code to move from AnsiString to TBytes as non-text data container. While doing it I am using conditionals so I don't destroy the working code until…
- TThread.Priority when ?1
Hello. When TThread.Priority will be implemented ? Why not give a compiler message that TThread.Priority is not yet implemented when using it ? Fre;D ----- Many thanks…
- My bug or rtl bug with TThread and TThreadList?3
Could someone please look at this small bit of code and tell me I have a bug or if there is something wrong with the RTL?…
- SVN RSS4
Is it possible that the SVN RSS is stuck at day 21 ? https://svn.freepascal.org/feeds/fpcsvn.rss
- Implementing AggPas with PtcGraph102
What is the best method for getting the memory image to a ptcgraph window? I have been trying to figure how to use something like putimage to do this but I'm not sure…
- FPCUnit/DUnit: How abort all other tests?3
I'm using FPCUnit and DUnit to test code. I would like to know if there is a way to abort all other test and an specific one fail. I mean, if some "special tests" fail,…
- New tool sspell for pascal programmers1
I've just finished working on a tool called sspell (stands for source code spell checker) for a project of mine. This tool extracts text from comments and string…
- OS/2 support and text colors2
Not strictly FPC related, but I know here are some OS/2 software developers around - and I have no idea where else to ask. I'm working on supporting OS/2 in fpGUI…
- Static local variables available?7
I am trying to clean up an existing application where handling of incoming serial data is done inside an event function OnRxData() of the serial component. I want to…
- Compiler debug build2
Hi all Currently I am debugging a nasty shared memory bug. More specifically it's related to memory allocator, though not directly. More to the point - lack of…
- Semaphores removed from the rtl?9
When and why were semaphores removed from the rtl?
- backtrace code in fpc5
Hello everyone, I am trying to port the code for backtrace, e.g., GetLineInfo(), to my freepascal kernel in order to print a backtrace when an exception happens. The…
