[Lazarus] FHandle causes AV in TMonitor.GetPixelsPerInch()

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Fri May 3 12:56:33 CEST 2019


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


More information about the lazarus mailing list