fpc-pascal · 2017-03
- Threading vs Parallelism ?42
Hello. Some developers treat me as dinosaur because I use threads in place of doing parallelism. Huh, ok, but why parallelism is better and how to do it with fpc ?…
- WebAssembly Target60
Is there something planned in this matter for FPC? I was reading about the new Firefox making WebAssembly publicly available ("On Tuesday Firefox 52 became the first…
- Hash List9
Ia there any hash list implementation in free Pascal? Ghashmap has no documentation. Is it stable for production use? Regards
- TSQLQuery and buffering.21
Firstly, I realise this is an old subject, but I still can't find any easy answer. Really, the question is simple: Is there ANY way of TSQLQuery NOT reading the entire…
- Call function in shared library from multiple threads15
I'm wondering if shared libraries (on Linux) support call exported function from multiple threads. I made small demo. Threads send JSON PChar into shared lib function…
- SPARC / Linux20
I noticed there is no binary FPC 3.0.2 Linux release for SPARC. Should it be possible to compile it for SPARC, possibly using the older binary 2.6.2 release? If yes, I…
- String Constants and Source File Code Page (Cross-platform)2
What is the recomended way to deal with string constants in units which are shared in cross-platforms projects? For example, i started a project in Linux, where the…
- Questions About Constructors4
1 - What happens if my constructor raise an exception? Is my destructor automatically called? 2 - Are the class fields automatically initialized to Default(T) just like…
- Error on closing application when using a library.1
Hello. One of my application use libgcc_s_dw2-1.dll. Sadly, on Wndows 10 I've got "Runtime Error!", when closing the program. The dll is working but this appends if…
- Something like TProcess.Environment for libraries ?7
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…
- Critical Section and Recursive Calls1
I'm writing a function protected by a critical section which can have recursive calls under certain conditions. Using the TCriticalSection class, after my thread…
- Delphi RTTI vs Free Pascal RTTI5
I need to write a code compatilble with both free pascal and delphi using the old style RTTI. What are the diferences between delphi's and free pascal's approach/types?…
- INVALID_SOCKET constant not defined for Linux6
I am porting application from Windows to Linux. I use Sockets unit. There is defined on Windows (and also on BeOS, FreeBSD, OS2): INVALID_SOCKET = TSocket(Not 0); // or…
- WideStringReplace bug?1
I am developing a console program which receives input in UTF-8, but it is converted to WideString for communication with COM. I found a weird behaviour of the…
- Delphi for Linux is out24
Just thought I would mention, yesterday Delphi 10.2 was released which includes Linux support (I assume a cross-compiler). It is only available in the Enterprise edition…
- TypeInfo question4
I have some generics which operate on multiple types and instead of making subclasses for certain types and overriding methods I wonder if using the RTTI like:…
- FreePascal Windows - Force files to write to disk41
I have a freepascal Windows console application that I recently ported over from DOS Turbo Pascal. I am have a small settings file that I write to disk that keeps…
- Threadvar member field6
I have a class where its instances are shared between multiple threads. How can I declare one variable per instance per thread? The code below does not compile (fpc…
- rtl-generics vs fgl6
Sorry if this is a silly question, I didn't really follow Generics discussions in the past. If the "rtl-generics" package a replacement for the fgl unit? Going forward…
- Interface Inheritance Bug5
Test env: debian jessie amd64 - fpc 3.0.2 It seems free pascal have a bug when handling interface inheritance using generics. When i try to compile the unit bellow, i…
- Generics Bug4
Please confirm this bug. The unit code bellow won't compile (fpc 3.0.2 - debian jessie amd64): "generics_bug.pas(17,48) Fatal: Syntax error, "," expected but "<" found"…
- TThread.OnTerminate ?6
Hello. Does it exist a equivalent of the Delphi TThread.OnTerminate ? http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/…
- Forward Generic Type Declaration Bug9
Please confirm if this is a bug. When I try to compile the unit below I get the error: "generics_bug.pas(14,43) Fatal: Internal error 2012101001" It seems the compiler…
- Thread Variables Initial Values2
The documentation is not clear about the initial values of thread variables: *"If threads are used then a copy is made for each thread (including the main thread). Note…
- https how does it work4
How does httpy work, what is needed? TLS/SSL library? A http webserver without encryption I programed already on my own and wanted to integrate https. Is there any…
- Adding a array of float in ressource and use it ?36
Hello. Is it possible to add a array of float into ressource ? For example, there is myarray : array of cfloat. Is it possible to store that array myarray ressource and,…
- Annual inform1
Annual inform: I am programming LibreN3D for 3D animations, and some other projects in FreeDOS and other systems, but these three past years they really were standing…
- how to determine if a class has descendant registered within the current program4
I have a many classes, one inherits from another one, in an ancestor method, I want to test whether the calling class is a childless class. e.g. class function…
- Warning for anybody else using Linux Mint Debian ('Betsy')3
Upgrading to Lazarus 1.6.4 and FPC 3.0.2 as obtained from SourceForge breaks things irretrievably on Linux Mint Debian 64-bit running on an AMD Phenom x2 system. I first…
- Re: lldb problems with Xcode 8.2.10
I have upgraded to FPC 3.0.2 and added in the Xcode 8.3 beta. I am able to see local variables when pausing the program. I am still unable to get breakpoints working. …
- Incomplete code example in FPC docs0
http://www.freepascal.org/docs-html/rtl/typinfo/ispublishedprop.html According to the above URL, that code example is not compilable as-is, because TMyTestObject is not…
- Feature announcement: Management Operators14
I'm pleased to finally announce (again but now officially ;) ) the additional record operators: Initialize, Finalize, AddRef and Copy. Available in latest FPC trunk…
- class operator in record5
How come: class operator Initialize(var aFoo: TFoo); class operator Finalize(var aFoo: TFoo); in a record are called class operator.. why not "record operator"? Are…
- FPC 3.0.2 released!9
Finally, FPC 3.0.2 has landed. FPC 3.0.2 is an update to 3.0.0 that contains some compiler bugfixes and library progress since 3.0.0 Building is still in progress and…
- Manual sources? Some doc questions.3
I couldn't find the source for the manuals, e.g. [prog.pdf]( http://www.freepascal.org/docs.var). Does someone know where I can find them? Some other questions: - In…
- 3.0.0 for 3.0.31
Why do I need fpc 3.0.0 to build 3.0.3? Shouldn't that be 3.0.2? Mattias
- $IFDEF with multiple symbols?1
Can I use this to make a conditional compilation? {$IFDEF charlie, oscar} {$ENDIF} Where I want main to be included if one or both of charlie and oscar are defined…
- Array of const and generics3
Is it possible to use array of const inside of generics? Quick example I just typed up. If you specialize the generic the compiler always complains about the type in…
- Run Time Type Info - are the type names of all classes defined in a unit stored in the RTTI?3
Programmatically, I want to make a list of all Classes defined in the unit. Is this info stored in the RTTI or anywhere else? Thanks in advance. Dennis
- Lazarus Release 1.6.40
The Lazarus team is glad to announce the release of Lazarus 1.6.4. This is a bugfix release. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.2…
- MSEide+MSEgui 4.4 for Free Pascal 3.0.26
MSEide+MSEgui 4.4 for Free Pascal 3.0.2 has been released: https://sourceforge.net/projects/mseide-msegui/ There are also new versions of the ARM (Raspberry Pi) cross…
