Downloaded r4182 today and built it in Delphi 12:
When starting the IDE, this error message popped up several times:
Is this a known bug?
Why is there no error information?
Not a known bug, it doesn't happen here. Delphi 12 starts without any hitch.
Could you please try to run it in the debugger? Maybe that gives some insight.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I start RAD Studio 12 and the newest Gexpert compiled by source (build 4191) I receive
4 times an error messages during start. All the messages are
Access violation at address 577B507E read from 00000024
During the message MMX Code Explorer build 2580 ist already loaded.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also playing with the EXPERT Manager and stopping the other experts for the IDE start does not help, also moving Gexpert to the beginning or end of the list does not help.
If I remove GExpert everything is fine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can confirm same here. Win 11, Delphi 12.
4 times an error messages during start. All the messages are
Access violation at address 577B507E read from 00000024
This worked some time ago but then it stopped.
Tried removing Registry settings as well. Didn't help.
Also tried to checkout older revisions down to Nov 2023, but the same error occurs.
Could it be related to some windows changes (may be recent updates)?
How can I debug this to see the place where it fails in source ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The access violation is thrown in procedure TfmMacroLibrary.CheckLvMacrosHeight(): FScaler is not yet initialized when this methode is called for the first time by FormResize(), caused by Form.BoundsRect := R in TGExpertsSettings.LoadForm().
Fixed in Rev. #4196
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The question that remains is: Why did this not happen on my computer?
I'm running the current Windows 10 release with the latest updates.
Does this maybe only happen in Windows 11?
Or is this somehow related to the macro library form being docked vs. not docked? (Mine isn't docked.)
Fixing the problem for this one form might not prevent the problem from occurring in another form.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This problem exists since Rev. 4147; where you modified u_dzDpiScaleUtils.pas to call ApplyDpi() at the end of TFormDpiScaler.Create(). I believe it only happens if Windows scaling is active.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now I also got it to happen in a VM under Windows 10. But still not on my development computer. The difference between the VMs and the dev computer is that the latter has got two monitors with different scaling (125 and 100) while the VMs have only one with scaling set to 125. But the IDE on the dev computer is set to open on the monitor with 125 scaling. Usually that results in all sorts of oddities happening rather than a bug not occurring. But I guess If I set scaling to 125 on both monitors that bug will occur.
Edit: Yes, now it does.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes please. Keep bug reports as simple as possible. Mixing several issues in the same report makes it very difficult to keep track on what has been fixed and what still needs attention.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not a known bug, it doesn't happen here. Delphi 12 starts without any hitch.
Could you please try to run it in the debugger? Maybe that gives some insight.
I can reproduce this bug. FScaler is not assigned in TfmMacroLibrary.CheckLvMacrosHeight
If I start RAD Studio 12 and the newest Gexpert compiled by source (build 4191) I receive
4 times an error messages during start. All the messages are
Access violation at address 577B507E read from 00000024
During the message MMX Code Explorer build 2580 ist already loaded.
Also playing with the EXPERT Manager and stopping the other experts for the IDE start does not help, also moving Gexpert to the beginning or end of the list does not help.
If I remove GExpert everything is fine.
I can confirm same here. Win 11, Delphi 12.
4 times an error messages during start. All the messages are
Access violation at address 577B507E read from 00000024
This worked some time ago but then it stopped.
Tried removing Registry settings as well. Didn't help.
Also tried to checkout older revisions down to Nov 2023, but the same error occurs.
Could it be related to some windows changes (may be recent updates)?
How can I debug this to see the place where it fails in source ?
FScaleris not defined inGX_MacroLibrary.pas.Related to DpiScaling.
Also many forms now use too big font when 175% scaling is used in Windows.
Please see attached files.
Last edit: Sergio Barbery 2024-01-30
I'll look at this when I am back home.
The access violation is thrown in procedure TfmMacroLibrary.CheckLvMacrosHeight(): FScaler is not yet initialized when this methode is called for the first time by FormResize(), caused by Form.BoundsRect := R in TGExpertsSettings.LoadForm().
Fixed in Rev. #4196
Thanks Achim!
The question that remains is: Why did this not happen on my computer?
I'm running the current Windows 10 release with the latest updates.
Does this maybe only happen in Windows 11?
Or is this somehow related to the macro library form being docked vs. not docked? (Mine isn't docked.)
Fixing the problem for this one form might not prevent the problem from occurring in another form.
This problem exists since Rev. 4147; where you modified u_dzDpiScaleUtils.pas to call ApplyDpi() at the end of TFormDpiScaler.Create(). I believe it only happens if Windows scaling is active.
It's not that simple either. I just managed to reproduce it in a VM with the following conditions:
It didn't happen in my normal development environment which has the following conditions:
I'll look into it further this weekend. Work is calling.
Now I also got it to happen in a VM under Windows 10. But still not on my development computer. The difference between the VMs and the dev computer is that the latter has got two monitors with different scaling (125 and 100) while the VMs have only one with scaling set to 125. But the IDE on the dev computer is set to open on the monitor with 125 scaling. Usually that results in all sorts of oddities happening rather than a bug not occurring. But I guess If I set scaling to 125 on both monitors that bug will occur.
Edit: Yes, now it does.
@akalwahome Should I open a separate ticket for fixing big font size on scaled display as shown in my attached screenshots above? Thanks!
Yes please. Keep bug reports as simple as possible. Mixing several issues in the same report makes it very difficult to keep track on what has been fixed and what still needs attention.
Fixed in a different way in revision #4197 which should prevent similar errors to occur in other forms at a later time.