fpc-pascal · 2010-05
- timing again12
I posted a question about timing some time a go and got an answer; but let down for a while because other problems required my attention. So, I need a simple func to get…
- Text relocation in x86 binary lib14
Hi! If I run an application which uses a library developed with FPC on a x86 plattform, the program gets killed by SELinux because of text relocations inside of the…
- <time_fraction>Between bug?9
Try the following code snippet: uses DateUtils; var a,b: TDateTime; i: integer; begin a := EncodeDateTime(2010, 1, 1, 0, 0, 0, 0); for i := 0 to 9 do begin b :=…
- power?5
// a & b are ints n := a ** b; // error: operator is not overloaded n := power(a,b); // error: identifier not found "power" Conversion to real does not help. How can I…
- unit export control2
I'm converting a few components, first developped in independant programs, into units. I have 2 issues in the process. -1- internal dependency How can an interface…
- casting back a pointer to original type11
Say I store class instances of various types in a TFPList. All happen to be descendants of same superclass C and each one has a specific method "text". When retrieving…
- fpweb fcgi: auto shutdown feature10
After a bit studying fpWeb package, especially the FCGI application, I have a feature request to it. Would you (Joost? Michael?) please add auto shutdown (after some…
- Comedi Lib Header translation, was: h2pas enum error4
thank you Henry, I check this out. the comedilib.h has a "include comedi.h" statement so I guess I need to translate comedi.h to a unit comedi.pas and include it in…
- FPC bug or brain bug ?10
I don't understand why compilation of the program below failed in fpc and objfpc mode. In tp and delphi mode it works as expected but in fpc and objfpc mode the compiler…
- stuck with untyped pointer16
While waiting for more information about how to use "associated objects" with TStringList, I started to implement // lists for names (TString) and values (TFPList). This…
- Re: ISO Standard Pascal I/O1
Me: Jonas: I can live with that, but it would save newcomers a lot of trouble if the documentation were a bit more upfront about what FPC is not. Just saying it…
- flexible record design6
I'm looking for a "convenient" way to implement a type for kinds of flexible records. "Best" means simple and efficient. A flexible record is a kind of set of name:value…
- Re: fpc-pascal Digest, Vol 71, Issue 692
OK, I give up. How do you handle standard input and output files in FPC? When I write something like: nextcharacter := input^ I get "error: 1: Illegal qualifier". Does…
- $CODEALIGN / Dynamic Arrays1
Does the $CODEALIGN (http://www.freepascal.org/docs-html/prog/progsu9.html) directive influence dynamic array memory layout ? I need an an aligned dynamic array of…
- Anything like TRichView?2
Is there anything like TRichView (www.trichview.com) for Lazarus/FPC? Doesn't need to be as complex as that one. Can be much simpler, but TMemo is too simple. ;) CA
- Anything like TRichView0
Is there anything like TRichView (www.trichview.com) for Lazarus/FPC? Doesn't need to be as complex as that one. Can be much simpler, but TMemo is too simple. ;) CA
- CGI file upload74
How do you get cgi uploads to work?? Im using TModuledCGIApplication procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject); begin // upload handling…
- Executable stack in shared library12
Hi! I package a Freepascal project for Debian which uses a shared library. If I run the quality analysis on those packages, I get a warning, that the shared library has…
- problem linking when using "cthreads" when cross-compiling for arm2
After doing some research (mostly reading http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM) and experimenting, I am now cross compiling for ARM Linux from…
- Linking FPC code to a C program7
is it possible to link FPC compiled units to a C program on Linux? I'm not able to figure it out. FPC uses some strange way to name symbols and whatever I try, I always…
- strtodate on linux2
I've used strtodate to convert 01/02/2010 on windows ok, but it fails with 'Invalid date format' on linux. anyone got any ideas why this happens? - V
- buildfaq.pdf - about different starting compiler and generated compiler1
I wonder if this sentence from the buildfaq is always relevantt : If I build FPC from the trunk (2.5.1 currently) and set explicitly the FPC binary to the 2.4.1…
- Installing New Components (0.9.29/2.4.1)0
On investigating this problem in more detail, it seems to be associated with the following circumstances :- 1) It is when trying to install in Lazarus 0.9.29 / FPC 2.4.1…
- benefit of "cross" string added to compiler name?2
I am not comfortable with make and I was looking for why i get for example "ppcrossarm" if I cross build with a "one line" like make clean all install CROSSINSTALL=1…
- CGI application8
This may not be the right place to ask, but I'm really stumped and would much prefer FPC over PHP. Can someone point me to how I can make a CGI app that outputs the…
- ftp server4
Hi May I know if there are classes to implement an ftp server using fpc on Windows? Warm regards Nataraj
- Re: fpc-pascal Digest, Vol 71, Issue 501
thank you for your fast response. Sorry to say, that I don't understand what you suggest. Could you explain it a bit more ? Thanks a lot Hartmut Hartmut Eilers…
- portable SelectText replacement1
I have the following code which I want to port to Windows, but I have no idea how the functionality of SelectText may be done in Windows. I googled a lot but…
- Crosscompile FPC0
for one of my projects I want to have a build environment to build the source for the following platforms: Linux ARM; Linux i386, Linux X64 and Windows i386 the…
- TComponent with Corba Interfaces3
I'm using TComponent has one of my base classes, but extending my classes with Corba style Interfaces. Will this not conflict with TComponent which already uses IUnknown…
- sentinels, "marks", enumerations0
[follow-up from the thread about "void"] To favor the use of custom sentinels, I'm thinking at a Mark type. This is not strictly necessary, since the user can build…
- Stack fault under WinCE0
I am getting a stack overflow under Windows CE and I am rather lost about what it could be. Sure it could be an infinite loop, but the app doesn't hang, and the same…
- Remote Thread creation and function calling0
I have recently worked on a project that required creating a remote thread in another Process. The thread is injected by allocating memory in the target process and…
- Main thread wait and CheckSynchronize7
I have a seemingly simple question which nevertheless is giving me headaches: I have a main thread which does nothing but [1] execute CheckSynchronize, then [2] check…
- What is the lowest MS-DOS version supported by FPC?4
I've tried googling and searching FPC mailing list for information about this one, but I found nothing. I just found in http://www.delorie.com/djgpp/v2faq/faq3_1.html …
- Execute commands in Windows1
To execute commands in Linux it goes with fpsystem(); Is there a similar function for Windows?
- fpc-xml: SAX_HTML parsing "script" tags2
Hello Is there any known way to parse html files with: <script> some script with tricky symbols , like "< >" that ruins the parsing </script> tag? I've not found any…
- question about class2
I'm trying to transform a manually implemented type, with pseudo-method as funcs/procs, into an fpc "class" type; and facing numerous issue: namely 3 whole pages of…
- TAP-Win329
Anyone knows how to use it from pascal ? I am even willing to pay for a component that simplifies TAP-win32 use.
- FPC not mentioned on JSON website?8
Can somebody from the FPC team contact the JSON website [http://www.json.org/] so that they can list Free Pascal Compiler's fcl-json package under Delphi/Object Pascal…
- a few trivial questions18
* TFPList Is there another way to traverse a list than for i :=0 to (list.count - 1) do ... What about list.high? Also, is it possible to set a list's base index to 1…
- Does FPC has consts of portable OS error codes?8
As the title says. :-) I mean
- annoying gdb bug fixed3
For those of you interested, in the GDB 7.1 release there is a bug which prevents "var" arguments from being "print"ed correctly in GDB. I logged a bug for this…
- Installing Component Packages0
It is a component previous written (and modified by me) for Delphi and transferred to Lazarus. It originally worked on 0.9.26/2.2.2, and still does on one computer. I am…
- Installing Component Packages (ex Clipboard on WindowsCE)2
Thankyou, Felipe, for your comments concerning multiple versions of Lazarus. I am now using only one (different) version on each computer. This refers to your comments…
- class & object3
Below two quotes from the ref manual: http://www.freepascal.org/docs-html/ref/refch6.html#x67-750006 << In the Delphi approach to Object Oriented Programming, everything…
- UTF8Decode9
When compiling this program http://www.conoce3000.com/Test.pp in Windows receive the following error: Test.pp(4,11) Error: Can't determine which overloaded function to…
- XML Iteration18
This isn't still true for latter version of FPC like 2.4.1, right? http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes "A quick note on navigating the…
- Generic enumerators3
Sample code for someone in need of generic containers with generic enumerators (no biz/ads there):…
- Clipboard on WindowsCE3
Does anyone know how to activate the clipboard when programming for Windows CE? I can do it OK when programming for Win32 etc, but not for WinCE. The message when the…
