fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Problem linking a Windows DLL4
I have a plain Windows DLL made in Visual Studio C++ and working with other C applications. When I try to statically import it into an FPC program I get the…
- DBF Field name length and fpdbfexport12
If I Googled correctly, the following field size limits are present for the various DBase formats: 3: DBase III: 10 characters 4: DBase IV: 10 characters 7: DBase VII:…
- 2 bugs ???4
I am trying to learn freepascal generics and I think that I have found 2 bugs. Tested with FPC 2.4.4 Linux x86 ================== = BUG 1 - with SizeOf =…
- TField.Attributeset explanation?6
Working on the SQLDB Tutorial1 on the wiki. I'm struggling with getting dbgrid-driven inserts to work. Using Firebird employee.fdb CUSTOMER table; CUST_NO is an integer…
- FPCDocs Git repository2
While there are git repositories for FPC and Lazarus, there doesn't seem to be one for FPCDocs. Is a public git repository available for FPCDocs? The reason: I'm looking…
- Improved LazUpdater - testers welcome on Windows0
I've been improving the LazUpdater FPC/Lazarus SVN downloader/installer written by Ingo Steiniger for a while now. I didn't get any reaction from the original author…
- Converting String to array of Char generates duplicate local var0
Hello. I have definitions: PluginDir: packed array [0..Pred(16384)] of AnsiChar; sName: AnsiString; When I assign AnsiString to array of Char compiler generates code…
- 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…
