Lajos Juhász
Members-
Content Count
986 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Lajos Juhász
-
Feature req: Compiler unit dependency graph / log with warnings about circularity
Lajos Juhász replied to Lars Fosdal's topic in Delphi IDE and APIs
For me MMX Code Explorer works perfectly to reduce circular references (Unit dependency Analyzer). For compiler stability possible it's more important to write the entire unit name eg. Winapi.Windows instead of Windows and having a large list of unit scopes names in the options. -
FireDAC Create table with TFDTable class at SQL Postgres 14
Lajos Juhász replied to shalapai's topic in Databases
I cannot help here. If you're going to feel better I have similar issues with auto generated SQLs on Informix. My solution is to generate SQL in my code and don't rely on auto generated statements.- 18 replies
-
- create table
- tfdtable
-
(and 1 more)
Tagged with:
-
Android Foreground Server location access blocked
Lajos Juhász replied to Bart Kindt's topic in General Help
Most probably you're looking at wrong place: https://developer.android.com/training/location/permissions -
You have to download the Windows SDK and use the signtool. (https://learn.microsoft.com/en-us/windows/win32/seccrypto/using-signtool-to-sign-a-file).
-
Your report has a status Open. It's not rejected (yet).
-
I can confirm using both OnClick and OnChange events that I can receive: 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000 45113 -700000
-
delphi Thread ITask.ExecuteWork not wait until Task finish in mobile devices?
Lajos Juhász replied to bravesofts's topic in Cross-platform
No. The reason to create a thread is to move to the next line without waiting for a block of code (inside the thread) to complete. That's the purpose for threads in every platform.- 24 replies
-
- android
- multithreading
-
(and 2 more)
Tagged with:
-
delphi Thread ITask.ExecuteWork not wait until Task finish in mobile devices?
Lajos Juhász replied to bravesofts's topic in Cross-platform
On the other hand I believe you should learn a bit more about multi threading.- 24 replies
-
- android
- multithreading
-
(and 2 more)
Tagged with:
-
delphi Thread ITask.ExecuteWork not wait until Task finish in mobile devices?
Lajos Juhász replied to bravesofts's topic in Cross-platform
On mobile devices you should never block the main thread (or risk that the OS will terminate your program). Without more details we cannot help you. Most probably you want to disable the UI elements that are not allowed while your background thread is executing.- 24 replies
-
- android
- multithreading
-
(and 2 more)
Tagged with:
-
delphi Thread ITask.ExecuteWork not wait until Task finish in mobile devices?
Lajos Juhász replied to bravesofts's topic in Cross-platform
https://blog.marcocantu.com/blog/2014_may_background_delphi_android_threads.html- 24 replies
-
- android
- multithreading
-
(and 2 more)
Tagged with:
-
Thank you pyscripter for the enormous work on synedit.
-
Is there a Sunday between 2 dates ?
Lajos Juhász replied to Henry Olive's topic in RTL and Delphi Object Pascal
you can ask AI to write this code. An anser from Bing function IsSundayBetween(StartDate, EndDate: TDateTime): Boolean; var Day: TDateTime; begin Result := False; // assume there is no Sunday between the dates Day := StartDate; // start from the start date while Day <= EndDate do // loop until the end date begin if DayOfWeek(Day) = 1 then // check if the day is Sunday begin Result := True; // set the result to true Break; // exit the loop end; Day := Day + 1; // increment the day by one end; end; -
Linux Issues: unsupported DW_FORM value: 0x1f
Lajos Juhász replied to RussellW's topic in Cross-platform
there is an open RSP - https://quality.embarcadero.com/browse/RSP-39793. -
Delphi 10.2.3 - Stack Overflow Error Opening Any Project
Lajos Juhász replied to James Steel's topic in Delphi IDE and APIs
There is one acient technique: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Testing_Installed_Components -
https://stackoverflow.com/questions/25843845/how-to-have-delphi-twebbrowser-component-running-in-ie9-mode
-
'for i:= 0 to 4' does 6 loops when not in Debug mode
Lajos Juhász replied to Allan Olesen's topic in General Help
My guess is different memory layout in debug and release mode. That's why the code inserted to debug changed the behaviour of the bug. -
If you enable Runtime Themes you delegate the drawing for some components to Windows and the colors from the Active Windows Theme is used. In ancient versions of Delphi this was done through XPManifest. You can use VCL Styles to customize the drawing.
-
var x: real; begin SetExceptionMask(exAllArithmeticExceptions); x:=0/0 ; showmessage(FloatToStr(x)); Most probably some dll changes the exception mask.
-
One possible reasould could be that FindFirst would not return subfolders that doesn't match the pattern. If agree there are bugs for example (SR.Attr and faDirectory) = SR.Attr should be (SR.Attr and faDirectory) = faDirectory
-
Your code is working for me. A note that you're leaking memory findfirst will allocate some memory and that must be released with FindClose(SR). Also you should never write Form1.Listbox1.
-
it's already discontinued product )
-
I've never tested myself. A google search returned posts from 2001 that this is how MS Windows is designed: http://www.delphigroups.info/2/63/320384.html.
-
the original post doesn't said if it's a multiset or not.
-
The list would contain the control twice (like a multiset). If you don't want an object twice you can before add check indexof.
-
You could also use a generic list? That also has everything you wrote above.