Hi everybody!
Little question: I dinamically create a new form with a progbar inside it, whom progression i manage into another procedure, referring to progbar withtprogbar(findcomponent('nameofprogbar'));
In the previous procedure, i set OnClick := @myprocedure; as in the example
with newform do
....
with progbar do
...
OnClick := @myprocedure;
Now... myprocedure(sender: tobject) is required to perform some actions among which there's newform.close.
Every time i click on progbar appears "project raised exception class 'external: sigsegv'" and source editor opens the control.inc file directly to row 1072
MouseUp(Button, KeysToShiftState(Keys), XPos, YPos);
in DoMouseUp procedure.
Obviously, calling myprocedure without click event will get the goal.
So... am i doing anything wrong or could it be a bug?
Thanks.