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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

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

Free Pascal - Lazarus mailing list
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?


fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp
lazarus mailing list
[hidden email]