fpc-pascal · 2013-09
- FPC 2.6.2 for DOS/Go32V2 FP.EXE cannot run a second time15
FPC 2.6.2 for DOS/Go32V2 There is the fatal IDE unstability in FPC 2.6.2 under pure DOS. IDE almost always starts only first time (after installation or reboot). I start…
- DOS compiler wiki page: please review5
I decided to start a page for the DOS compiler - as more details become available we can hopefully collect them there. As usual: additions/corrections welcome,…
- Re: build a compiler for GO32v2 under Windows 8 (or 7)17
(first time I am using the mail list ... I may do it wrong!) I have a quite big program (now with more than 200.000 lines), first build with TP7. For example it accesses…
- How to stop a HttpApp via request?13
I'm trying to stop a HTTP server via request. My code is: http://pastebin.com/503S2Nin (or demo in attached) But it returns: "Could not accept a client connection on…
- does Advanced Record constructor automatically zero all the memory space of that record?7
if not, is there a clean and easy way to initialize the entire record memory space to zeros e.g. constructor TMyRecord.Create(TheValue : Integer); begin FillChar(self,…
- read cells contents from .xls file11
File produced by excel 2003. Can anyone tell me the basic ideas, formats, pitfalls - I'd just like to write a short routine & don't want to fight with the complexities…
- GUI confusion21
Hi Everyone I really like the pascal code I have looked at and I am very excited about FPC. I hope this email won't upset anyone, it is a bit negative. I don't really…
- how to directly access field/record value of TBufDataSet?11
Since TBufDataSet is in-memory, to speed things up, how can I directly access the N'th record and M'th field's value as Variant? At this stage, I only need to read the…
- how to speed up lazarus compilation and debugging12
I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2 's compilation and debugging a lot slower than Delphi 5. Are there any settings that I can make…
- sizeof(Enumerated type in Delphi 5) sizeof(The same type in FPC)1
var G : TAutoRefreshFlag; //where type TAutoRefreshFlag = (arNone, arAutoInc, arDefault); sizeof(G) returns 1 in FPC if defined type TAutoRefreshFlag = (arNone,…
- property TField.AutoGenerateValue missing in 2.6.23
I just noticed the above property is missing in FPC 2.6.2 I am porting some old delphi code to FPC and noticed it. If I simply ignore this property value (always assume…
- Status of UTF83
I wanted to get the status of WideString support. Specifically Multi-lingual (Ansi/UTF8 strings) using Threads. I noticed that FPC is now automatically converting…
- class inheritance and type incompatibility20
I have the following program: 1 program test; 2 {$mode objfpc}{$H+} 3 uses tree; 4 type 5 TIntTree = class(specialize TTree<Integer>) 6 public 7 function Clone:…
- SSE instructions1
Are there any plans to add support for SSE intrinsic instructions, similar to MMX?
- generic class helper and class references1
While playing with generics (ref. class inheritance and type incompatibility), I have an idea to use "generic class helper" to overcome the problem that generic methods…
- Constants and proc types1
why I cannot compile this (FPC 2.7.1) type tproc_type=procedure; procedure xxx; begin end; procedure yyy; begin end; const type_list:array [0..1]of…
- MSEide+MSEgui 3.02
MSEide+MSEgui version 3.0 has been released: http://sourceforge.net/projects/mseide-msegui/ Have a lot of fun! Martin
- TIP: fcl-web [trunk] usage with FPC 2.6.23
I've been in a private conversation with Michael van Canneyt about fcl-web changes. He was kind enough to oblige with my requests. In due time those changes should make…
- StrUtils.RomanToInt oddities47
RomanToInt acceps rather ludicrous values: RomanToInt('MDCLXVIVXLDM') = 2209 RomanToInt('IIIIM') = 1002 //calculated as 3 + (1000-1) Both examples represent invalid…
- where is the sqlite3.so located in debian?2
In debian, I have already apt-get install sqlite3 and I can execute the command sqlite3 freely. I know it is located in /usr/bin/ but I cannot find sqlite3.so to passed…
- RFD: CardDAV support library for FreePascal, call for ideas16
since I have not found anything on CardDAV related/written in/for FreePascal/Lazarus, (haven't googled with Delphi keyword thou) I'd like to send out some smoke signals,…
- Memory leak in PascalScript0
Can you help me to fix this issue?: https://github.com/remobjects/pascalscript/issues/61 Thank you! Silvio Clécio My public projects - github.com/silvioprog
- record byte alignment1
I wonder what is the byte alignment of a NON-packed record? Is it always 4-byte, or 4-byte on 32-bit platform, 8-byte or 64-bit platform? Xiangrong
- Incompatible type for generics?8
I wrote a TTree generic class, the code is here: https://github.com/xrfang/fpcollection/blob/master/src/units/tree.pas While using this class, I encountered the…
- RTTI Attributes1
I did some google searching which turned up very little so I decided to ask my question here. What is the current status of custom RTTI attributes in fpc trunk? Fot…
- Re: Problems reading some of the messages from this mailing list2
From: "Tomas Hajny" So I can't do anything, can I? Unfortunatelly there are more users that sends their e-mail that way, specially chinese ones. Thanks. Guillermo…
- Re: Problems reading some of the messages from this mailing list2
Sorry, Philippe, but I can't read your messages. :(
- FPC happily eats wrong parameters5
When calling "fpc -d foo test.pas" there are two mistakes: First the -d parameter is missing a value, which fpc silently ignores. And second there are two files to…
- Is it possible to know the data type of a specialized generics class?4
say, I have a class TTree<T>; in the destructor of that class, is it possible to know the actual type of T? I want to do things like: generic TTree<T> = class public…
- Socket error messages3
How does one convert from the numeric value returned by SocketError to the name of the error (specifically, to e.g. EsockEINVAL rather than EsysEINVAL, i.e. to be in…
- function param and TVarRec3
If you declare this: procedure proc(param: array of const); Then you can pass any type of varaible to param, however, only in an array, such as proc([1, 2]); Is it…
- Problems reading some of the messages from this mailing list3
I'm receiving some of the messages from this mailing list coding in an odd format: A block of characters and digits without any sense. For example, the one I quoted at…
- FPCUnit test + raise E;12
1) I have a code like that: procedure TghSQLConnector.Connect; begin try FLib.Connect; except on E: Exception do DoOnException(E); end; end;…
- Clone a instance of object22
I have objects (classes) derived from base one TBaseObject = class(TObject) public constructor Create; virtual; function Clone:TBaseObject; end; TMyObject =…
- Nested comments4
I realized FPC supports nested {} comments by default. SynPdf, a Synopse PDF engine http://synopse.info/fossil/wiki?name=PDF+Engine has '{' characters inside comments…
- bridging an C++ shared library statically8
I need to use a C++ so file in FreePascal. I have written a C wrapper for it, which successfully connected to Pascal. Now my question is, can I use the $linklib…
- represent data string in hex?11
i have a static array of strings that i need to fill as hex bytes... i can do this in decimal but it would be easier to convert other data if i can do it in hex since…
- Bug in $linklib?1
I use $linklib to link my fpc program with a C++ so file. I found that the $linklib directive does NOT conform with ld specification. This is what I did and found:…
- FPCUP Windows now has Go32V2 cross compiling support4
Recent posts have lead me to look again at my FPC/Lazarus downloader/compiler fpcup [1] to see if I could get cross compiling going from win64 or win64 to Go32v2. This…
- lnet for TCP daemon52
Is it feasible to use lnet for a simple TCP daemon on Linux, i.e. wait for a connection on a predefined port, read as much data as is available, repeat? And if so, what…
- Error linking with C code4
I am writing pascal wrapper for a C library called "CTP", which is used in future trading. My project is here: https://github.com/xrfang/CTPas Compiling the interface…
- Generic TFPGList<Record Type> gives me compiler error: Operator is not overloaded6
I have this: uses fgl; Type RScene=record ID : Word; Name, Category : String; end; TSceneList=specialize TFPGList<RScene>; The error is: Operator is not overloaded:…
- FPC GO32 2.6.2 wrong result from SecondsBetween5
I am doing something wrong? When I encode the date and time then for SecondsBetween I get 59 instead of 60 and for MilliSecondsBetween also. When I encode only time then…
- Object constructor5
Could anyone please explain this: 5.4 Constructors and destructors <http://www.freepascal.org/docs-html/ref/ref.html#QQ2-64-77> As can be seen in the syntax diagram for…
- fpc 2.6.3 building i386 crosscompiler fails1
Hi! Tried to build the current svn of FPC 2.6.3 (svn Revision 25507) on my Linux X86_64-box. I did: make distclean make all FPC=<Current2.6.3Compiler> sudo make install…
- Parser bug or what?4
Can anybody tell me whether I stepped on a bug or I am just forgetting some Set / Enum property? I made a Set to iterate with For..in, but I accidentally used a Dot…
- Get empty memory quickly or... an empty file9
I'm working on implementing zip64 support and trying to test things by compressing large files or streams using FPC's zip code. Currently using this to get a huge…
- returning a generic object?5
I have this generic class: type generic TTree<T> = class private FItems: TList; ... ... public Data: T; ... ... function FirstChild: TTree; ... ... end; function…
- DoDirSeparators and special filenames on Windows41
This is a folowup off a discussion in LazarusDev mailinglist. It concerns "sanitizing" filenames on the Windows platform. The Windows API for handling filenames in most…
- weird compile error message8
Could anyone explain the error in attached image? Thanks a lot.
