Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NCControls throw exceptions under Delphi 12 #311

Open
StefanGrube opened this issue Nov 16, 2023 · 6 comments
Open

NCControls throw exceptions under Delphi 12 #311

StefanGrube opened this issue Nov 16, 2023 · 6 comments

Comments

@StefanGrube
Copy link
Contributor

I just recompiled my testapp under D12 without any changes compared to D11, now the app throws a gazillion access violation exceptions on start.
Using madExcept to catch them, this is what seems to be the root issue:

main thread ($486c):
000005db +000 ???
00eba971 +139 VCLStylesTest.exe Vcl.Themes TStyleHook.WndProc
00ebab52 +00a VCLStylesTest.exe Vcl.Themes TMouseTrackControlStyleHook.WndProc
00f0bb04 +110 VCLStylesTest.exe Vcl.Forms TFormStyleHook.WndProc
00eba196 +066 VCLStylesTest.exe Vcl.Themes TStyleHook.HandleMessage

main thread ($486c), inner exception level 1:

EAccessViolation, Zugriffsverletzung bei Adresse 00C174AF in Modul 'VCLStylesTest.exe'. Schreiben von Adresse 00F65701
00c174af +007 VCLStylesTest.exe System.Types Rect
010f03b5 +069 VCLStylesTest.exe Vcl.Styles.NC 2022 +8 Detour_TFormStyleHook_GetBorderSize
00dac8ae +016 VCLStylesTest.exe Vcl.Graphics TCanvas.SetPenPos
00daca24 +04c VCLStylesTest.exe Vcl.Graphics TCanvas.SetHandle
00eba682 +056 VCLStylesTest.exe Vcl.Themes TStyleHook.WMNCPaint
00eba971 +139 VCLStylesTest.exe Vcl.Themes TStyleHook.WndProc

main thread ($486c), inner exception level 2:

EAccessViolation, Zugriffsverletzung bei Adresse 00000500 in Modul 'VCLStylesTest.exe'. Ausführung von Adresse 00000500
00000500 +000 ???
00eba971 +139 VCLStylesTest.exe Vcl.Themes TStyleHook.WndProc
00ebab52 +00a VCLStylesTest.exe Vcl.Themes TMouseTrackControlStyleHook.WndProc
00f0bb04 +110 VCLStylesTest.exe Vcl.Forms TFormStyleHook.WndProc
00eba196 +066 VCLStylesTest.exe Vcl.Themes TStyleHook.HandleMessage

main thread ($486c), inner exception level 3:

EAccessViolation, Zugriffsverletzung bei Adresse 00C174AF in Modul 'VCLStylesTest.exe'. Schreiben von Adresse 00F65701
00c174af +007 VCLStylesTest.exe System.Types Rect
010f03b5 +069 VCLStylesTest.exe Vcl.Styles.NC 2022 +8 Detour_TFormStyleHook_GetBorderSize
00dac8ae +016 VCLStylesTest.exe Vcl.Graphics TCanvas.SetPenPos
00daca24 +04c VCLStylesTest.exe Vcl.Graphics TCanvas.SetHandle

And so on...

@StefanGrube
Copy link
Contributor Author

After just removing/outcommenting the NCControls, the app is working without any more problems.

@StefanGrube
Copy link
Contributor Author

Happens with the demo project "Vcl Styles Utils NC (Demo App)" from your repository as well.

@StefanGrube StefanGrube changed the title NCControls though exception under Delphi 12 NCControls throw exceptions under Delphi 12 Nov 17, 2023
@jdorlon-Quest
Copy link

jdorlon-Quest commented Jan 8, 2024

I am experiencing this also. Is there any solution besides excluding the VCL.Styles.NC unit from my project?

@luapfr
Copy link

luapfr commented Feb 22, 2024

I also have the same problem

Has anyone found any solution ?

@jdorlon-Quest
Copy link

jdorlon-Quest commented Feb 22, 2024 via email

@luapfr
Copy link

luapfr commented Feb 22, 2024

I use these buttons a lot in form captions, it would be a great correction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants