[lazarus] ToolBar/ToolButton

Marc Weustink marc at lazarus.dommelstein.net
Tue Aug 8 18:19:51 EDT 2000


At 14:46 08-08-2000 -0500, Shane Miller wrote:
>If you put in your code
>
>{ASSERTIONS ON}
>then everytime it reaches an ASSERT it's print the text.
>
>What it does is it prints the second parameter if the first one is 
>false.  Notice we put false in there so they all would print.  What you 
>can do is use assert's to check for critical errors.  GTK uses it to check 
>for null values.
>
>ASSERT(pixmap <> nil,'ERROR: PIXMAP is nil');
>
>something like that...

In addition:

If in Lazarus you start the message with "trace:" (without quotes) it won't 
raise an exception but print the message and continue execution. This way 
you can turn of and on debug messages.

Marc






More information about the Lazarus mailing list