-
Content Count
329 -
Joined
-
Last visited
-
Days Won
4
Posts posted by Cristian Peța
-
-
5 minutes ago, dummzeuch said:And for convenience, use a global variable to store the state ... gd&r
If not multi threading then it can be.
-
11 minutes ago, A.M. Hoornweg said:"Take control on entry and restore on exit" would be very cumbersome in the case of DLL's written in Delphi. It would need to be done in every exposed function / method.
procedure Foo; stdcall; begin SetFPCR; ... RestoreFPCR; end;
Do you think is so cumbersome to do this for every exposed function?
The SetFPCR and RestoreFPCR you need to write for yourself but only once.
-
12 minutes ago, A.M. Hoornweg said:My question is about threads literally running simultaneously on different CPU cores, does each core always have an independent FPU + FPCR so one thread cannot jeopardize another ?
If FPCR would not be per core then one processes would change FPCR of all processes! This can't be.
FPCR must be pe core like all CPU registers.
-
runFullTrust
in FMX
Here something on this them:
And Win32 apps packaged as msix will need runFullTrust. You can avoid runFullTrust with UWP but a Delphi app will call all sort of Win32 API that will need runFullTrust.
QuoteApps using the FullTrust entrypoint can call any API they want. Usually this is your main Win32/.Net executable. I’ll refer to these applications as FullTrust apps.
-
43 minutes ago, David Schwartz said:So what DO you do in a case where, say, you might use an object to collect an accumulation of data that is provided by multiple sources?
It's often done for contextual state management over time...
The sources must register to the collector. And unregister when the source does not need the collector anymore.
The collector must not be destroyed if there is an active source.
This is a little like ARC for interfaces work.
- 1
-
-
I suppose you are using TXMLDocument. Then why not using TXMLDocument.LoadFromStream and TXMLDocument.SaveToStream and let the library do the encoding work for you?
- 2
-
Simply don't share dll memory with the exe.
https://docwiki.embarcadero.com/RADStudio/Sydney/en/Sharing_Memory
-
On 3/22/2024 at 7:22 PM, david_navigator said:I was hoping there was something that the OS could deal with.
29 minutes ago, david_navigator said:@Kas Ob. could you explain in a little more detail about the memory manager please ?
The OS will free the memory when you unload the dll.
-
Why a ghost?
TThread.Create() can raise an exception using resourcestring SThreadCreateError = 'Thread creation error: %s'
And SysErrorMessage() return an empty string.
-
FieldByName('STAT_CLOSED_DATE').Value := Null
Easier to read for me.
-
That serial number is not for Delphi 11 that is the current community edition?
-
Linux and Windows sources are C, C++, Assembly....
-
16 hours ago, gioma said:in reality that data can be a UTF8 string or a UNICODE string or a file.
The first character of the data tells me what type of data I have to work with.Then you don't know if that first char is one or two bytes.
You test first byte (suppose UTF-8) and if it is not what you expected then you test first two bytes?
-
13 hours ago, Stano said:Setting it while running doesn't help?
After connection is created is too late.
But default is True....
https://docs.devart.com/unidac/devart.dac.tdaconnectionoptions.keepdesignconnected.htm
-
Server outage and GetIT server changed. Old online installer does not work anymore.
-
4 minutes ago, Morphumax said:Delphi. I just tried to copy the parameters specified in the hint box. There were quite a few.
Maybe I am from ice age and Delphi evolved since then... but this does not compile in D11.3: E2005 'Create' is not a type identifier
Calling TGUIDHelper.Create() in procedure declaration where you need to give a type is somehow strange for me.
-
20 minutes ago, Morphumax said:procedure HandleCommand(Sender: TObject; aLine: TncLine; aCmd: Integer; aData: TGUIDHelper.Create(System.TArray<System.Byte>, System.Types.TEndian).:1<Byte>, aRequiresResult: Boolean; aSenderComponent: string; aReceiverComponent: string);
aData type is terrible... is this Delphi code?
-
Install from ISO.
- 1
-
Too little details but a debug call-stack should tell us something more.
-
17 hours ago, emileverh said:I know it's a compiler problem, but why can they do it with classes and not with records....
It's not a compiler problem, but record variables are not class variables and when you declare a record variable it is allocated automatically.
You enter into a infinite loop of circular allocation.
type TRecA = record; TRecB = record FieldA: TRecA; end; TRecA = record FieldB: TRecB; end; var a: TRecA; //infinite circular allocation of memory
-
19 hours ago, Brandon Staggs said:Anyway, doesn't the "Low DPI" setting for the form designer solve the dfm issue?
Yes, but imagine someone with 200% display scale with a magnifying glass trying to adjust something on a form because the form is half the size.
- 2
-
@weabow TFDPhysSQLiteDriverLink is in FireDAC.Phys.SQLite.pas
But if you copy-paste from here it won't work because after last "k" character there are some non-visible chars: EF BB BF EF BB BF
-
You only need a iOS 16 device.
BTW I don't write today iOS app but but at that time I learned that upgrading iOS on the device should be done only when there is a confirmation that debugging from Delphi works on new iOS.
Delphi 12.1 Android API 34 - not support architecture
in General Help
Posted
There is not Android x86 platform in Delphi. For debugging you can use Android devices or better Windows 32 for non Android specific things.