I had a simple email smtp using Indy 8 which worked ok, when I moved up to Indy 9 the program keeps throwing Eaccess violations. I am using Borland C++ 6 pro. The strange thing is if I set the IdMessage and IdSmtp variables at design time it works fine with no exceptions.
IdMessage1->From->Address = Fromtxt->Text;
IdMessage1->Recipients->EMailAddresses = Totxt->Text;
IdMessage1->Subject = Subjecttxt->Text;
IdMessage1->Body->CommaText = Bodytxt->Text;
IdSMTP1->Host = Hosttxt->Text;
IdSMTP1->Password = Passwordtxt->Text;
IdSMTP1->UserId = Useridtxt->Text;