fpc-pascal · 2012-04
- jsondataset: Memleak0
Please see: http://bugs.freepascal.org/view.php?id=21900 Marcos Douglas
- Compiling from and to memory15
I'm currently creating a build chain where FPC is the last step, the one producing a DLL for Windows, x86 and x64. In front of it in the chain, I have designed a…
- How to install another version of fpc?2
I am running linux and already have fpc installed but i want to install side-by-side a newer verson of fpc ... I downloaded the sources did make all && make install…
- Error in my mind or typo in sqldbtoolsunit.pas?1
I'm working on improving bufdataset testing in the dbtestframework, documenting the framework a bit more. (Attached FYI my current version of the readme; comments…
- cross compiling - easier than expected - wiki needs update?5
I just thought I kill some time investigating cross compiling from i386-linux to i386-win32 and hada look at the wiki page http://wiki.freepascal.org/Cross_compiling It…
- making FPC more code optimized18
Here is something that I'm asking without really know anything about the subject, so please bear with me. I'ved asked few places that works with Pascal (Delphi and FPC),…
- Can it map class type as key?10
I'm trying to use template in fpc 2.6.0. I can map class type as value as above code can be compiled. But if I uncomment the declaration of tIS -- map class type as key,…
- heaptrc question3
I am experiencing strange heaptrc output can someone please explain what sort of error could trigger this Heap dump by heaptrc unit 6590 memory blocks allocated :…
- SQLDB: logging all generated SQL?6
I vaguely remember somebody mentioning SQLDB has the option of dumping to a log all the SQL it sends to the database (in other words: logging all SQL sent to the…
- make install changed/broken?3
Has something changed with 'make install'? Instead of copying files it recompiles and fails. Mattias
- Compilation progress4
Is there a way get progress information output by the compiler while building a project? I tried the -vt option, but I can't figure out a way to parse this and get…
- Testing existence of a file at compilation time1
Is it possible to test for the existence of a file, directory or package at compilation time, i.e. {$if exists() or similar? The specific scenario I'm looking at is…
- typesafe typecasting1
While translating some headers I have run across the following problem (I am sure had this in different variations many times before already and always lived with it and…
- Program without window but messages13
I wanted to write a program that has no window but may show messages to the user. I have lots of such programs written with Virtual Pascal but I am struggling to do the…
- RemoveDir: Error: Identifier not found2
If I hit Alt+Up on "RemoveDir" within my program I am moved to D:\Programme\lazarus\fpc\2.6.1\source\rtl\objpas\sysutils\diskh.inc(21,10) with the function header…
- does disconnected tLSocket auto destroy in lnet1
I'm using tLTcp with tLEventer. I've set tLTcp.eventer to the associated tLEvent object and call tLEvent.callAction to wait for new events. After a socket disconnected,…
- Sending break on (Windows) serial comms3
Marco, I see you had a StackOverflow question on this a year or so ago. Did you ever get anywhere with it in practice? I'm about to hack a SerBreak() into my…
- Errors compiling fixes_2.6 on win64: forgot to include dblib for mssqlconn?5
Running fpcup (64 bit) on my Windows machine gives errors with fpc fixes_2.6 (r21000/21001): C:/development/fpc/compiler/ppcx64.exe -Ur -Xs -O2 -n -S2…
- Commercial support for Lazarus/FPC4
Hi all I am considering to subscribe to commercial support in FPC/Lazarus, but I don't have a clear picture what actually support is :) I am looking at…
- Inline assembly using absolute dword ptr6
I'm trying to compile the following code under FreePascal 2.6.0 : function MyGetCurrentThreadId: DWORD; assembler; asm {$IFDEF WIN32} push ecx mov ecx,fs:[dword…
- header translation question: I need an int sized boolean8
I have this from the GLIB heads: typedef int gint; typedef gint gboolean; Now I need a few packed records with such gboolean types in them. On my i386 I am now just…
- Open vs dynamic arrays7
I know this is an area of some confusion, and the more explanations I read the more I'm confused. I've got a procedure like this procedure ClrDebug(const panels: array…
- Default font name1
Most of controls (or canvas) have font name "default". How to get exact name of this font? There is GetFontData(Button1.Font.Handle).Name function but it works on QT…
- SQLDB GetSchemaInfoSQL for indexes etc?45
In sqldb, this: type TSchemaType = (stNoSchema, stTables, stSysTables, stProcedures, stColumns, stProcedureParams, stIndexes, stPackages); is used in the…
- Resolving a local hostnames to an IP address8
I need to resolve a hostname to an IP address, to pass to a minimal telnet implementation that expects that as its parameter. The reason that I'm not using something…
- RGB32 video0
how to generate a RGB32 video to be consumed by, lets say ffmpeg ? i want to programatically generate video in some know format and rgb32 seems like the most simple to…
- Converting big-endian signed 16bits values to fpc integer6
I'm dealing with a large number of data coming from an external device. They are big-endian 16 bits signed numbers, which must be converted to integer and to real to…
- Heads up: started on MS SQL Server+Sybase ASE support for LazDataDesktop and FPdatadict0
Just to let you know, I've started working on getting support for the new Microsoft SQL Server and Sybase ASE connectors into Lazdatadesktop. For that, I've started…
- Looking for NSOpenGLView example2
I'm looking for an example of how to use NSOpenGLView. I would like to create a "native" opengl window on Mac. Sofar I have found only some snippets but nothing that…
- Text matching for configuration files etc.3
I know that there are algorithms which given a text fragment will find the "best fit" from a number of candidates, based on how many substrings have to be deleted or…
- ReadComponentRes() implementation and documentation0
Two problems here: 1) The documentation is very sparse on this method, and the parameters and return type are not documented at all…
- Problems with assigning pointers9
I have some issues when assigning a pointer to a pointer variable. Consider this: TVertex = record x: double; y: double; end; PVertex = ^TVertex; TEdge = record v1:…
- for FPC JVM users: Small tool to help converting R.java to Pascal0
I've developed a small tool to help converting the autogenerated R.java to Pascal. It's made in a quick and dirty way, but it works. It could be added to build script to…
- [Help] fppkg on Windows3
I get the following error when trying to install “lazmkunit” or “gecko” using fppkg. =========================== C:\lazarus\fpc\2.6.0\bin\i386-win32>fppkg…
- compiling jvmbackend2
I'm trying to compile jvmbacked (once again after a long time). It seems to work well at first with the following cli make: sudo make CROSSOPT="-O2 -g…
- Best practices on using classes for subroutine libraries1
When I need a variation in procedures (standalone, not a class or object procedure) I use across my applications, I often find it more convenient to create a copy the…
- Testing shared libraries compiled with FPC/Lazarus under Linux5
Is it possible to test a shared library compiled with Lazarus/FPC under Linux without copying that library to /usr/lib or fiddling with the OS configuration to locate…
- Bug #0021680: Mixup of library imported/exported function names2
The following is related to bug #0021680: The idea is to let libraryB intercept calls to libraryA. 1- How can this be accomplished in Linux? Using ordinals would have…
- XML parser6
Hi I have a new job. Now I am looking for a proper XML parser for Delphi, for big XML files. The default Delphi parser, using MS DOM, chokes badly. 4 GB memory is not…
- How to find a directory?2
So the Powers That Be have decided that FSearch should never find a directory. Fantastic. So how *do* I find a directory (for example, to confirm if one exists?)
- connect to postgres db with fpc Mac OS X LION0
Hi all I thank you in adavance for your support :-) I can't connect to postgres db in foc /mac osx Liion I get the message fe_sendauth: no password supplied My postgres…
- Re: XML parser (fwd)0
Mailed to me in person, probably meant for the mailing list. Michael. ---------- Forwarded message ---------- Date: Fri, 6 Apr 2012 13:24:58 +0200 From: David Butler To:…
- CGI under Linux using FCL-Web11
I just started to use FPC in a project requiring a Webinterface. When porting the Lazarus/Win32 fpc-web examples (worked fine) to X86/Linux(Ubuntu) and Arm-Linux, I…
- tiOPF: automapping for m-n relationships4
I have the following tables in sqlite (in create table statement): CREATE TABLE users ( password varchar(30) ); CREATE TABLE roles ( name varchar(20) ); CREATE TABLE…
- Library with XMLHttpRequest functionality?1
Is there some library in FPC/Lazarus which implements XMLHTTPRequest functionality? Frank Church ======================= http://devblog.brahmancreations.com
- Help: New install problems3
I have installed fpc from sources before but it's been a while and I've forgotten how to get it done, or perhaps something has changed and need some help. When i am…
- Re: Fileread function (leledumbo)1
Yes, it is possible? Example, is it correct?: FileWrite(Arch,b,40); // Write 40 bytes FileRead(Arch,b,40); //Read 40 bytes or, is this correct?: FileWrite(Arch,b,40); //…
- MSEide+MSEgui 2.8.2, MSEgit 1.21
MSEide+MSEgui 2.8.2 has been released: http://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/2.8.2/ http://gitorious.org/mseide-msegui There is a new release…
- Fileread function1
The FileRead function, can move the file pointer at the beginning, when at the end? Thanks.
- Win64 and currency4
I encounter strange thing under FPC 2.7.1 and Win64 target. Can anybody test this program: ======================== const test: array[0..0] of currency = (-10); var…
