fpc-pascal · 2014-10
- Generic specialization using $mode objfpc8
How to use this code below in mode objfpc?: TMyGeneric<T> = class(TObject) private FValue: T; public property Value: T read FValue write FValue; end; ... var…
- Generics: constructor restriction fail4
Following this article: http://alex.ciobanu.org/?p=51 The compiler does not check the constructor restriction. Try this test: {$mode delphi} TTest = class private //…
- [OT] Generics and Type Constraints sample5
I tried this example (Lazarus 1.3 r46702 FPC 2.7.1 x86_64-linux-gtk 2; FPC from trunk too): http://blogs.teamb.com/craigstuntz/2008/08/29/37832 and got the error:…
- Why TSdfDataSet doesn't simply return FCurRec as RecNo?11
TFixedFormatDataSet (ancestor of TSdfDataSet) overrides GetRecNo (correct) but it does a strange contortion instead of simply returning FCurRec: function…
- FPC Heap Management : sub-allocation ?7
Does FPC implement sub-allocation , in which the user program allocates a block of memory from the heap , and only "plays" in that sub-allocated block , such that if…
- FileAge and timezone4
The docs of FileAge does not mention if timezone is used or not. http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/fileage.html Is the returned OS time stamp with or…
- fgl unit bug in generic class TFPGMap5
I think I found a bug in TFPGMap. Hope some of you can verify it. The bug seems to relate to the binary search used in the method "FIND" but it does not occur for all…
- how do I play mp3 files with Free Pascal?2
I can use the windows MMSystem unit but it only plays .wav file. How do I play .mp3 file? Dennis
- any generic List class other than those in fgl unit?5
The TFPGMap in fgl unit has serious bug in the Find method. I tried but cannot fix it. I am hoping to find a well tested replacement class? Please kindly let me know.…
- fphttpclient and timeout4
Using basically HTTPClient.Get, I did not find time out configuration with fphttpclient. Did I missed it? If not, is there a way to implement it ? Using thread? If not,…
- section keyword1
I didn't find it in the reference. How does the section keyword work and where is it allowed? const devcfg3: longWord = 3; section '.devcfg3'; Mattias
- [OT] Is "reference to procedure" implemented in trunk?2
Can I use something like this using FPC from trunk?: http://www.drbob42.com/examines/examinA5.htm Thank you! Silvio Clécio My public projects - github.com/silvioprog
- MS SQLConn - Possible memory leak in driver (dblib or libiconv2)3
My FPC is 2.6.5 on Windows + SQLServer 2008. I have a big loop. This loop calls a INSERT script (using SQLdb) to insert records at a table. Everything works. I do not…
- warning: link.res contains output sections; did you forget -T?6
Yes, I know this warning can be ignored, and every active member of this list knows it, too. However new users don't know it. Everybody who tries FPC / Lazarus for the…
- Synapse TTCPBlockSocket Send and Receive issue0
I need to use TTCPBlockSocket on client side. I need to listen for server messages so I moved TTCPBlockSocket.RecvString(100) to another thread loop. The problem is that…
- Memory leaks in the oracleconnection.pp unit (fpc-2.6.4/packages/fcl-db/src/sqldb/oracle)4
Hello! I found severe bugs in the current release (2.6.4) of fcl-db oracle connection module leading to memory leaks and Oracle server faults in some situations. I made…
- fpGUI Thread-safe5
Is fpGUI running under X11 thread-safe? Thanks Brian View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpGUI-Thread-safe-tp5720361.html Sent…
- FPC 2.8.0 or 3.0.0 schedulling?2
Any news on estimated dates for releasing FPC 2.8.0 or 3.0.0? ----------------- Re: [fpc-pascal] Namespaces Support Michael Van Canneyt Wed, 23 Oct 2013 05:01:33 -0700…
- Lazarus 1.2.6 Release1
The Lazarus team is glad to announce the release of Lazarus 1.2.6. This release was built with fpc 2.6.4. Here is the list of changes for Lazarus and Free Pascal:…
- 512bit (or higher) file encryption4
Need to encrypt file with 512bit (or higher) key. Looking at DCPCrypt but seems that none of them can do that. Any advice? Regards
- Any Email or News client in TurboVision or FreeVision2
Does anybody know of an email or news (nntp) client written in Turbo Pascal's TurboVision, or in Free Pascal's FreeVision. Any links or screenshots would be very useful.…
- Size limits to name child specialized classes2
Nowadays, using FPC 2.6.4, specialized classes have a size limit on names. The compiler joins the the parent and child class names and when the resultant string reaches…
- Trying to register a Windows Service gives error9
I created a relatively simple Windows Service Application using FPC 2.6.4. The application imports CSV data from a monitored folder and updates product tables in a MS…
- Instances of interfaces ?2
Section 7.1 Definition in Chapter 7 Interfaces of the FreePascal Language Reference says "Instances of interfaces cannot be created directly: instead, an instance of a…
- TIniFile: how to save bool as string?8
When I use the TIniFile to save my configurations, it saves the boolean values as 0 and 1. Is there any way to save these values as string (true/false) instead of…
- 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…
