Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-01

  1. Size of program vs library ?

    Hello. Here size of "nude" program and library compiled with fpc 2.7.1. Why is it a so big size-difference ? Compiled with => fpc 2.7.1 => linux 64 Compiler parameters :…

    Fred van Stappen, fredvs, Henry Vermaak
    40
  2. Something like TProcess.Environment for libraries ?

    Hello. If you are using a TProcess and your executable depends on libraries, there is TProcess.Environment to define the library path, example: AProcess.Environment.Text…

    fredvs, Jonas Maebe
    7
  3. FPC 3.0.X next to 2.6.4 on Linux

    I have installed FPC 2.6.4 for a long time on my Linux with install.sh script in /usr dirs. I would like to install FPC 3.0.0 but keep 2.6.4 as "default" version due to…

    Krzysztof, Fabio Luis Girardi, Jonas Maebe
    9
  4. Any use notes for javapp

    So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool? - Jon Jon Foster JF Possibilities, Inc.

    Jon Foster, Jonas Maebe
    2
  5. fpc and voip ?

    Hello. I have lot of success to play mp3 files with library mpg123+portaudio and fpc unit fphttpclient.pas. Andrew Haines did a perfect work with his TThreadHttpGetter…

    fredvs, José Mejuto, Leonardo M. Ramé
    20
  6. destructor

    fpc allows to declare a method with the destructor keyword, that is not a real destructor, because it does not free the memory. For what is this feature good for? For…

    Mattias Gaertner, Maciej Izak, Nitorami
    3
  7. Pipe vs Memory buffer.

    Hello In a C method: OP_WARN_UNUSED_RESULT OggOpusFile *op_test_memory(const unsigned char size_t _size,int *_error); translated in Pascal with this: var op_test_memory:…

    fredvs, greim, José Mejuto
    24
  8. Pointer hashing

    I’m trying to hash a pointer value and found some example of hash function but not sure about translations and the process in general. 1) Should I cast “pointer”…

    Ryan Joseph, José Mejuto, Karoly Balogh (Charlie/SGR
    6
  9. DBLib was updated, rev 35345, where I can found the new dblib.dll?

    I'm using FPC 3.0.1. I've updated my sources and saw that dblib was updated, specifically in revision 35345. My doubts are: 1. I need to update my dblib.dll too? 2. If…

    Marcos Douglas B. Santos, LacaK, Michael Van Canneyt
    4
  10. ppcjvm issues

    I've been working on building an app for Android using the FPC's JVM target. I'm using fpc 3.0.0. I've run into a couple of things that I'm not sure if they're bugs or I…

    Jon Foster, Bart, Dmitry Boyarintsev
    34
  11. Operator overloading with Text labels or words

    It's not possible to define an operator like: Operator AbcXyz(r : real; z1 : complex) z : complex; begin end; Is it? Has to be a symbol? If one could use words or text…

    Lars, Michael Van Canneyt, Sven Barth
    3
  12. TProcess vs RunProcess()

    Whats the differences or pros and cons between using TProcess vs RunProcess(). Graeme fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal…

    Graeme Geldenhuys, Jonas Maebe, Lars
    23
  13. Feature announcement: Interface RTTI

    Hello together! I'm pleased to finally announce the addition of Interface RTTI to Free Pascal. Interface RTTI essentially provides a list of all methods available in an…

    Sven Barth, Anthony Walter, Michael Van Canneyt
    4
  14. JSON parser error due to my data values.

    I have the following snippet in a JSON file. ================ "Settings": { "SQLDir": "d:\data" } ================ When I load the complete JSON file using FPC's…

    Graeme Geldenhuys, geneb, Karoly Balogh (Charlie/SGR
    6
  15. Connect to 'https://...' url with fphttpclient ?

    Hello. Is it possible to connect with 'https:// files with fphttpclient ? For example, I can access this: http://broadcast.infomaniak.net:80/alouette-high.mp3 but not …

    fredvs, Graeme Geldenhuys, Michael Van Canneyt
    18
  16. Deleting 'Nonexistent' files under windows

    Is it possible to access files that have path lengths too long to access from explorer through Windows API from Pascal? I keep ending up with these very long file names…

    Rolf Grunsky, Bart, Jürgen Hestermann
    5
  17. Stack trace different for Windows and Linux

    I'm a new poster to the mail list. I have a problem logging call stack trace info following an exception. The following simple program generates a divide by zero error.…

    Terry Mead, Jonas Maebe
    2
  18. fpc for ARM on STM32F103

    I'd like to know if the floating point hardware on STM32F103 is supported by the fpc cross compiler. ARmv7 this is according to: http://j-software.dk/stm32f103.php Will…

    Marc Santhoff, Florian Klämpfl
    4
  19. Language constructs and types that dependent upon system unit

    Hello! I would like to write some code that will be static linked with C application. In addition, I would like to avoid linking system and rtl units and would use only…

    gabor, Felipe Monteiro de Carvalho, Jonas Maebe
    6
  20. FPC run (run program after compile)

    Is there a way to compile a program with fpc at the command line and run it right after? Something like fpc run project1.pas -Fu../ The only thing I could find was…

    Lars, Graeme Geldenhuys, Mark Morgan Lloyd
    12
  21. Array as result in function.

    Hello. With this code, the result of the function does not have same format as the array input: Why ? type TArFloat = array of cfloat; function array_in_out(arrayin:…

    fredvs, Jürgen Hestermann, Martin Schreiber
    22
  22. Drawing bitmap by pixel

    Ryan Joseph, Felipe Monteiro de Carvalho, Graeme Geldenhuys
    5
  23. How to remove EXIF data from a JPG file?

    What is the best FPC library able to remove EXIF data from a JPG file? I would prefer to avoid the usage of external tools like ExifTool. Thank you in advance for your…

    Sandro Cumerlato
    0
  24. Changes to fpWeb...

    I have committed a serious change to the way fpweb handles requests. Especially routing of requests was changed. The old Delphi style routing worked with Datamodules…

    Michael Van Canneyt, Marcos Douglas B. Santos, Mr Bee
    6
  25. Does the system unit allow file locking/sharing?

    The oldschool way of opening files using the system unit (no sysutils) has the filemode variable.. system.FileMode := fmOpenRead; ... Assign(... Rewrite(... Can this be…

    Lars, Mark Morgan Lloyd
    2
  26. PascalScript broken by FPC 3.0 ?

    The pascalscripts that worked fine with lazarus 1.4 and fpc 2.64 are crashing when I try to run them in apps compiled with laz 1.6.2 or trunk. I get a SIGSEG attempting…

    Kapibara Pas, Bart, Lars
    6
  27. How to tell if file is locked, i.e. FileOpen in sysutils

    The fileopen function returns -1 on error, but there is no way to tell if the error is because of a lock, or another issue opening the file? I'm interested in finding…

    Lars
    0
  28. Free Vision etc. form editor

    I've just come across http://forum.lazarus.freepascal.org/index.php?topic=18998.0 which was asking about a dialog(ue) editor for Turbo/Free Vision. The links it cites…

    Mark Morgan Lloyd, Lars
    2
  29. alignment of types ( __alignof__ in fpc)

    Porting some C-headers. Ran, into a declaration: #define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *)) _alignof_ seems to be a compiler attribute…

    Dmitry Boyarintsev
    0
  30. Dynamic arrays in LLDB

    I am trying to debug an FPC program that uses dynamic arrays. (Don't them all?) It seems to me as if LLDB can not handle them. I get this error: A1 is a dynamic array of…

    Ingemar Ragnemalm
    0
  31. Re: bitwise operations using AND, OR, XOR, NOT

    In the meantime I read some articles about the history of FPC and TP and Delphi and learned that these extensions had been made very early in this history. While I…

    Bernd Oppolzer
    0
  32. javapp

    In figuring out Android programming with FPC I've read about the "javapp" tool. However when I try to do anything with it spends some time doing nothing and then outputs…

    Jon Foster
    0
  33. FPC 3.0.0 seed compiler for Rasperry Pi ARM?

    I have a script for building FPC and Lazarus from scratch on Raspberry Pi. This script starts by downloading the seed compiler from this location:…

    Bo Berglund, Anthony Walter, Bart
    21
  34. JSON stream load/save recursive structure

    Can fpjson handle load AND save of the following structure from/to json: PTreeStructure = ^TTreeStructure; TTreeStructure = class name: string; value: Integer; items:…

    Xiangrong Fang
    0
  35. TProcess failed running Swift compiler

    I'm writing a simple editor for Swift language. I use TProcess to run the Swift REPL. Unfortunately, TProcess failed to execute the Swift REPL for no obvious reasons.…

    Mr Bee, Lukasz Sokol
    2
  36. C# translatation

    I’m going to attempt to translate a perlin noise function (from https://gist.github.com/Flafla2/f0260a861be0ebdeef76) but there are a few things that stopped me from…

    Ryan Joseph, Bernd Oppolzer, Dmitry Boyarintsev
    14
  37. Untyped var params

    I’ve seen functions that use the untyped params like: function GetSomething (var something): boolean; This seems like something useful I would like to use but how can…

    Ryan Joseph, Andrew Hall, Bart
    21
  38. FPC clean room project

    There's someone accusing that Free Pascal (and some parts of Lazarus) is just a reverse engineering of Delphi. Even he said some codes of FPC/Laz are taken from Delphi…

    Mr Bee, Dmitriy Pomerantsev, geneb
    30
  39. Repeat result in random

    Here is a short program to print 10 random numbers: program testrandom; var i: Integer; begin Randomize; for i := 1 to 10 do WriteLn(Random); end. If I compile and run…

    Tony, Pierre Free Pascal
    1
  40. questions on fpimage

    firstly a happy new year to you all and keep on rocking! While reading the fpimage unit code I found some pieces I don't understand and could not clear up reading the…

    Marc Santhoff, Mattias Gaertner
    2
  41. How to translate C macro

    Could someone suggest how to translate the following code to pascal? #define prev(X) ( *( (void **) ( ((void *) (X)) - 32 ) ) ) ..... prev(ptr) = prev(last); I tried…

    Darius Blaszyk, Santiago A.
    1
  42. Readln a password

    I wonder what the recommended way is to readln a password from console, as a standard Readln echoes the password. 1. SetConsoleMode seems to be Windows-specific 2. On…

    Adriaan van Os, Bart, Dmitry Boyarintsev
    14
  43. Question on type helpers

    Why is it that type helpers must be declared in the Interface section of a unit and cannot be private in Implementation section? Consider this (useless) example: unit…

    Bart, Sven Barth
    10
  44. FastHtmlParser does not fire OnFoundText on e.g. empty table cell

    If you parse HTML using FastHtmlParser in order to extract a HTML table content, then, if a table contains an empty cell (<td></td>), the OnFoundText event is not fired.…

    Bart, Graeme Geldenhuys, Lars
    6
  45. How to split file of whitespace separated numbers?

    Is there a quick way to split a string of whitespace separated values into the separate members? I have to create a function to process a number of big data files where…

    Bo Berglund, Gabor Boros, Graeme Geldenhuys
    24