-
Content Count
602 -
Joined
-
Last visited
-
Days Won
7
Posts posted by Tommi Prami
-
-
1 minute ago, DelphiUdIT said:May be there is an evaluation error in the routine with negative TDateTime (less then year 1900 in "System.DateUtils" at line 3487 ... the operation should be "minus" if the date il older then 1900 ....
Value := LDate + LTime;
Most likely, all failed, at quick glance, where about 1800 or older...
-
4 hours ago, Stefan Glienke said:Anyone who has researched a bit into sorting algorithms in the past 20 years knows that a pure quicksort is hardly anything good enough to be used as general purpose sorting algo in a runtime
Average case has most likely very small amount of items to sort. I think I saw somewhere that Bubble Sort would be faster than QuickSort on very small item counts. Not sure tough.
But better is always better and faster is faster, PDQSort was quite interesting, quick look had interesting cases when it is very fast. Seems that it has no really bad worst cases either.
Did not find very good comparison against many other algorithms. Anyhow getting better default sort algorithms to RTL most likely would not hurt much 🙂
-Tee- -
First weirdness in D12.2
ISO8601ToDate('0600-12-31T13:13:13Z') returns wrong value
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1747 -
10 minutes ago, Lajos Juhász said:Using
procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(ISO8601ToDate('0600-12-31T13:13:13Z').ToString); end;
I get:
[Window Title]
Project1[Content]
01.01.0601 10:46:47 AM[OK]
Seems to return wrong value...
That is not only value it fails... I make bug report...
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1747 -
Yellow,
Have following Issue, used to work with 12.1 and many older versions:
ISO8601ToDate() fails on following '0600-12-31T13:13:13Z' -> 1.1.0601 10.46.47 (d.m.yyyy...)
Can someone confirm, before file bugreport. Some online converter at least managed to parse that. So it should be valid issue.-Tee-
-
8 hours ago, EugeneK said:These ones are in old system, so they are read only. I wonder should I copy these ones to new one?
I think you should repost them to new bugtracker, most likely voting on old tracker does nothing anymore, voting/commenting on new might have some benefit
.
-
QUIC seems very interesting protocol. Dunno does MSQuic support HTTP/3 also on top of it tough.
Would be nice to have implementation for Delphi...-tee-
-
Post bug reports or feature requests what you feel need some publicity.
I'll post mine:
Default "styled elements" appears to the inherited form needlessly (into dfm)
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-779
Add Compiler/AST assisted "With remover" refactoring tool
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1666
SimpleRoundTo returns wrong value
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1651
-Tee--
1
-
-
On 8/27/2024 at 5:02 PM, JonRobertson said:I've been working in Delphi 7 projects for the past year. Some are being migrated to 11.3+ and some are staying with Delphi 7. I always refactor with statements away by hand, but even that can be tricky. For example, I learned after refactoring several "with dataset do ... while not Eof do ; Next;" constructs, and overlooking one call to Next, that TForm has a public Next method, related to MDI children of a MDI parent.
https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.Forms.TForm.Next
Hello infinite loop! Now, go away.
This is why long long ago made feature request of compiler/AST assisted with-removed refactoring tool. It never happened.
Made new one in the new Bug-tracker: https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1666
Please comment the bug report and give some pressure...-Tee-
-
1
-
-
3 hours ago, Uwe Raabe said:Was talkin about the original link : https://docwiki.embarcadero.com/RADStudio/Athens/en/Saving_and_Recovering#Autosave
-Tee-
-
On 12/25/2023 at 4:27 PM, Uwe Raabe said:The docs explains it:
That link talks about the .dsK file not the .dsV, but seems to be used in same functionality tough.
-
On 7/2/2024 at 10:23 PM, Anders Melander said:I don't know how SamplingProfiler works but I would think that it should be able to show you the call stack leading to NtDelayExecution. That should tell you from where and why it's being called.
For better results run the measured process over and over again while profiling.
It gets more accurate with every sample you get.
I've even run with Monte Carlo enabled (multi threaded app) for 30 minutes, and then check the results. -
2 hours ago, Uwe Raabe said:Actually, these kind of quirks are the reason why Install for me only is recommended.
Noted!.
That is totally reasonable, if it takes too much time and/or effort. That is such a small problem, that no need to worry, I think.-Tee-
-
-
-
3 minutes ago, Uwe Raabe said:You can always configure a different (or even no) shortcut to any MMX command. See MMX properties -> Key bindings.
Thanks...
-Tee-
-
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1265
Thought it was default dialog from IDE, but as it behaved differently than IDE default, uninstalled MMX to confirm.
Couple of related things.
1. Can I deactivate MMX to override Ctrl+F12
2. Or could the MMX version work the way in IDE default work, I can write multiple words to narrow search down.
I rarely remember exact name, so I write something like "custom invoice edit" to get MyForm.Beautiful.Custom.Invoice.Magic.Edit.pas
-Tee- -
7 minutes ago, Dalija Prasnikar said:Raising exceptions in constructor never ever lead to memory leaks. Only if the code in destructor is bad and is not able to clean up partially initialized object instances. such situations may look like raising exception in constructor is at fault, while actually it is the destructor that needs to be fixed in such case.
Would be nice to know where this misconception of mine comes from, as it seems that I am not alone.
I have no recollection where I got that from.,
-Tee- -
1 hour ago, Der schöne Günther said:I am absolutely bewildered.
That is absolutely not true.
Tested this and I stand corrected.
I bet this was the case way back at least, that exception in constructor was leading to memory leaks. Might be still wrong tpugh.-Tee-
-
At least exception raising in constructor might not be best practise.
-Tee- -
Little bit more polished version: https://github.com/TommiPrami/OLEDBlackScreen/releases/tag/Alpha_1.2.3
-
Made first test "Release"
Little of usage info in the readme.mdNote that it's start as minimized, sould block the sleep and screensaver (which is my point, might be optional later), and just show black screen.
Why Im made this, is that I have LG OLED TV as monitor, and don't want to go to screensaver at home office, and would like to go to the back screen.
https://github.com/TommiPrami/OLEDBlackScreen
Prebuild exe if you dare to use: https://github.com/TommiPrami/OLEDBlackScreen/releases/tag/Alpha_0.1-Tee-
-
Just now, Rollo62 said:While another, long running task is in foreground, for example you wat 1h Youtube video in the browser.
This means Global is "active" (even if the user is idle), while your local App is Idle.
What do you expect to happen in such situation?
That is Good point, most likely that does not work currently, maybe...
Thanks for the bug, that needs to be fixed, somehow...-Tee-
-
42 minutes ago, Rollo62 said:Its unclear to me, if you are looking after an application-wide or global detection of user-idle?
For the local app, I think its easy, but for the global that can be tricky.Donät know what you mean by local/global.
Mainly I need to know is the user being using mouse or keyboard etc. At least for now that seems to be enough.
GetLastInputInfo() is working well for now.
I'll try to get this thingy more than less ready this week, so I can show it to you,... Not much to do but...-Tee-
Delphi bug reports or feature requests to "vote"/comment for (important, fatal etc)/
in Delphi IDE and APIs
Posted
IF possible, check your tickets on the new Jira, that they are visible to others also...
For example This is not visible to me; https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-446
If no proprietary information, please make tickets public.
-Tee-