🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages Started by tom Tue, 20 Feb 2007 14:40
Question about IdSMTP in Indy
#283
Author: tom
Date: Tue, 20 Feb 2007 14:40
22 lines
1683 bytes
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?
Re: Question about IdSMTP in Indy
#285
Author: Remy Lebeau (TeamB)
Date: Tue, 20 Feb 2007 18:54
20 lines
1548 bytes
"tom" <tom@nospam.com> wrote in message
news:45db084f$1@newsgroups.borland.com...

> 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.

> 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads