SMTPServer on DotNet - Object not set to an instance of an object

Giganews Newsgroups
Subject: SMTPServer on DotNet - Object not set to an instance of an object
Posted by:  Stefan Olsen (stefanolsen19…@hotmail.com)
Date: Thu, 3 Jun 2004

Hi,

I try to use Indy (ver. 10.0.18) to build a SMTP-server on Win2k3 server
running DotNet.
I ran the application in a debugger and got following Exception:

Exception Message:
    A first chance exception of type 'System.NullReferenceException'
occurred in indy.sockets.dll
    Additional information: Object reference not set to an instance of an
object.

Call Stack:

indy.sockets.dll!Indy.Sockets.IndyReplySMTP.SMTPEnhancedCode.get_Available()
+ 0xc bytes

indy.sockets.dll!Indy.Sockets.IndyReplySMTP.SMTPEnhancedCode.GetReplyAsStr()
Line 341 + 0x8 bytes

indy.sockets.dll!Indy.Sockets.IndyReplySMTP.ReplySMTP.AssignTo(System.Marsha
lByRefObject ADest = {Indy.Sockets.IndyReplySMTP.ReplySMTP}) Line 423 + 0x23
bytes

indy.sockets.dll!Borland.Vcl.Classes.TPersistentHelper.Assign(System.Marshal
ByRefObject Self = {Indy.Sockets.IndyReplySMTP.ReplySMTP},
System.MarshalByRefObject Source = {Indy.Sockets.IndyReplySMTP.ReplySMTP})
Line 3627 + 0x39 bytes

indy.sockets.dll!Borland.Vcl.Classes.TCollectionItem.Assign(System.MarshalBy
RefObject Source = {Indy.Sockets.IndyReplySMTP.ReplySMTP}) + 0x16 bytes

indy.sockets.dll!Indy.Sockets.IndyCmdTCPServer.CmdTCPServer.DoConnect(Indy.S
ockets.IndyContext.Context AContext =
{Indy.Sockets.IndySMTPServer.SMTPServerContext}) Line 315

indy.sockets.dll!Indy.Sockets.IndySMTPServer.SMTPServer.DoConnect(Indy.Socke
ts.IndyContext.Context AContext =
{Indy.Sockets.IndySMTPServer.SMTPServerContext}) Line 611
    indy.sockets.dll!Indy.Sockets.IndyContext.Context.BeforeRun() Line 152
    indy.sockets.dll!Indy.Sockets.IndyTask.Task.DoBeforeRun() Line 91
    indy.sockets.dll!Indy.Sockets.IndyThread.ThreadWithTask.BeforeRun() Line
527
    indy.sockets.dll!Indy.Sockets.IndyThread.Thread.Execute() Line 320
    indy.sockets.dll!Borland.Vcl.Classes.TThreadRunner.ThreadProc() Line
11377 + 0xb bytes

Stefan Olsen.

Replies