Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2008-11

  1. CGI upload app

    Hi I would like to upload a file through a web page. How can I do this using FPC? Is there any example available? Darius

    Darius Blaszijk, Burkhard Carstens, FOFPC
    20
  2. fpImage resample via interpolation

    As far as I can see, fpImage has for StretchDraw only the TMitchelInterpolation. The current implementation has a few drawbacks: - it creates a temporary image for…

    Mattias Gaertner, Andreas Frieß, Felipe Monteiro de Carvalho
    13
  3. number of cpu cores

    I need a default value of the number of maximum threads. Is there already some RTL function that can be used for that? For example if the program runs on a 2 x quad core…

    Mattias Gaertner, Dariusz Mazur, Florian Klaempfl
    12
  4. Starting out with Free Pascal

    I'm absolutely new to this list... and to Pascal. I was getting pretty good with Foxpro programming when MS bought and then changed the program, eventually to kill it. …

    Bill, Francisco Reyes, Graeme Geldenhuys
    4
  5. How to build 2.2.2-crosscompiler for arm-linux ?

    In the past I built numerous fpc-crosscompilers for arm-linux but now I can't anymore. What I did : Downloaded and extracted fpcbuild-2.2.2.tar.gz make CPU_TARGET=arm…

    Koenraad Lelong, Florian Klaempfl, Joost van der Sluis
    3
  6. SScanf question

    SScanf('123: aaa :456','%d: %s :%d',,@string1,@integer2]); In this situation string1 is aaa. It is correct. SScanf('123: bbb aaa :456','%d: %s :%d',,@string1,@integer2]);

    Gabor Boros
    0
  7. Xlib bindings

    I'm binding xlib to FPC, and the code can be found at http://code.google.com/p/pasxlibbind/ . I'm using the svn for version control over there. I hope that at the end I…

    ik, Graeme Geldenhuys
    2
  8. Calling FPC internal tools

    Is it possible to call FPC internal assembler and/or linker? View this message in context: http://www.nabble.com/Calling-FPC-internal-tools-tp20728954p20728954.html Sent…

    leledumbo, Jonas Maebe
    1
  9. fpc_write_text_shortstr (case sensitive!)

    Where is it defined? I can only find FPC_WRITE_TEXT_SHORTSTR, pointed by itself and Write_Str. View this message in context:…

    leledumbo, Jonas Maebe
    3
  10. MIDI processing unit

    I'm writing a compiler for my own music programming language producing MIDI files as result. Is there any MIDI processing unit for helping me? Doesn't have to be…

    leledumbo
    0
  11. writing to shared memory

    I have the example code working to write and read string to shared memory. I'd like to write and read other things than strings (integers, Booleans, ...) to the shared…

    Tom Carly, Michael Van Canneyt
    1
  12. TProcess problem

    I'm familiarizing myself with TProcess, so I decided to write a simple routine which executes a command and puts STDOUT/STDERR in a stringlist: -------------------------…

    Seth Grover
    0
  13. si_prc.pp or prt0.as(m)?

    Both files define _start symbol. Which one is actually used? Is it possible to use only ptr0.as(m)? View this message in context:…

    leledumbo, Jonas Maebe, Marco van de Voort
    7
  14. Un/De-Format function still exists?

    Result of Format('abc: %d def: %d',[1,2]) is 'abc: 1 def: 20'. It's ok , but I want to do this thing from the other direction. I want to know the integers only and the…

    Gabor Boros, JoshyFun
    2
  15. Linking error using 64bit compiler, but not for 32bit compiler

    When I compile one of my projects I get the following compiler/linking error. Any idea what causes this? If got the exact same FPC 2.2.3 revision for a 32bit system…

    Graeme Geldenhuys, Jonas Maebe
    2
  16. Bootstrapping FPC for x86_64

    I setup a new 64bit server in our company, running Ubuntu 8.04 LTS (64bit). I want to us it as a 64bit testbed for our applications. So I want to compile 64bit version…

    Graeme Geldenhuys, Henry Vermaak, Joost van der Sluis
    6
  17. Verify if string is a valid number

    I would like to verify if a string is a valid number, as in StrToInt will work when applied to it. The obvious way is making a try statement: try StrToInt(TokenStr);…

    Felipe Monteiro de Carvalho, Frank de Groot / Rent-a-Geek, Graeme Geldenhuys
    6
  18. UDF+FREEBSD+FIREBIRD

    library tkes2; {$mode objfpc} {$PACKRECORDS C} function somefn: integer; cdecl; export; begin somefn:= 3; end; exports //I do not do as: // somefn name 'somefn'; //…

    KES, Jon, Jonas Maebe
    36
  19. Intel x86 inline assembler problem

    procedure DumpRegs; var Reg: array [0..7] of LongWord; SReg: array [0..5] of Word; EIP: LongWord; EFLAGS : LongWord; begin asm // save registers while they are not…

    leledumbo, Jonas Maebe
    2
  20. How to execute a command line

    I was asking myself how to execute a command line, so I went to use Unix.shell, but now it seams to be deprecated. What should I be using instead? Not TProcess, because…

    Felipe Monteiro de Carvalho, Jonas Maebe
    1
  21. NNTP client componens for Free Pascal

    Anybody know of a Free Pascal compatible NNTP client (news reader) component? - Graeme - _______________________________________________ fpGUI - a cross-platform Free…

    Graeme Geldenhuys, Jürgen Hestermann, Luca Olivetti
    6
  22. Regular expressions

    I'm taking up the challenge in writing a Free Pascal & fpGUI newsgroup reader. The main reason is really to archive the news content for off-line processing, so that I…

    Graeme Geldenhuys, Lee Jenkins, Michael Van Canneyt
    4
  23. Make FPC closer to hardware

    Would it be a good idea to lower down (again) FPC so that it can be used easier for systems programming? View this message in context:…

    leledumbo, Florian Klaempfl, Frank Peelo
    7
  24. TBufDataset broken in fixes_2_2

    TBufDataset is broken in latest fixes_2_2. Can be reproduce with following code: var s: TSQLQuery; begin s := TSQLQuery; s.Free; end; Compiling fcl-db with debug info,…

    Funky Beast, Jonas Maebe, Marius
    5
  25. re-opening stdout and sdterr

    long time ago I had problems with stdxxx being in non-blocking i/o mode. The suggestion was to close and re-open the channels from the system units init code. I ran into…

    Marc Santhoff, Jonas Maebe
    3
  26. upx.exe identified by Avast as a virus in 2.2.2 Go32v2 distribution

    While scanning for viruses on my PC I got a notification from my Avast antivirus scan that upx.exe was a virus. To check, I looked up upx.exe and see that it is an exe…

    Bob Batey, Jonas Maebe
    1
  27. dynamic arrays behaving funny

    I'm trying to assing dynamic array variables to a record type on the heap and handing that record over to the caller: type TCompoundInfo = record Id: hid_t; Name: string;

    Marc Santhoff, Jonas Maebe
    3
  28. Web-Server not available

    I can't arrive the URL http://www.freepascal.org since yesterday evening! Is there a problem with the web server? I test it with epiphany, iceweasel, konqueror and wget.…

    Markus Glugla, Alexey Taran, Dainius Sakalinskas
    2
  29. Cannot run mplayer with TProcess when options is poUsePipes in Windows

    Following code works in linux, but not in windows. In windows program freeze, or I don't see mplayer. Thanks. program bug; {$mode objfpc}{$H+} uses Classes, SysUtils,…

    Dusan Halicky, Henry Vermaak, Vincent Snijders
    7
  30. debugging version of RTL

    how can I build the RTL and other packages containing debug symbols? Is it sufficient to do sth. like: cd rtl <edit Makefile.fpc setting -gl as compiler option> make…

    Marc Santhoff, Henry Vermaak, Tomas Hajny
    3
  31. Any good Pascal interpreter?

    Better if it supports FPC dialect, too. View this message in context: http://www.nabble.com/Any-good-Pascal-interpreter--tp20336843p20336843.html Sent from the Free…

    leledumbo, Aleksa Todorovic
    2
  32. Help with understanding HeapTrc output

    Sorry, but I know the output below is going to wrap horribly. I'm self-taught when it comes to understanding the heaptrc output. I also couldn't find clear…

    Graeme Geldenhuys, dmitry boyarintsev, Jonas Maebe
    5
  33. TObject

    A have a unit (uSafeVar) with an object. The object has a property "data" of the type "SafeVar_typ" If I do this it works (wSafeVar is called) var p:SafeVar_typ; begin…

    Carsten Bager, Joao Morais
    4
  34. PowerPC: zipper streaming error

    Is anyone working on the unit zipper? I came across a problem when using the zip objects on PowerPC - they don't like files zipped on i386, and i386 don't like files…

    EarMaster - Bent Olsen, Jonas Maebe
    2
  35. a few installation issues (trunc on freebsd)

    I have a few question, regarding my attempts to install fpc from trunc (I read the build faq, yet I have not succeeded...) On a freebsd (7.0) box, I have downloaded and…

    Martin Friebe, Jonas Maebe
    2
  36. widestring related? problem on arm (2.3.1)

    I'm getting a runtime error 231 when starting program on arm. Stems from ANSI2WIDEMOVE in cwstring.pp returning ESysEBADF (9). Do I need to define something on arm for…

    Terry Kemp, Jonas Maebe
    3
  37. Advantages page in website

    What happened to the advantages page in the Free Pascal website? It used to be: http://www.freepascal.org/advantage.html I would like to reference it from an article,…

    Felipe Monteiro de Carvalho, Graeme Geldenhuys, Jonas Maebe
    5
  38. Interfaces inheritance and "Supports" routine

    I've got a question on how does "Supports" function work. Here is the quote from the FPC docs: Suppose I have the code like this: The following call returns True as…

    Vladimir Zhirov, Graeme Geldenhuys, Michael Van Canneyt
    3
  39. cross os symbolic link handling

    is there any function or set of functions for handling symbolic links inside the file system at an os independant level in fpcs libraries? Unix-like systems have soft…

    Marc Santhoff, Michael Van Canneyt, Tomas Hajny
    4