BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question about IdSMTP in Indy

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
tom
Guest





PostPosted: Tue Feb 20, 2007 8:40 pm    Post subject: Question about IdSMTP in Indy Reply with quote



I am baffled. I have a project that has a very simple program that is able to do some simple emailing with the IdSMTP1 component and this works fine.

I have started another program with almost the exact same code to do something similar but now IdSMTP doesn't seem to be working.

Like for instance at this line:

IdSMTP1->Username = "your_username_here";

I get a compile error saying that
[C++ Error] Form_Scheduler_Completion_Unit.cpp(59): E2316 'Username' is not a member of 'TIdSMTP'

Then if I comment that out....the program compiles but when I run it...I get a exception on the next line.


IdSMTP1->Password = "blah_blah";

Project_Site_Viewer.exe raised class EAccessVioloation with message 'Access violation at address 400068AA in module rtl60.bpf. Read of address 00000011'. Process stopped. Use Stop or Run to continue.



Anyone have any idea why this is happening?
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Feb 21, 2007 12:54 am    Post subject: Re: Question about IdSMTP in Indy Reply with quote



"tom" <tom (AT) nospam (DOT) com> wrote in message
news:45db084f$1 (AT) newsgroups (DOT) borland.com...

Quote:
I have started another program with almost the exact same
code to do something similar but now IdSMTP doesn't seem
to be working.

You have an old version of Indy lingering on your machine that is
interfering with the compiler. The Username property used to be named
UserID in old versions.

Quote:
Project_Site_Viewer.exe raised class EAccessVioloation with message
'Access violation at address 400068AA in module rtl60.bpf. Read of
address 00000011'. Process stopped. Use Stop or Run to continue.

You are accessing a NULL pointer somewhere.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.