fpc-pascal · 2014-09
- Wraper for libpciaccess ?1
Does anyone know of an FPC wrapper for the library libpciaccess ? Thanks in advance Brian View this message in context:…
- 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…
- 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…
- with statement using mulltiple objects59
According to the docs the with statement when used with mulltiple objects only works with the last parameter. The statement With A,B,C,D do Statement; is equivalent to…
- how to implement a RTD server (COM Server) for windows0
Window's DDE protocol is too old and the new one is called RTD. I want to implement such an RTD server for Excel client to connect to. Is there any examples of…
- EpikTimer: maximum elapsed seconds0
I would like to know the maximum number of seconds EpikTimer can count. I put a program running for over 24 hours, but epiktimer told me only about less than 2000…
- console gdb in mac6
I'm trying to debug lcl-cocoa, but the debugger in the IDE is not helping (not stopping in breakpoints inside the LCL, can't read variable names, etc...) So I moved to…
- return 8 byte of return as function result via register3
I am trying to use an external C++ dll and also privide call back functions to this dll to call back. However, the dll requires my functions to return 8 byte of 'struct'…
- Imagemagick: magickwand doesn't convert to TIFF 1 bit3
(Earlier posted on forum) See subject - I've posted this on stackoverflow http://stackoverflow.com/questions/25719495/magickwand-conversion-to-tiffccitt-group-4-compressi…
- Fastest way of drawing 2D graphs6
I am new in FPC and want to understand the correct(fastest) methods when drawing 2D graphics. The task is simple but extensive: to draw about 200 polylines with…
- detect CPU cores12
Is there a platform independent (specifically Windows and Linux) way to detect cores and hyper-threads of the CPU? I am writing a calculation intensive app and would…
- where to find documentation on fgl unit?4
I googled and people said there isn't any. Anyone knows? Dennis
- cthread and cmem1
which one should be the *first* unit to use? cthread or cmem? Thanks! Xiangrong
- Overloading functions1
My understanding is that functions cannot be overloaded based on the return type, i.e. you can't have two functions with the same name and parameters which differ only…
- Unhandled Exception2
I have an intermittant exception in my Lazarus app (Access violation) My app also uses a freepascal library - I think the problem is within it Can anybody suggest the…
- RegExpr - replace3
I'm using RegExpr to parse some parts, just SOME parts, of a HTML and works perfectly. But, in one case I need identify a "pattern" to reuse using new "values". Please,…
- Handling virtual abstract method in case of generics1
I am having trouble with the following code: generic TVector<T> = class type DataType = array of T; private //... protected //... public //... end; generic…
- freeBSD and GetProcedureAddress() ?6
Hello everybody. Hum, i try to dynamically load (and run) some freeBSD libraries with a fpc-freeBSD-appliction. For testing, i use some library included in /usr/lib (so…
- Improved array initialization in Delphi XE71
Hello together! Just today I've read that Delphi XE7 has introduced an improved array initialization and even in a way that I already planned to introduce it myself in…
- FreeBSD implementation of clock_gettime(), clock_settime() and clock_getres()0
I've attached a patch in Mantis for the above. http://mantis.freepascal.org/view.php?id=26671 Description: ------------------ Attached is a patch for a FreeBSD…
- utilizing multicore1
How can I programming using FPC to make use of multiple cpu cores? Just use TThread? Thanks! Xiangrong
- Fast CRC functions?13
We have an old function for calculating CRC like: function CalcCRC(const Str: String): Cardinal; var Len, i, CRCVal: Cardinal; Begin Len := Length(Str); CRCVal :=…
