-
Content Count
3482 -
Joined
-
Last visited
-
Days Won
114
Everything posted by Lars Fosdal
-
Delphi 10.4 - Steps of Error Insight
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
Yes, providing the LSP log would be very helpful. -
TIP: Reporting bugs for RAD Studio / Delphi
Lars Fosdal replied to Lars Fosdal's topic in Tips / Blogs / Tutorials / Videos
Thanks, Leif! Brainfart, I guess. Fixed the broken link in the original post. -
Delphi 10.4 - Steps of Error Insight
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
Please create a report on qualityportal. -
@vhanla - create your report in qualityportal. This not an Idera site, so just writing about it here will not be helpful.
-
You RAD Studio 10.4 Sydney appreciated features and bug fixes
Lars Fosdal replied to Wagner Landgraf's topic in General Help
The new Error Insight is GREAT! It works really well! After years of red squigglies for things that are not wrong, it is really nice to only see squigglies when something actually is wrong. -
Hopefully, this could be a short thread. This report shows the last thirty days of RAD Studio reported issues. At the time of posting, 31 has been created today. https://quality.embarcadero.com/secure/ConfigureReport.jspa?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&selectedProjectId=10000&reportKey=com.atlassian.jira.plugin.system.reports%3Arecentlycreated-report&Next=Next
-
FinalBuilder 8.0.0.2863 Released - with support for Delphi 10.4 Sydney
Lars Fosdal replied to Vincent Parrett's topic in Delphi Third-Party
Thank you for these awesome tools, Vincent! The combo is used to manage our builds, unit testing and devops style push to test facilities. We are very happy with Continua CI and FinalBuilder and cannot do without them! -
Should I separate common units to Public and Internal, or have all Public?
Lars Fosdal replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Daniele's site seems to be blocked by the Syntax Highlighter from AlexGorbatchev.com being unreachable. -
TMemo wraps a native windows control. TVirtualTreeView, all custom. Not sure if you can adujst tab rendering in TVTV, but you can set tab stops in TMemo http://delphitipsandtricks2.blogspot.com/2012/03/set-tab-stops-for-tmemo.html
-
Error creating form: Ancestor for 'TMyDataModule' not found
Lars Fosdal replied to Sonjli's topic in VCL
What about registering the base form? Open form, right click, register -
You also have WM_WTSSESSION_CHANGE that give some messages that allows you to take precautionary actions. https://docs.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtsregistersessionnotification https://docs.microsoft.com/en-gb/windows/desktop/TermServ/wm-wtssession-change procedure ON_WM_WTSSESSION_CHANGE(var Message: TMessage); message WM_WTSSESSION_CHANGE; Note that WTS_SESSION_TERMINATE does not actually work, though.
-
My employer gets the bills, we developers get the invites - but it wasn't always like this. We pestered our local sales rep to fix it.
-
TThread.Sleep in iOS/android background mode threads, what to choose ?
Lars Fosdal replied to Rollo62's topic in Cross-platform
At the time, my son was using a Pocophone F1 also running Android 9, and his phone did not kill the app. My 7 Plus also was on Android 9, while the 3a XL is on 10. It could be OS specific energy saving settings that govern how quick it is to kill apps. Otherwise, I totally agree on sensible state saving and restoring on reactivation. Are there other stay-alive options than navigation, without running as a service? -
TThread.Sleep in iOS/android background mode threads, what to choose ?
Lars Fosdal replied to Rollo62's topic in Cross-platform
This is something that has puzzled me with Android apps. Background: In Norway, we have a walkabout game app ("Stolpejakten" which translate to "The Pole Hunt" ) which has you locating real world markers via a map, and when you arrive at the location, there is a QR code on a wooden pole that you scan to register at the location. It is a nice motivator for extending your walks for "just one more marker". The app uses the GPS to indicate your location in relation to the marker, the app has a somewhat lengthy startup, apparently logging onto a central server, loading the maps and pole locations, and marking your latest marker visits, and restarting at the "home" screen, and not where you last left off. Hence there is a very visible difference between waking up a sleeping instance, vs a dead instance. On my Nokia 7 Plus, this app would go dead in a few minutes behind the lock screen, but on my Pixel 3a XL, it will stay alive for a fairly lengthy period, although sometimes it can die rather quickly. Question: What can prevent or at least reduce the chance of the app being killed? What governs the "survivability" of your app? -
TThread always raises OS Errror
Lars Fosdal replied to pyscripter's topic in RTL and Delphi Object Pascal
That depends. I don't know if the LastError thread var is cleared on a new thread, or if you must do it yourself. SetLastError at thread start will at least ensure it is cleared, but without knowing the code being run, it is impossible to assess if there is any point in doing a "blind" GetLastError. If there are multiple calls to Windows functions in that code, what value is there in only showing the last one? Was the error situation handled without LastError being cleared? Is it then really an error anymore? -
TThread always raises OS Errror
Lars Fosdal replied to pyscripter's topic in RTL and Delphi Object Pascal
This is why Anders' advice is good advice: https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setlasterror -
Delphi Rio IDE hangs again and again
Lars Fosdal replied to microtronx's topic in Delphi IDE and APIs
VS is 32-bit. I bet MS would like for it to be 64-bit as well. We'll get there, eventually. VS Code is 64-bit, but that's just an editor and it is Electron-based. -
Your problem is with LiveBindings. http://docwiki.embarcadero.com/Libraries/Rio/en/System.Bindings.EvalProtocol.EEvaluatorError I don't use LiveBindings, so I don't know how to solve your problem.
-
Are you using Format? You should be using FormatDateTime. FormatDateTime('dd.mm.yyyy', Now); should yield '11.05.2020'
-
language updates in 10.4?
Lars Fosdal replied to David Schwartz's topic in RTL and Delphi Object Pascal
I've also seen compile time issues where you must specify the type T of the iterator for a TArray<T>. -
Can you use ligatures as operators in the actual code?
-
Delphi Rio IDE hangs again and again
Lars Fosdal replied to microtronx's topic in Delphi IDE and APIs
I press Ctrl-S waaay to often, even with the autorecover enabled. The habit is caused by working in an IDE that has a bad tendency of locking up or suddenly go dying. -
Delphi Rio IDE hangs again and again
Lars Fosdal replied to microtronx's topic in Delphi IDE and APIs
Losing 40 minutes of work should be impossible in Rio. -
Why do you need that in a code editor?
-
Addon to hide single visual controls in Form-Designer?
Lars Fosdal replied to PeterPanettone's topic in Delphi IDE and APIs
We make extensive use of frames in VCL. For FMX, it is not quite as clear cut...