

Lajos Juhász
-
Content Count
1069 -
Joined
-
Last visited
-
Days Won
15
Posts posted by Lajos Juhász
-
-
It could be that when the library detects the debugger it slows down. You can try using Lazarus at Windows to see if it behaves the same.
-
10 minutes ago, Lars Fosdal said:But you are still blocking, if looping around a wait.
Are you going to put a ProcessMessages in that loop?The question was whether it is possible to check if the future is completed or not. Method Wait can be used to achieve that. (The design of wait could be improved to support non-blocking call, but we can argue if a couple of ms delay is significant or not.)
Nobody mentioned that the future is going to be used in the main thread. Whenever ProcessMessages should be used or process paint messages depends on how long the calculation should take. If it is under a minute or the application should be blocked during the life of the method, it should not be used.
-
1 minute ago, Lars Fosdal said:Wait = Block.
Read the documentation:
function Wait(Timeout: Cardinal = INFINITE): Boolean; overload;
You do not have to wait for infinite.
-
5 minutes ago, bravesofts said:here is no callback in tfuture to use unless monitoring her status with while loop which also freeze the app
That is the idea behind future to do something until you definitely need the result of the future. If you want to check if the future is finished you can use the wait method.
-
The answer is the same as for the previous question you have to change the StyledSettings. In this case you are changing the Family and Style thus you have to remove those elements from the set, you do not change the Style of the font.
You can replace:
L1.StyledSettings:=L1.StyledSettings-[TStyledSetting.Style]; L2.StyledSettings:=L2.StyledSettings-[TStyledSetting.Style];
with:
L1.StyledSettings:=[];
L2.StyledSettings:=[];
-
Calling a method of the target form?
-
1
-
-
4 minutes ago, Die Holländer said:But a dataset like DBGrid or client dataset is caching the calculated field values, right?
First of all, DBGrid is not a dataset, it is a component that displays data. How should a component know if and when the field value must be calculated again and cannot use the cached value?
On the other hand you can use fkInternalCalc (caches) stores the calculated values https://docwiki.embarcadero.com/Libraries/Athens/en/Data.DB.TFieldKind.
-
CaretPositionProp is not nil, however when invoking the GetValyue in CaretPositionProp.GetValue self is an Inaccessible value:
FMX.Memo.TCustomMemo.GetCaretPosition
:00cfcac8 RawInvoke + $40
System.Rtti.RawInvoke(???,???)
:00cfcead Invoke + $249
System.Rtti.Invoke(nil,(),???,???,True,True)
:00cf5689 TRttiInstanceProperty.DoGetValue + $DD
System.Rtti.TRttiInstanceProperty.DoGetValue(???)
:00cf54ae TRttiProperty.GetValue + $26Since it is pointing to an invalid address the Access Violation is when the code tries to execute Model.CaretPosition.
-
Using Chrome there is still no warning. I got the warning using FireFox.
-
Use Google Chrome, no error messages.
-
If you are using a standard windows user then you must start the IDE elevated in order to have a chance to verify which patches are installed.
-
You see he images because the IDE will copy paste the reference to the imagelist on the DM. The compiler will find the DM containing the pictures and will show them. You can save the form, close all the projects and open the form the IDE will remove the reference to the datamodule and you will not see the pictures anymore.
-
This also fails in XE5 and 11.2.
-
1
-
-
FireDAC is using the meta information from the connection library to determine the data types. You can try to use cast to change the data type for the field in your test application.
-
1
-
-
The version also matters since it was changed for version 12.
https://dalijap.blogspot.com/2023/09/coming-in-delphi-12-disabled-floating.html
-
43 minutes ago, PeterPanettone said:From your humorous response, I gather that Embarcadero has no timetable for supporting Delphi Windows apps on ARM CPUs and that you don't consider Embarcadero to be a serious company.
It was not humorous, that what Embarcadero did communicate about the platforms and the way they do releases. The same was with the 64-bit IDE. For years it was a side project that they were testing. Then when some databases stopped shipping 32-bit client libraries they have decided it is time to ship a half-baked solution....
-
1
-
-
Yes, they will support it ASAP when they think it is good idea.
-
There is no TUnicodeStringField this is from the Delphi Unicode Migration (https://www.embarcadero.com/images/dm/technical-papers/delphi-unicode-migration.pdf😞
While this update makes the reading and writing of Unicode data in the TField classes consistent with the UnicodeString data type, and eliminates some potential data conversion issues, some of the class and member names in the TDataSet arena remain confusing. For example, there is no TUnicodeStringField type, and the TStringField class still stores its value as an AnsiString value. If you want a Unicode TField, you use TWideStringField (which, as mentioned in the preceding paragraph, is stored as a UnicodeString in Delphi 2009 and later).
-
5 minutes ago, Charlie Heaps said:Not sure if anyone from Embarcadero ever sees these posts, but it does seem like a pretty basic request to expect message dialogs to match the style of an app.
Even if anyone from Embarcadero will ever read this there is a low chance that they will do anything based on a forum post. They have an official channel for bug reports.
-
20 minutes ago, dummzeuch said:You can continue using the 32 bit IDE to compile and debug 64 bit applications.
Yes you can, but can not use the 32 bit IDE if the database has only 64 bit client library to test SQL statements, create fields in the designer.
-
13 minutes ago, ToddFrankson said:They specifically stated that you should use the 32bit IDE and play with the 64 bit.
The only exception if you are working with databases that now ship only 64 bit client libraries. Most, if not all, of the modern databases has discontinued the 32 bit client libraries.
-
1
-
-
Nope. According to the release webinar they are working on to make a deal to continue to provide it.
-
It is with BOM since the IDE introduced the file format. I believe I am using since XE5(?).
Edit. I was wrong since D2007.
-
Ok this is D13.0 beta 1. When I try to start it as admin in order to be able to use KSVC (yesterday it was working).
[00F8DCB3]{bds.exe } AppMain.TAppBuilder.TitleBarPanelPaint + $177
[53CD3C5C]{vcl290.bpl } Vcl.Graphics.TBrush.SetColor (Line 3621, "Vcl.Graphics.pas" + 16) + $4
[53D010AF]{vcl290.bpl } Vcl.Controls.TControl.ScaleValue (Line 9101, "Vcl.Controls.pas" + 1) + $15
[00F8DCA8]{bds.exe } AppMain.TAppBuilder.TitleBarPanelPaint + $16C
[53D07FE7]{vcl290.bpl } Vcl.Controls.TWinControl.GetClientRect (Line 13489, "Vcl.Controls.pas" + 1) + $9
[52206EE8]{vclwinx290.bpl} Vcl.TitleBarCtrls.TCustomTitleBarPanel.Paint (Line 1553, "Vcl.TitleBarCtrls.pas" + 195) + $20
[53D0B32F]{vcl290.bpl } Vcl.Controls.TCustomControl.PaintWindow (Line 15312, "Vcl.Controls.pas" + 6) + $5
[53D04C21]{vcl290.bpl } Vcl.Controls.TWinControl.PaintHandler (Line 11334, "Vcl.Controls.pas" + 19) + $B
[522071AB]{vclwinx290.bpl} Vcl.TitleBarCtrls.TCustomTitleBarPanel.WMPaint (Line 1635, "Vcl.TitleBarCtrls.pas" + 5) + $4
[53CFF2AE]{vcl290.bpl } Vcl.Controls.TControl.WndProc (Line 7997, "Vcl.Controls.pas" + 91) + $6
[53E0D243]{vcl290.bpl } Vcl.Themes.TStyleManager.GetStyle (Line 5823, "Vcl.Themes.pas" + 7) + $D
[54131860]{rtl290.bpl } System.@TryFinallyExit (Line 23829, "System.pas" + 😎 + $0
[53E0D331]{vcl290.bpl } Vcl.Themes.TStyleManager.GetStyle (Line 5834, "Vcl.Themes.pas" + 18) + $1E
[541305CB]{rtl290.bpl } System.TObject.Dispatch (Line 19280, "System.pas" + 11) + $0
[53E11281]{vcl290.bpl } Vcl.Themes.TStyleHook.WndProc (Line 7734, "Vcl.Themes.pas" + 38) + $6
[53E11462]{vcl290.bpl } Vcl.Themes.TMouseTrackControlStyleHook.WndProc (Line 7833, "Vcl.Themes.pas" + 1) + $4
[53E6389B]{vcl290.bpl } Vcl.Forms.TFormStyleHook.WndProc (Line 20679, "Vcl.Forms.pas" + 31) + $5
[53E5E542]{vcl290.bpl } Vcl.Forms.TFormStyleHook.IsStyleBorder (Line 18549, "Vcl.Forms.pas" + 1) + $13
[53E5E580]{vcl290.bpl } Vcl.Forms.TFormStyleHook.HandleMessage (Line 18556, "Vcl.Forms.pas" + 2) + $6
[53F3BA78]{vcl290.bpl } Vcl.Styles.TStyleEngine.HandleMessage (Line 3665, "Vcl.Styles.pas" + 20) + $8
[54132789]{rtl290.bpl } System.@UStrAsg (Line 27009, "System.pas" + 18) + $0
[53E0D464]{vcl290.bpl } Vcl.Themes.TStyleManager.HandleMessage (Line 5892, "Vcl.Themes.pas" + 11) + $11
[53D028B7]{vcl290.bpl } Vcl.Controls.TWinControl.DoHandleStyleMessage (Line 10033, "Vcl.Controls.pas" + 0) + $F
[53D04963]{vcl290.bpl } Vcl.Controls.TWinControl.WndProc (Line 11231, "Vcl.Controls.pas" + 178) + $6
[522071D1]{vclwinx290.bpl} Vcl.TitleBarCtrls.TCustomTitleBarPanel.WndProc (Line 1641, "Vcl.TitleBarCtrls.pas" + 1) + $4
[53D03E28]{vcl290.bpl } Vcl.Controls.TWinControl.MainWndProc (Line 10900, "Vcl.Controls.pas" + 3) + $6
[5425520C]{rtl290.bpl } System.Classes.StdWndProc (Line 19091, "System.Classes.pas" + 😎 + $0
[53D03E28]{vcl290.bpl } Vcl.Controls.TWinControl.MainWndProc (Line 10900, "Vcl.Controls.pas" + 3) + $6
[53E54C2B]{vcl290.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 13408, "Vcl.Forms.pas" + 23) + $1
[53E54C56]{vcl290.bpl } Vcl.Forms.TApplication.ProcessMessages (Line 13430, "Vcl.Forms.pas" + 1) + $4
[00F81053]{bds.exe } AppMain.TAppBuilder.ApplicationActivated + $7
[53EAEF3F]{vcl290.bpl } Vcl.AppEvnts.TCustomApplicationEvents.DoActivate (Line 210, "Vcl.AppEvnts.pas" + 1) + $12
[53EAF5DD]{vcl290.bpl } Vcl.AppEvnts.TMultiCaster.DoActivate (Line 438, "Vcl.AppEvnts.pas" + 5) + $C
[53E540D4]{vcl290.bpl } Vcl.Forms.TApplication.WndProc (Line 12980, "Vcl.Forms.pas" + 140) + $C
[5425520C]{rtl290.bpl } System.Classes.StdWndProc (Line 19091, "System.Classes.pas" + 😎 + $0
[53E54C2B]{vcl290.bpl } Vcl.Forms.TApplication.ProcessMessage (Line 13408, "Vcl.Forms.pas" + 23) + $1
[53E54C56]{vcl290.bpl } Vcl.Forms.TApplication.ProcessMessages (Line 13430, "Vcl.Forms.pas" + 1) + $4
[00FD2B4C]{bds.exe } bds.bds + $CC
Delphi 12.3 : no longer compiles to 64 bit!
in Delphi IDE and APIs
Posted
Same on my system 2 different exe files.