fpc-pascal
Subscribe to this list Your subscription
Latest threads
- Scoped enums and inferred types27
I just learned FPC has scoped enums, which is nice, but they lack what you could call “relative inference” based on the type being passed. In the example below the…
- Advanced note: local variable "i" is assigned but never used?2
would it be possible to do more advanced checking of this note? This code var i: Integer; begin i:=5; end; gives Note: Local variable "i" is…
- glGetString crash6
I tried using a core OpenGL context on my old MacBook (2010) and got a crash from glGetString from the Pascal bindings (a legacy 2.x context doesn’t crash). I pulled…
- Cannot reference macro identifier in assembler code0
The following code doesn't compile for the AVR target (FPC 38288): program macrotest; begin asm {$ifdef FPC_SRAMSIZE} sts FPC_SRAMSIZE , r31 //…
- Python interaction... how?4
I just cannot wrap my head around this one. I would like to implement scripting support to a pure FPC application. The application implements some modifier on an…
- Connecting to a database from a commandline pascal program2
I am trying to write a command Line Pascal program to connect to a MySQL database using the ZeosDBO Library. I am sure I have done something stupid. I have it now so…
- TMS Web core released - based on pas2js.2
Yesterday, TMS Software has released a tech preview of their "TMS Web core" product for Delphi. Now that it's official, I don't need to be secretive about it anymore :)…
- Trying to compile ZeosDBO cli program6
First of all, thank you for looking at this, Terry H. To compile a cli FreePascal program to use ZeosDBO library, I assume all I have to do is include the path to those…
- Linux udev messages1
Has anybody used NETLINK_KOBJECT_UEVENT on linux to get messages relating to device hotplugging and removal? It seems like the sort of thing that could be monitored by a…
- Operator overload resolution with arrays12
I'm having some logical problems with fgl generic lists and operator overloads. This is essentially the same issue as discussed last year on the forum as…
- Is there a smart way to save/restore NotifyEvents and objects?6
I have list of objects which contains references to other objects. I need to save all these objects to harddisk to be restored on a latter day. I know how to stream the…
- question about _fpc_local_unwind6
in my rtl for torokernel, I have to implement "_fpc_local_unwind()" however I am not sure about the expected behavior of this function. It appers in the code when I use…
- libc and math.h on Linux5
I have to import the math.h libc functions listed here <http://pubs.opengroup.org/onlinepubs/009695399/toc.htm>. What is the recommended way to do this for general Linux…
- Problem with file descriptors when doing fork on linux2
I would like to ask advice. My colleague run into a problem, when he had used TProcess to spawn other process. Because of fork nature, file descriptors was copied into…
- _Release call location for unused function results8
In the code below Bar creates a reference counted object and returns an interface to it. Foo calls Bar but doesn't assign the result anywhere. In Delphi, this produces…
- Initialize records C style1
I have this code in C, the variable p is a 20 element array. However only the first two items are initialized. Is this possible in pascal as well? TIA, Darius struct…
- Range checks12
The following innocuous looking code generates a range check error: {$R+} function Count: qword; begin Result := 0; end; var i: Integer; begin for i := 0 to Count-1 do…
- Sleep(30) is not reliable?4
In Lazarus component EControl I call Sleep(30) to wait when timer tick work is done. while FBusy do Sleep(30); and app loops forever now in sleep(). procedure…
- RunError(215) occurs only in win 64 bit, not win 32 bit3
When I compiled the following simply programs using Lazarus 1.8 fpc 3.0.4 Win 64, run it, it will throws RunError(215) Arithmetic overflow error. However, if I compile…
- AVG says EXE has a virus | FPC 37459 rev1
I've updated my FPC -> /branches/fixes_3_0 from 37459 rev (2017-10-01) to 38018 rev (2018-01-10). Every time that I'm compiling a project, my AVG antivirus says that…
- Dynamic Packages1
What's the current development status on loading/unloading packages dynamically?
- fcl-web on Microsoft's kernel mode HTTP(S) server0
Hello together! In revision 38013 I extended fcl-web with the support to use it together with Microsoft's kernel mode HTTP(S) server (aka http.sys). What does this mean?…
- directive for -CR1
Is there a compiler directive to enable/disable method call and typecast checks (option -CR). Similar to $R+- for range checks? Mattias
- FPC 3.0.4 on Ubuntu Trusty6
As I don't have Trusty installed I thought I would ask here instead. What is the most convenient way to install FPC 3.0.4 on Ubuntu Trusty? Is it as simple as…
- Html mail displays differently than the body text does...1
I am using Indy 10 (latest trunk version) in Lazarus to create a command line utility to interface with our new Subversion repository server. It sends commit emails to…
- Strange issue with TXMLConfig5
All of a sudden I get a crash in my app trying to read a path from an XML file. The crash comes from the function TDOMNamedNodeMap.Find that crashes on this line: C :=…
- pas2js mailing list6
There is now a public mailing list for pas2js. You can subscribe here: http://lists.freepascal.org/mailman/listinfo/pas2js/ Mattias
- AppImage14
Take a look at https://appimage.org/ Is this possible for Freepascal and Lazarus?
- Poll on website forum0
I posted a poll on the forum site, regarding missing language features in pas2js. http://forum.lazarus.freepascal.org/index.php/topic,39694.0.html Please, let us know…
- Freepascal CLI library5
I'm working on a CLI application that allows the user to do some configuration. During the process the user is presented with different questions that need to be…
