Article View: borland.public.cppbuilder.internet.socket
Article #3500Problem with TIdFTPServer (BSoD)
From: Stanislav Horal
Date: Wed, 07 Sep 2005 14:26
Date: Wed, 07 Sep 2005 14:26
54 lines
2555 bytes
2555 bytes
Hi all,
I have a little FTP server with Indy 9 components. When user connects (e.g.
Total Commander), then disconnects, connects, disconnects... sometimes I
get Windows Blue Screen of Dead :-( . This is the smallest code, when this
error still appears:
//---------------------------------------------------------------------------
void __fastcall TFormMain::FormCreate(TObject *Sender)
{
ButtonStart->Enabled=true;
ButtonStop->Enabled=false;
}
void __fastcall TFormMain::ButtonStartClick(TObject *Sender)
{
FTPServer->Active=true;
ButtonStart->Enabled=!FTPServer->Active;
ButtonStop->Enabled=FTPServer->Active;
}
void __fastcall TFormMain::ButtonStopClick(TObject *Sender)
{
FTPServer->Active=false;
ButtonStart->Enabled=!FTPServer->Active;
ButtonStop->Enabled=FTPServer->Active;
}
void __fastcall TFormMain::FTPServerListDirectory(TIdFTPServerThread
*ASender,
const AnsiString APath, TIdFTPListItems *ADirectoryListing)
{
TIdFTPListItem *LFTPItem;
ADirectoryListing->ListFormat=flfUnix;
ADirectoryListing->DirectoryName=APath;
LFTPItem=ADirectoryListing->Add();
LFTPItem->FileName="test.txt";
LFTPItem->Size=100;
LFTPItem->ItemType=ditFile;
LFTPItem->ModifiedDate=Now();
LFTPItem->OwnerName="anonymous";
LFTPItem->GroupName="all";
LFTPItem->OwnerPermissions="rw-";
LFTPItem->GroupPermissions="rw-";
LFTPItem->UserPermissions ="rw-";
}
//---------------------------------------------------------------------------
What I am doing wrong? Error appears only on non-NT platforms (98, Me).
-Stanley-
Technical Details
Message-ID:
<431ef874@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4b888b12003700ea,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Stanislav Horal" <stanislav.horal@ucm.sk> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Problem with TIdFTPServer (BSoD) Date: Wed, 7 Sep 2005 16:26:44 +0200 Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 193.87.59.3 Message-ID: <431ef874@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126103156 193.87.59.3 (7 Sep 2005 07:25:56 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail