Michaël Van Canneyt
c7109674d1
* Small optimization of WriteIdent. fixes issue #40334
2023-06-29 23:48:10 +02:00
mattias
e8546a9e41
rtl: classes: added parameter aName to TFindComponentClassExEvent
2023-04-13 15:33:38 +02:00
Nikolay Nikolov
1eca53a681
+ support 16-bit pointers in TFPList.IndexOf
2023-04-01 21:50:56 +03:00
florian
466561f09f
* patch by Rika: Use Index* for pointer lists, resolves #40218
2023-03-25 21:32:29 +01:00
Sven/Sarah Barth
e774a6275c
* change Result of CheckSynchronize to true when at least one method was executed (matches with both FPC and Delphi documentation)
2023-03-17 15:53:25 +01:00
Sven/Sarah Barth
b2b2606e36
+ add function reference suitable overload of TThread.ForceQueue()
2023-03-11 17:08:32 +01:00
Michaël Van Canneyt
0e2102e172
* Resource handle is not resource ID
2023-03-08 16:12:59 +01:00
Michaël Van Canneyt
c3c3bd3471
* Fix windows compilation
2023-03-08 10:09:58 +01:00
Michaël Van Canneyt
f9a96e5e63
* Avoid useless exceptions by checking existence of resource
2023-03-07 11:43:39 +01:00
mattias
fdea66d217
rtl: added TBinaryObjectReader.BeginComponent
2023-01-15 10:56:58 +01:00
mattias
ea4768456f
rtl: ObjectBinaryToText, ObjectTextToBinary: support unitname/classname
2023-01-08 20:30:52 +01:00
mattias
c1f3960388
rtl: added overload GetClass(UnitName,ClassName), implemented UnregisterClass, overload TStream.WriteComponent(Instance,WriteUnitName)
2023-01-08 15:46:49 +01:00
mattias
b0f5d5a4e1
rtl: TBinaryObjectWriter.Version
2023-01-07 10:19:29 +01:00
mattias
b641c564c6
rtl: TReader: FindComponentClass using field name and classname
2023-01-07 10:19:29 +01:00
florian
9c8f362acc
* more robust calculation of TBITS_SHIFT
2022-11-06 22:33:38 +01:00
Rika Ichinose
7243befdb7
Better TBits.
2022-11-06 20:55:38 +00:00
marcoonthegit
e5ac0b2689
* anonymous method overloads for synchronize/queue.
2022-06-01 13:54:06 +02:00
Michaël Van Canneyt
712823eb6c
* Add some delphi compatibility enumerateds to TShiftState
2022-05-07 10:20:04 +02:00
marcoonthegit
2457016671
* TStringlist constructor with ownsobjects parameter, Delphi compatible + empty constructor to avoid compiler getting confused
2022-04-18 21:23:10 +02:00
Michaël Van Canneyt
5ca52bcab1
* Add Flush method to TFileStream. Fix issue #39619
2022-03-10 09:35:28 +01:00
Michaël Van Canneyt
59a7024d73
* Move() check for identical index. Additional fix for #39617
2022-03-08 11:42:24 +01:00
Michaël Van Canneyt
2a19e152b7
* Micro-optimization. Fix issue #39617
2022-03-08 11:35:43 +01:00
Michaël Van Canneyt
7097a1030f
* Added Read64/Write64
2022-01-23 12:18:43 +01:00
Michaël Van Canneyt
042eb7e8c1
* Small safety precaution
2022-01-23 12:03:24 +01:00
Sergey Larin
e27ea76b88
The TStream.ReadBuffer and TStream.WriteBuffer methods have changed the Count parameter type to NativeInt.
...
Changed the implementation of ReadBuffer, WriteBuffer so that the size of the blocks when calling Read and Write does not exceed High(Longint).
Notes:
- Thanks to this change, for example, a file larger than 2GB can be loaded into TMemoryStream.
- The fact that the Count parameter has the NativeInt type is compatible with the latest versions of Delphi.
2022-01-23 10:25:55 +00:00
Michaël Van Canneyt
d6a26f2c28
* Remove component from previous owner. Fix issue #39529
2022-01-13 22:41:01 +01:00
Bernd Kreuss
2210143239
fix wording of error message when field not found during reading of lfm file
2021-09-02 11:16:56 +02:00
Michaël Van Canneyt
52c8ac0ca0
* Fix by Mark Paley to add IfThen for StringList and TStringDynArray. Issue #39314
2021-09-01 09:29:50 +02:00
marco
c8be89c7fa
* fix from Sebastian Hellwig for writeunicodestring bytes number, mantis 0038963
...
git-svn-id: trunk@49478 -
2021-06-05 15:42:34 +00:00
michael
61cd38e6db
* Fixed Issue ID38920: twriter crashes on readonly nil component
...
git-svn-id: trunk@49389 -
2021-05-22 07:54:30 +00:00
michael
e99c9ddd75
* Add deprecation message
...
git-svn-id: trunk@49038 -
2021-03-23 11:53:33 +00:00
Károly Balogh
45b5e9215c
rtl: remove defines for v2.x compiler from the common part of the RTL. It's no longer suppported to build with that
...
git-svn-id: trunk@49036 -
2021-03-23 09:32:49 +00:00
svenbarth
38cde38177
* make TProxyStream.Check an abstract method; as it is right now one had to override it anyway because it always raised an exception
...
git-svn-id: trunk@48097 -
2021-01-06 20:25:12 +00:00
ondrej
706d89d6cc
* GlobalNameSpace must EndWrite before it is released to unlock the critical section
...
git-svn-id: trunk@47636 -
2020-11-29 18:49:36 +00:00
michael
0baf7db5e4
* Fix bug where position is not advanced when calling ReadAnsiString/ReadString
...
git-svn-id: trunk@47061 -
2020-10-07 10:15:13 +00:00
ondrej
192bbc07f5
* simplify TThread.RemoveQueuedEvent - decide what to delete and not what to leave (better corresponds with the docs)
...
git-svn-id: trunk@47011 -
2020-09-30 06:56:27 +00:00
svenbarth
a624348692
* when removing a method from the synchronization queue using TThread.RemoveQueuedEvent then both the Code and the Data need to match (Delphi does the same)
...
+ added test
git-svn-id: trunk@47007 -
2020-09-29 17:34:26 +00:00
michael
df9cea5cc4
* Additional fix for GetDelimitedText
...
git-svn-id: trunk@46715 -
2020-08-27 07:35:51 +00:00
svenbarth
11b601d44c
* TThread.Terminate does not have any platform specific behavior (it should only set FTerminated to true and call TerminatedSet), thus move it to the platform independant part
...
Notes:
- Netware had a ThreadSwitch in there, but that is not really required
- some platform were missing the setting of FTerminated to True, thus they'll now do that as well
git-svn-id: trunk@46543 -
2020-08-22 15:56:13 +00:00
michael
51b43aff3f
* Simplified SetDelimitedText
...
git-svn-id: trunk@46531 -
2020-08-21 07:52:42 +00:00
michael
81c7da83a9
* Fix bug ID #0037605 : Setting quotechar to NULL char disables quoting
...
git-svn-id: trunk@46530 -
2020-08-21 07:38:33 +00:00
ondrej
67acb289d7
TWriter: fix default value handling for Int64/QWord values. Issue #37525
...
git-svn-id: trunk@46337 -
2020-08-09 06:13:06 +00:00
michael
b7bd9f3325
* Add TerminatedSet (delphi compatibility, bug ID #37388 )
...
git-svn-id: trunk@45805 -
2020-07-18 22:35:36 +00:00
michael
74e65f77bc
* Fix bug ID #37118
...
git-svn-id: trunk@45444 -
2020-05-20 07:32:09 +00:00
michael
ac208ab689
* clarify dubious case statements
...
git-svn-id: trunk@45425 -
2020-05-18 17:29:48 +00:00
svenbarth
c8b7094378
* fix for Mantis #36940 : apply (adjusted) patch by Bi0T1N to add functionality to the thread manager to set a thread's debug name (if supported by the platform)
...
git-svn-id: trunk@45160 -
2020-04-28 19:58:20 +00:00
michael
2dfc5b160b
* Fix wrong start/stop index
...
git-svn-id: trunk@44635 -
2020-04-07 14:03:42 +00:00
michael
0ff254e00f
* Fix bug ID #36837 : add ToObjectArray, ToStTringArray and SetStrings
...
git-svn-id: trunk@44632 -
2020-04-07 08:27:34 +00:00
ondrej
a5ed5bd942
TFileStream: use SysErrorMessage in exception message if available
...
git-svn-id: trunk@44200 -
2020-02-17 08:35:15 +00:00
ondrej
77fecff30e
TStrings.SaveToStream(TStream): use FEncoding as the default for IgnoreEncoding=False so that loaded files are correctly resaved
...
git-svn-id: trunk@43948 -
2020-01-14 15:33:53 +00:00