fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Is TFPList thread safe?17
I would like to know if TFPList is thread-safe or not? And if I make a component thread-safe by using critical sections etc. Is the performance penalty noticeable?…
- mpcalc 7.40
For anyone interested, a stable version 7.4 of mpcalc (unit for multiple-precision floating-point computations) is now available:…
- Syserrormessage, parameter data type12
In my programs I use this code quite often: SysErrorMessage(GetLastError); But recently my program had a range check error which let me have a look at the definiton of…
- Free Pascal Directories45
Having ported a large real-time graphical application from Virtual Pascal (DPMI) to Free Pascal Linux , there is one aspect I haven't managed to overcome. For a number…
- TCP sample0
Is there any example about how to build a synchronous TCP server using fcl-net? Regards
- I can't compile gvector.pp in package fcl-stl2
I can't compile following file https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gvector.pp I want to use this unit because fcl-stl in fpc-2.6.4 is…
- Windows type library files6
In order to generate type library files from Windows (or wine) headers, I built widl <https://www.winehq.org/docs/widl> from wine sources (on Mac OS X). Well, widl…
- Again: Use of abstract classes2
Someone could inform me if there is an entry in bugtracker with references to this topic? Here in FPC 2.6.4 this code compile well, without erros, warnings etc.: TTest =…
- Reproducible code: DLL calling Firebird crashes25
Apparently my crashes in a dll that use Firebird have to do with initialization sections in my business layer creating a single instance of my db layer. Distilled…
- how do I get Run Time info from a published method?2
say for example: type TmyClass = class published procedure Something (sender : Tobject);virtual; end; var myClass : TmyClass; then somewhere…
- fpcup: FPC trunk 64-bit for Windows5
I downloaded fpcup64.exe from https://bitbucket.org/reiniero/fpcup/downloads After installation everything works well, but the FPC version is 2.6.5. How to update it to…
- Internal error 2007060942
Hi! I have a large project and it compiles under 32 bits cpu, but doesn't under 64 bits. Here is a minimal problematic part:…
- Is it possible to use top directory of subtree with -Fu -Fi -Fl options?4
(I just registered in this list, so I don’t know if this question has come up before, and the list archives do not seem seem to a search capability.) I have a long…
- DLL calling Firebird 2: crashes at the end13
After hopefully getting parameter passing fixed (I hope, thanks Mark), I'm still facing this problem: dll using Firebird crashes on Windows and Linux Using a dummy db…
- DLL calling Firebird: slow and crashes at the end7
DLL creation newbie here; Windows; x86 FPC trunk. Going with the FPC programmer's guide, I wrote a DLL that looks up address data in a Firebird embedded db. Managed to…
- 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…
- is it possible to kill a thread from within fpc?3
I want to kill a thread created by my fpc program (not killing the entire process). I have to use an external win32 dll. I am already calling it from a separate thread…
- Hack for C-like macro functions — will it work in future?7
As we all know, C preprocessor allows function-like macros, including ones with empty expansion. They can be very convenient for things that you'll want to disable…
- Commandline to compile projects with generics4
I don't use Lazarus, but only Freepascal. Untill the generics advent, I used to compile my projects with the following commandline: fpc progname.pp However, using…
- Persistent lists to save records2
Sometimes, I want only to save a simple file of records. The first approach is record files, handled with reset, read, write and close of CRT unit. However, thereis an…
- Freepascal templating engines with logical structures4
I Know two templating engines for Freepascal: FPTemplate e JTemplate. Both can be successfully used for html construction. But they presents the same aspect: only…
- TDomNode to text and/or document3
I have a TDomNode (laz2_dom, but I guess it should be the same for all implementations). Is it possible to get a TXMLDocument from it? I tried: lDoc :=…
- Lists of tuples0
Assuming that a tuple is a sequence of fields, accessible by position or name. Assuming that a list of tuples may significantly exceed available primary storage, and…
- Is is impossible to extend a generic class in fpc 2..6.4?2
Is it impossible to extend a generic class? I tried to extend a generic class "TFPGMap" in fpl unit. its original definition is: generic TFPGMap<TKey, TData> =…
- Optimal number of threads for SMP11
If my application needs SPEED, i.e. take full advantage of CPU capabilities, and the application has no I/O operation at all (neither disk nor network), it seems no need…
- Mapping Cairo pixmap to FPC Bitmap and back2
Could anyone more knowledgeable than me point me in the right direction to find how a Cairo pixmap maps into a FPC Bitmap, and possibly to some existing code for doing…
- key-value engine for FPC3
Is there any good performance Key-Value storage engine written in free pascal, or can be linked with FPC application? I need an embedded storage engine with good…
- PostMessage vs. QueueAsyncCall2
In a previous email asking about PostMessage, Michael suggested I used QueueAsyncCall instead, because although it's OK to use PostMessage, but it is considered a…
- Random thread lockup. QueueAsyncCall??1
I am writing my "prime finder" app to understand how thread synchronization works. I tried two methods (critical section and rtlevent), both have problem. For example…
- ReadXMLFile in fcl-xml package1
I use ReadXMLFile from fcl-xml package to read XML file in UTF-8 encoding. Then I parse Nodes and use TextContent property which is string in system encoding ... but I…
