🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2767

Re: TIdFTP EAccessViolation BCB 2006

#2767
From: Stuart Kelly
Date: Thu, 02 Feb 2006 10:57
33 lines
2026 bytes
> Can you please show the code?
> 

Do you want me to post the whole project as a zip file?

The code for dynamic allocation is as follows.

TIdFTP *TestFTP;

try
{
   TestFTP = new TIdFTP(this);
} // end try
catch (Exception &e)
{
   ShowMessage(e.Message);
} // end catch

>> However if I step though the code the error accours in the
>> constructor TIdComponent.Create(axOwner: TComponent);
>> function in IdComponent.pas.
>>
>> The error accours during GStackCriticalSection.Acquire call.
> 
> That suggests that the critical section has not been created yet when you
> are instantiating the component.  The only way that can happen is if the
> Indy library has not been initialized properly by the VCL runtime.
> 

The project was a C++Builder 6 project imported into C++Builder 2006, 
could this have caused an error in the project file?

Stuart
Technical Details
Message-ID: <43e1e4e6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43df5c2e$1@newsgroups.borland.com> <43dfa6dd$3@newsgroups.borland.com> <43e0722f$1@newsgroups.borland.com> <43e08007$1@newsgroups.borland.com> <43e1ca39$1@newsgroups.borland.com> <43e1d2f0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4903a6111cce894d
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 02 Feb 2006 10:57:54 +0000
From: Stuart Kelly <stuart@nospam.com>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TIdFTP EAccessViolation BCB 2006
References: <43df5c2e$1@newsgroups.borland.com> <43dfa6dd$3@newsgroups.borland.com> <43e0722f$1@newsgroups.borland.com> <43e08007$1@newsgroups.borland.com> <43e1ca39$1@newsgroups.borland.com> <43e1d2f0@newsgroups.borland.com>
In-Reply-To: <43e1d2f0@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.45.200.81
Message-ID: <43e1e4e6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138877670 217.45.200.81 (2 Feb 2006 02:54:30 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail