You have the following options:
- send that email from within a thread
- if you use indy, put an antifreeze component on the form (Indy Misc pallette, second component after socks; this is for delphi 7/indy 9)
- pass the Application object to the library with the same procedure/function you use to send the email.
The first 2 solutions are the ones I strongly recommend. The last one is tricky and it works only in some cases: when you are able to call processmessages every x miliseconds for example (this usually happens in a loop)
Main Topics
Browse All Topics





by: RadikalQ3Posted on 2005-07-27 at 11:21:46ID: 14539649
Hi!
Test with Sleep(0);
for request timeslices for your application.