Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-05

FHandle causes AV in TMonitor.GetPixelsPerInch()

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

I'm debugging the issue reported about LCL-CustomDraw and lcl-fpgui causing an AV at application start up.

I traced the issue back to TMonitor.GetPixelsPerInch() which is called in TCustomForm.AfterConstruction(). As soon as GetPixelsPerInch() tries to reference FHandle in any way, it throws an AV. Anybody got some hints as to why both custom drawn widgetsets have this issue?

Would it be some window handle allocation timing issue for custom drawn widgetest? ie: The handles are allocated later that other non Object Pascal based widgetsets?

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email