Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2005-07

  1. Two-dimensional dynamic arrays in C libraries

    I need to pass two- or three-dimensional dynamic arrays to C libraries from FPC. I know this is feasible with one-dimensional arrays, by using a pointer to the array:…

    Silvio a Beccara, Michael Van Canneyt
    1
  2. fast integer multiplication

    Suppose I have the following code: var a,b: dword; c: qword; begin a := 10000000; b := 20000000; c := a * b; writeln(c); end. Now, although c is large enough to contain…

    Vincent Snijders, Florian Klaempfl, Gerhard Scholz
    12
  3. lazarus crash at start

    Trying to find why lazarus crashes at start in win98 I found a courious problem, global variable IsConsole is true when it should be false as lazarus is built as a gui…

    Jesus Reyes, Peter Vreman, Vincent Snijders
    3
  4. Exporting from Elf okay?

    With regards to MS Windows: There are some myths out there which say you cannot export functions from exe's.. but this supposedly was only true back pre 386 versions of…

    L505
    0
  5. Bitmap variables

    Hello all. Can anybody explain what is the structure of the bitmap variables used in GetImage and PutImage. How are images stored in them?

    ant222
    0
  6. FPC 2.0 / Lazarus Problem

    FPC 2.0 seems to have problems with lazarus new ide paths. Sometimes it gives an error, that it can not find uniteditor.pp or componentpalette.pas. The paths are…

    Mattias Gaertner
    0
  7. ExecuteProcess

    I'm using ExecuteProcess to run a commandline application. This application returns information to stdout. I have tried to pipe this to a file, but unfortunately this…

    Darius Blaszijk, L505, Michael Van Canneyt
    5
  8. Pointers

    Hi everyone I'm just trying to compile and execute a simple example from a graphics programming tutorial under FPC. Here is the code <code> PROGRAM PixelExample; {$MODE…

    Daniel Franzini, Elio Cuevas Gómez, John Coppens
    11
  9. C++ > C wrapper callback > Pascal Continues UPDATE

    See bottom post ----- Original Message ----- From: "Urbansound" To: Sent: Wednesday, July 27, 2005 11:05 PM Subject: C++ > C wrapper callback > Pascal Continues

    Urbansound, Tomas Hajny
    1
  10. C++ > C wrapper callback > Pascal Continues

    Reply Peter and Tomas, is below, each... Thread pruned. The s call in the message line was converted to a "pointer(s)". I found the FPC_INITIALIZEUNITS at Main, in the…

    Urbansound
    0
  11. C++ > C wrapper callback > Pascal Continues

    I would think you have the likely cause. Unfortunately, the 2.0.0. Docs, nor the Web docs make reference to the function, (if it is a function), and Google seems to…

    Urbansound, Peter Vreman, Tomas Hajny
    2
  12. C++ > C wrapper callback > Pascal Continues

    Thank you to Michalis Kamburelis... clipped this down (and still too long)... Yes the integer sizes were confirmed = 32 (win32 gui) and the export was added simply…

    Urbansound, Peter Vreman
    1
  13. Doubts about QueryInterface

    When I try to compile a unit in delphi mode with the following function function Implements(out AReference; const AObject: TObject; const AInterface: TGUID): Boolean;…

    Agustin Barto
    0
  14. C++ > C wrapper callback > Pascal

    I'm probably over my head on this one and some of the FPC forum entries talk about limited functionality toward C++, but here goes. A Windows pascal application is…

    Urbansound, Michalis Kamburelis
    1
  15. Freepascal and good usage of TStringList

    Could any one help me debug the little piece of code thereafter ? I get a SIGSEGV.. and I don't know why (OK.. i am not that good). Thanks for your help. JM…

    Jean-Marc Chourot, Mariano, Martin Smat
    3
  16. Variants vs. Variant Records

    I have to build some container classes (like java Vector) for a project. I was thinking on how to store some primitive values (so far I only need to store Integer, Real…

    Agustin Barto, David Emerson, Florian Klaempfl
    7
  17. FPC and CD-ROMs

    Hi everyone. I have one simple question : How can i eject/close certain CD-ROM drive? I write Certain because I ave more than one so I have to specify which. Is there…

    Pianoman, Alexey Pavluchenko, John Coppens
    2
  18. String to Unicode?

    I'm producing some XML-Output with a FPC-program. The problem is that there are special charakters like < and > in the content of some tags, also some german special…

    Thomas Zastrow, John Coppens
    2
  19. [OT] Mime attachments

    Does anyone else here use thunderbird? Everytime I get a digest all of the attachments in thunderbird crowd out the main window so I can't read anything. Is there any…

    Angelo Bertolli, Bernhard Steffen, Elio Cuevas Gómez
    2
  20. Dynamic-linker

    fpc 2.1.1 (2005/07/24) Darwin When compiling with -pg (generate profiling data) linker complains with: /usr/bin/ld: unknown flag: -dynamic-linker= P Davidson Corax…

    Paul Davidson
    0
  21. Simple hello world fails on freebsd

    Hi all, this is my first attempt at using freepascal on freebsd, I installed it from the tarball, installing everything, but I can't compile ANYTHING. Below is the…

    A.J. Venter
    1
  22. MSG variable type, Windows GUI

    I encountered an FPC Win32, tutorial that uses the a declaration of variable "msg", declared as a MSG type, shown below. Dev-Pas IDE, FPC 2.00 gives an "error in type…

    Urbansound, Luiz Américo
    2
  23. unit testing framework for fpc

    not long ago there has been some talk about a test framework for object pascal on this list. IIRC it was some sort of port of junit to pascal. Is it in a usable state?…

    Marc Santhoff, Alain Michaud, Andres K. Foerster
    19
  24. Sharp Zaurus ARM port stability?

    Just laid my hands on a used Zaurus SL5500. I was wondering how stable the Zaurus cross compiler and QT wrapper were? I realise this is slightly off topic, but I…

    Matt Emson, Alain Vitry, Den Jean
    11
  25. How to know if an objects implements an interface

    I have a class that has a TObject field. In some of the instances of this class the field will contain an objetct from a class that implements certain interface. What…

    Agustin Barto
    0
  26. Re: Translating scientific libraries

    Yes, it should work. of headers. If you need help with translating, I'm quite willing to help, and I'd definitely consider distributing the translated headers with FPC.…

    Michael Van Canneyt, Agustin Barto, C Western
    2
  27. Mac OS X Pascal Interfaces

    The latest version of the Mac OS X Pascal Interfaces <http://www.microbizz.nl/GPCInterfacesF.tar.gz> can be downloaded from <http://www.microbizz.nl/gpc.html>. Detailed…

    Adriaan van Os
    0
  28. fpcmake

    In MS Windows, fpcmake says: Error: Target "win32", package "libasync" not found In my 2.1.0 source directories, libasync appears to be for unix only..i.e. it's in a…

    L505
    0
  29. Shared Object Libraries non-PIC

    How does the calling program know that it's not PIC (position independant code)? i.e. how would you stop a calling program from thinking so? Is it based on what…

    L505, Jonas Maebe
    1
  30. Recursion

    Having problem with app. It is rule based, and operates with recursion. Events, such as HTTP requests, timers etc, are processed in separate threads such that rule…

    Paul Davidson, Florian Klaempfl, Jan Ruzicka
    2
  31. Calling unassigned procedure gives no stack trace with -gl

    When the following program is compiled with option -gl -Mdelphi and executed, it results in An unhandled exception occurred at $00000000 : EAccessViolation : Access…

    Tom Verhoeff, Anton Tichawa, Marcel Martin
    8
  32. Re: Paths on different OS's

    Path:=ExtractFileDir(ParamStr(0)+PathDelim+'SomePath'+PatHDelim+'Directory'+PatHDelim+'etc'+PathDelim; Is cross platform, or…

    Michael Van Canneyt, A.J. Venter, L505
    8
  33. Re: getprocaddress

    The same, just add dynlibs to your uses clause. This is documented. Michael.

    Michael Van Canneyt, L505, Marc Perkel
    3
  34. System.Write broken?

    Hi, the folowing code enters infinite loop in the newest version of FreePascal: program textfile; var Archivo: Text; Linea: AnsiString; begin Assign(Archivo, 'test.pp');…

    Elio Cuevas Gómez, John Coppens, L505
    8
  35. cMem, cThreads

    Does cThreads require cMem in program uses clause? i.e. uses etc. It appears that removing cMem causes memory corruption in Darwin. Thanks P Davidson Corax Networks Inc.…

    Paul Davidson
    0
  36. Single or Double

    I need to know *at compile time* whether the type Real is Single or Double. Currently, I use this {$IFDEF FPC_HAS_TYPE_DOUBLE} ... {$ELSE} {$IFDEF FPC_HAS_TYPE_SINGLE}…

    Marcel Martin, Florian Klaempfl, L505
    7
  37. Crosscompile linking problems

    Hi! I am trying crosscompile my commandline application from Win32 to linux. I have cross binutils, compiled linux RTL and other packages... so, I have not any problem…

    Lukas Gebauer, L505, Marco van de Voort
    7
  38. Which OS?

    how can I test - at runtime - under which OS (Linux, Windows and so on) a FPC-program is running? Tom

    Thomas Zastrow, Andres K. Foerster, Jeff Pohlmeyer
    5
  39. libvga (graph unit)

    I have a problem with the graph unit. The program compiles fine under GNU/Linux, but not on FreeBSD. The SVGAlib is installed. But when linking I get the following: |…

    Andres K. Foerster
    1
  40. Something like "Is a number"?

    I'm converting some strings with "strtoint" into integers. But sometimes the string can't be converted to a number. Is there a function which takes a string and tells me…

    Thomas Zastrow, A.J. Venter, Anton Tichawa
    15
  41. ARM compiler platforms

    since the website only seems to mention the Zaurus as device for running fpc and executing it's program i assume (cross)compiling at least works on linux. What other…

    Marc Santhoff, Den Jean, Florian Klaempfl
    2
  42. Wrapping libInkLevel

    I've been trying to create a wrapper for libinklevel, h2pas with a fairly standard set of options ran fine, the wrapper compiled once I commented a double-definition for…

    A.J. Venter
    0
  43. Re: fpc-pascal Digest, Vol 11, Issue 7

    In a message dated 7/7/2005 5:02:07 A.M. Central Daylight Time, Steve I got the latest FPC source using Subversion on Win32. Running make build in the root directory…

    Unknown author
    0
  44. make install error

    I got the latest FPC source using Subversion on Win32. Running make build in the root directory worked fine. Running make install fails because cp.exe does not ignore…

    Steve Williams, Lee, John
    1
  45. Untyped stdin 'file'

    How can I have an untyped stdin ? I want to use blockread on stdin. Currently, variable 'input' is of type text. If I assign '' to a file variable and reset that, then…

    Micha Nelissen
    0
  46. Blacklisting on fpc lists server

    from time to time I cannot send mail to this list. It's getting back to me wtih this error message: Do I get right that the lists server has the mail server of my…

    Marc Santhoff
    0
  47. Delphi To Free Pascal

    This my test to see if free pascal can be used to compile Delphi Projects. I have thousands of delphi projects/project files etc... but for this test I simply create a…

    Unknown author, Adriaan van Os, Anton Tichawa
    28
  48. array of Char -> String conversion

    is there a standard routine that converts an "array of Char" type to a (Short)String of the same length as the Char-array? The automatic conversion of the compiler seems…

    Vinzent Hoefler
    0
  49. showing source linenumbers on exceptions

    how can i show source line numbers, when an exception occurs, like sysutils do? ... An unhandled exception occurred at $0040E9B5 : EInOutError : Invalid filename…

    Bartek, Gerhard Scholz, Peter Vreman
    6