Jump to content

strange behavior callbacks!


flexdev

Recommended Posts

Hi,

in a complex form I have this code :
_xScad.ShowModal(
      procedure  (Sender: Tcomponent; AResult: Integer)
      begin
        if AResult = mrOk then
          LoadEvent;

      end
   );

Anonymous procedure not execute at  showmodal return .... but if change the code to

.....

procedure TMainForm.ReLoadData(Sender: Tcomponent; AResult: Integer);
begin
  LoadEvent;
end;

...

  _xScad.ShowModal(ReLoadData);

the callback procedure is execute....


in many parts of my code I use anonymous callback procedures and works perfectly ....

 

Thank's for help.... :-)

 

Link to comment
Share on other sites

23 hours ago, Sherzod said:

Hi,

Which build are you using?

Can you make a simple testcase for reproduce?!

 

restarted the pc, clean and rebuild the project .... ... the problem disappeared! :huh::o

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...