fpc-pascal · 2011-08
- Redirecting heap trace output to stdout9
The only available function for dumping heap trace output is DumpHeap, which outputs to stderr. However, it's problematic to use it in a web environment, because web…
- Working Free Pascal android JNI example42
I've done a working Free Pascal android JNI example (with working .apk for current ARM-based Android device of the second device generation (because with VFPv3, so…
- FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi13
I got an error trying to compile FPC 2.5.1 (trunk at revision: 18036) on WinXP-SP3. Before update, I ran 'make distclean'. Console output: [snip] Start building package…
- Can't get error messages or anything with F121
I'm running 2.4.0 and can't get error messages or anything from the F12 Compiler messages key. What am I doing wrong?
- Funambol/syncml and fpc0
Has anyone used funambol/syncml libraries or an FPC equivalent to talk the syncml protocol? I've got a Firebird address database that I would like to sync some day using…
- FP IDE - jump to implementation4
Is there a keyboard shortcut for FP IDE (text IDE included with FPC) to jump from the interface section to the implementation section of a method. Like Delphi or…
- FP IDE keyboard shortcuts don't work under Linux3
I'm using Linux (ubuntu 8.04.4) with FP IDE (text mode ide). I went through the "learn keys" dialog and it detected all the keys I pressed. Yet when I'm in a source code…
- New Dispose and FreeMem and objects3
Hi is the following allowed or will it cause problems: type PObj = ^TObj; TObj = object constructor Init; end; var Obj : PObj; begin Obj := new(PObj, Init);…
- FPC i386 and x86_64 using the same source10
I want to use a single source for i386 and x86_64 in the FPC as well as Lazarus. So, I downloaded a clean and fixes_2_6 and ran make x64 without 'install' parameter. I…
- make install2
For developers that use FPC sources from SVN, like me, I ask: 1. There are some advantage to use 'make install' to compile FPC? Which? 2. There are some advantage to…
- Strange issue with threads7
While I was testing an unrelated issue, I discovered this: under windows, with fpc 2.2.4, I try to start 10000 thread (I know it's absurd but it's just a test) and have…
- Division by Zero2
WriteLn(FloatToStr(100 / 0)); This code prints on the screen "+Inf", but I think it should be "NaN". Is this a bug or a special case in computer arithmetic? thx Michael
- Is such memory statistics possible?23
reading the recent discussion about lazarus memory consumption, I thought about collecting some statistics. The idea is similar to some disk utilities that collects and…
- Suggestions on array allocation pattern/rules of thumb?0
In Lazarus I found (pseudo)some code like this: procedure DoSomething(...) var v_Results: PInteger; v_ResultCount: Integer; begin v_Result := nil; PrepareData(...,…
- TTimeStamp and TBCD properties of a class cannot published?0
I am developing a new app using a persistence framework initially developed for Delphi. The following code doesn't compile: published property AsTimeStamp: TTimeStamp…
- fpmake exception3
Hello While building fpc on my arm netbook, I found this crash in fpmake: EAccessViolation : Access violation $00027448 FIXPATH, line 1737 of src/fpmkunit.pp $00039E24…
- Virtual inline methods4
ZeelandNet Webmail I'm porting a piece of code from C++ and there they use virtual inline methods. I tried it in FPC but it accepts either virtual OR inline methods. Is…
- random numbers negative5
I have a doubt. With the random function, Can you generate random numbers negative? Begin randomize; Writeln (random (-127)) / / 0> = n> -127 End. thanks.
- Patch: new XML export for FCL-DB ready for inclusion, issue 19790 - includes Delphi Clientdataset38
Update: includes first stab at Delphi Clientdataset. Please test with various datatypes as I haven't been able to map all of them... Hi list (& Michael Van Canneyt ;),…
- Non-standard baud rates in OS X | IOSSIOSPEED IOCTL1
Apple have define an IOCTL (since Tiger) called IOSSIOSPEED which facilitates non-standard baud rates. They publish a C example which explains it:…
- Assigning value to ftVariant datatype & varbytes - still stuck31
Free Pascal Compiler version 2.5.1 [2011/08/04] for i386 While improving my fcl-db XML export code, I'm testing with ftVariant types in a bufdataset: FieldDef :=…
- ftGuid displaytext & output2
While trying to export dataset data to XML, I use this for ftGUID fields: FNode := Foutputdoc.CreateTextNode(Utf8decode(GUIDToString(TGuid(EF.Field.Value)))); This works…
- Using "array of xxx" in function call, Delphi compatibility7
Hi While reading a bug report I made the following experiment with Delphi 2009 and then with Lazarus + FPC 2.4.4. TMainMenu.Items is of type TMenuItem. TMenuItem has…
- Explicit encoding of LF in XML3
Looking at multiline support of text/string cells for export to Excel XML format. My code, such as: TDOMElement(FieldNode).SetAttribute('ss:Type', 'String'); FNode :=…
- XMLXSDExport: line ending in Excel cells2
I've been refactoring the XMLXSDExport code and am now busy fixing some bugs based on testing. I'd appreciate your input. In Excel text fields, you can generate a line…
- Should Lazarus and FPC release library updates separately from product updates?1
Whenever updates are made it is difficult to tell whether they are due to updates or fixes in the libraries, ie FCL, LCL etc or the product ie the Lazarus IDE and the…
- The fpOpen call on a serial port blocks on a Mac. Why?2
I am using the latest synaser (007.005.002) from the synapse library which works just fine with (USB) serial ports on Linux and Windows but Mac OSX 10.6 it is proving…
- Where's my OSX window dressing?2
I'm new to OSX so bear with me. Something has changed but I can't tell what. The consequence is that my Lazarus/FPC generated OSX applications are now missing their…
- Patch to add GLX 1.4 support0
For people working with new OpenGL features: I just submitted a patch to upgrade our GLX unit to GLX 1.4, add some new GLX extensions, and add comfortable functions to…
- Linking generics with long names with STABS gives Undefined Symbol0
Hello. I have the following program: program atest; {$mode objfpc}{$H+} uses Classes, SysUtils, fgl; type TMyClass = class end;…
- timer_create on linux11
I tried to implement linux timer with timer_create and signals, but an exception always fired (External:SIGUSR1). It was a lcl program, but I narrowed it to a console…
- Quitting simplehttpserver1
ZeelandNet Webmail I've been trying the simplehttpserver and found a problem, but I have no idea what is goiing on. When I request a page, everything works fine, but…
- FreePascal as an embedded language in Firebird: possible and desirable?7
Hi FreePascal and Firebird people, (Cross-posted to the FPC and Firebird Development mailing lists) 1. Background ============= For the upcoming Firebird 3.0 database…
- Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?15
Is anyone on the list doing this? If so, how did you set it up? The information on the FPC wiki and elsewhere in the lists is woefully out of date. Many thanks, Bruce.
- Suggested fix for problem make install trunk FPC: trailing backslash in directory specification0
Just tried updating FPC sources and compiling (32 bit) on Windows Vista x64 and got an error and a solution.…
- {$R in arm-linux2
Is {$R something.lfm} supported in arm-linux? I am getting these errors: Hint: Start of reading config file /home/felipe/.fpc.cfg Hint: Start of reading config file…
- What are the changes between FPC 2.4.4 and 2.4.5?1
What are the changes between FPC 2.4.4 and 2.4.5? I haven't seen the announcement on 2.4.5. Is 2.4.5 for bug fixes, additional library facilities or both? Frank Church…
- Extended LazUpdater available: cross-platform install of SVN/Git FPC/Lazarus0
I've extended LazUpdater. This program allows you to download and compile a subversion or git version of FreePascal and Lazarus in an easy way, without fiddling with…
- [Semi-OT] How to get remote Git revision number (or last update date) using FPC+git executable2
I'm working on expanding the LazUpdater tool, so it can download and compile an entire working installation of FPC&Lazarus from scratch on Windows. (It downloads…
- FreeVision usable in a client/server database application?8
I'm looking into converting a half-finished small timekeeping/billing application of mine from .Net to Lazarus/Freepascal. It runs on SQL Server 2008. I'm thinking about…
- web app and application persistency17
This is kind of a theorical question, but I though I'd ask before starting to code =) Basically I have a desktop app which I need to retrofit into a web-app. My idea is…
- FPImage and WebP support6
Has anybody started work on supporting WebP image format for FPImage? http://code.google.com/speed/webp/ - Graeme - fpGUI Toolkit - a cross-platform GUI toolkit using…
- x86-64 vs x86_64 vs x642
I searched the FPC Programmer's Guide and Users Guide, and nowhere is there a definitional of description explaining the difference. So here is to anybody that knows:…
- Best optimizations for Intel Quad Core CPU0
I know when deploying an application, it is always best to be conservative with the compiler optimization options - thus your application can run on most CPU's out there…
- Trouble setting/getting ftVarBytes field data in TBufDataset4
I've got trouble finding out how to fill and retrieve data for a ftVarBytes field in a TBufDataset. .AsString doesn't seem to work well - if I fill it with the string…
- Is there a way to create a Firebird embedded database programmatically?12
When using the Firebird embedded database, it's nice to be able to create the database using only FreePascal/Lazarus. Is there a way to do this, e.g. using the SQLScript…
- Unicode output on console works for me on Linux, not on Windows4
(Reposted from the forum) I tried to output Unicode text to console on English Windows Vista (using Lucida Console font, which shows Greek and Cyrillic characters).…
- How to use tilog from tiopf2?0
Does anyone know how to use this? I tryed googling, but didn't have much luck ... Felipe Monteiro de Carvalho
- sdlutils on linux 64 bits1
I was trying to run the example from [1], but I have noticed fpcmake from sdl package does not compile sdlutils for my environment, Linux (ubuntu 11.04) 64 bits.…
- Proper way to assign data to fields & documentation0
(Reposted from the forum; I think I might actually get a response here ;) While writing a test program with TBufDataset, I'm trying to create a dataset with as many…
