Recent

Author Topic: Failed to create win32 control, error: 0  (Read 3571 times)

typo

  • Hero Member
  • *****
  • Posts: 3051
Failed to create win32 control, error: 0
« on: December 18, 2011, 05:39:27 pm »
Windows 7.

Lazarus 0.9.31 r33012 FPC 2.5.1 i386-win32-win32/win64

The error message appears when I show a form.

Any comments?

ludob

  • Hero Member
  • *****
  • Posts: 1173
Re: Failed to create win32 control, error: 0
« Reply #1 on: December 18, 2011, 06:49:02 pm »
Did you install a custom message handler with SetWindowLong? WM_CREATE is sent to a newly created window and if there is something wrong with the message handler returning 0 then no window is created and getlasterror is 0.



 

TinyPortal © 2005-2018