-
Content Count
1977 -
Joined
-
Last visited
-
Days Won
26
Everything posted by Attila Kovacs
-
Any advice when to use FileExists?
Attila Kovacs replied to Mike Torrettinni's topic in General Help
I've never mention any catch and re-raise. -
Any advice when to use FileExists?
Attila Kovacs replied to Mike Torrettinni's topic in General Help
Throw them an exception. Then they (your callers) will start checking by themselves and throwing an exception to its callers etc.. at the end you will have a solid app. -
Any advice when to use FileExists?
Attila Kovacs replied to Mike Torrettinni's topic in General Help
completely superfluous, then for each File in MainPath do if the file can disappear between these two lines if FileExists(File) then it could also disappear between these two lines If _IsFileValidForParsing(File) then (then you decide to create the file, it could be there again) etc.. FileExists and co. are a total nonsense, then it's returning a momentary state. Put a try except around any IO and handle the last os error if apply. -
Design Packages list is not resizable
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
There is a bigger problem with this form, you can't select and copy the path on the bottom. Both could be done from an expert, and would be the preferred way, before someone redesigns the whole thing. (No, it's a Label with the path <o>) -
Delphi compiler need to be opensourced
Attila Kovacs replied to AlekXL's topic in RTL and Delphi Object Pascal
And counting! :PP -
Delphi compiler need to be opensourced
Attila Kovacs replied to AlekXL's topic in RTL and Delphi Object Pascal
Tangentially on topic: is it possible to exclude this particular thread from the Activity feed? (I mean me for myself, is there any setting for that) -
No. Memory will be remapped from X in Y length. Now, that you are scrolling backwards, it remaps every time a X-rowcount+Y chunk. Maybe you could read something from X-Y+rowcount but how would you know that the memory will be mapped and what Y is. But as I said I have no experience with this. Maybe somebody has some other thoughts on it too.
-
In the first case VT nodes are getting its memories after the TestArray, and they will be swapped.
-
Yup. App takes over 200MB RAM and windows starts swapping, you can see the Page Faults in the task manager. Also thats why backwards is slower. I have no clue how can one influence that, never had a problem like that.
-
Just tried the exact same demo with 7.2.1 and 1million root nodes, it's fast as lightning in both directions.
-
Issue with code-editor toolbars
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
@Yaron Check "Always show designer items" under Environment Options / Tool Palette, and voila -
Issue with code-editor toolbars
Attila Kovacs replied to PeterPanettone's topic in Delphi IDE and APIs
Isn't that, that you can pull out any toolbar to undocked state, close it and save desktop settings? -
I can't exactly remember but I can see in my sources that I'm caching (also calculating myself, only once) the Nodeheight's and returning it in VSTMeasureItem event for VT. This would not make any sense if it wasn't too slow for me too, back to the days. Can't remember.
-
@Der schöne Günther Indeed. And also funny. But does not apply then styles are overriding every design time decorations except I'm implementing one custom hook for every different control types.
-
HELP: Decoding of data stored in array of char - RFID tag's
Attila Kovacs replied to CRO_Tomislav's topic in VCL
Don't do that. -
TJson - Strip TDateTime property where value is 0?
Attila Kovacs replied to Lars Fosdal's topic in Network, Cloud and Web
Too bad you can't register a converter for simple types. -
TJson - Strip TDateTime property where value is 0?
Attila Kovacs replied to Lars Fosdal's topic in Network, Cloud and Web
Kinda. Convert it first with ObjectToJsonObject then remove the time 0 pairs then generate the string. Or create a json wrapper for TDateClass where HasDate and NoDate are strings. In this case you have to take care of the Date-Format. btw. "1899-12-30T00:00:00.000Z" is a valid date. 🙂 -
Named pipe failure, multithreading and asynchronous I/O
Attila Kovacs replied to FPiette's topic in Windows API
I can't recompile it on w7 but the exes are working just fine in a w7 VM for me. -
Named pipe failure, multithreading and asynchronous I/O
Attila Kovacs replied to FPiette's topic in Windows API
I'm pretty sure. Win10 -
How to create a weak array?
Attila Kovacs posted a topic in Algorithms, Data Structures and Class Design
Hi, how can I declare a TArray<IFoo> where the elements are weak referenced? -
How to create a weak array?
Attila Kovacs replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
@Stefan Glienke thanks. -
Named pipe failure, multithreading and asynchronous I/O
Attila Kovacs replied to FPiette's topic in Windows API
It works fine on Berlin U2. Edit: 10.3 CE too. -
The simplest way, without having to reimplement a couple of things from the original CMShowingChanged is leaving the form on wsMinimized and then calling a SW_SHOWNOACTIVATE: private procedure CMShowingChanged(var Message: TMessage); message CM_SHOWINGCHANGED; procedure TForm3.CMShowingChanged(var Message: TMessage); begin inherited; ShowWindow(Handle, SW_SHOWNOACTIVATE); end; This will also result a "restore" animation, if enabled.
-
I'd try to override the "show" process and call showwindow with SW_SHOWNOACTIVATE. Maybe there is already something in VCL.
-
@limelect ok, sorry but I'm not operating with explorer at all. I'm using Far Manager. btw. you could lookup libraries/pictures from the mentioned list and fire the same location in a new explorer window without knowing its real location.