Using Assert for Trace statements (was: [lazarus] LazarusPascal code)

Florian Klaempfl Florian.Klaempfl at
Thu May 4 04:47:04 EDT 2000

"Michael A. Hess" wrote:
> Marc Weustink wrote:
> >
> > Just an idea, write an app/form (or apps) to test all our components.
> > At least I don't know the status of all components. With the latest
> > changes not all controls behave as they should (missing events and
> > stuff). Starting with this you will find thing to fix.
> That is a good idea. This is something I have been wanting to do for
> some time but never find the time. Make a simple form with all of the
> various components available. This serves 2 purposes. It allows us to
> test the functionality of controls and when changes are made it is easy
> to figure out if other controls are broken. Secondly it allows us to
> have a nice screenshot to place on the web site showing exactly what can
> be built with the LCL.
> Be sure to include all of the standard dialogs and tabs, etc. etc. etc.

This could be extended to contain some advanced test tool like the 
"gremlins" from the Palm Emulator: these gremlins do some pseudo random
input to stress your application, it shouldn't be that hard by
sending wm_keydown/wm_mouse*** messages.

Pseudo random because it must be reproducable if it crashes: this can
be done easily using a specific randseed value instead of calling

More information about the Lazarus mailing list