| View previous topic :: View next topic |
| Author |
Message |
tom Guest
|
Posted: Tue Feb 20, 2007 8:40 pm Post subject: Question about IdSMTP in Indy |
|
|
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
|
Posted: Wed Feb 21, 2007 12:54 am Post subject: Re: Question about IdSMTP in Indy |
|
|
"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 |
|
 |
|