[lazarus] mwEditCustom bug killed, compiles as part of lazarus but crashes

Marc Weustink Marc.Weustink at cuperus.nl
Mon Nov 8 05:17:42 EST 1999


Ok, some report on experiences this weekend.
I finally got a compiled lazarus with a reference to mwCustomEdit. You get
an internal error on compileing when something is changed in Controls and
mwCustomEdit isn't recompiled. Somewhere the dependencies get mixed up if
you do just a make. make clean;make works fine.

After runnig lazarus it dumps. This has something to do with the last
changes I made. With the introduction of Handle/HandleNeeded/CreateWnd, at
least GTK (but I guess GT and WIN also) objects (merely forms) are created
when they are needed. So in the Application.Init part, the LCL object
structure is created. In Applucation.Run, the GTK/GT/WIN objects are
created. This you can see in the debug output.

The reason why lazarus crashes now is that some routines assume the window
is already created. Like InvalidateWnd (the reason now). Since the window
isn't created yet, a call to invalidate sould do nothing. (The moment the
window is created it has (re)drawn itself already ;-)

In the next days I plan to look after these kind of routines to fix them.

Marc






More information about the Lazarus mailing list