Article View: borland.public.cppbuilder.internet.socket
Article #4776Re: Why access violation?
From: Hans Galema
Date: Fri, 10 Dec 2004 22:05
Date: Fri, 10 Dec 2004 22:05
19 lines
1323 bytes
1323 bytes
Steve wrote:
> int main(int argc, char* argv[])
> {
> //new instance of ftp
> TNMFTP *NMFTP;
NMFTP is only a 4 byte pointer. Which you will need. But it points to
a random memory address instead of to an instance of TNFTP.
Add:
NMFTP = new TNMFTP ( 0 );
> //ftp on to server
> It bombs on the next line with an access violation
> NMFTP->Host = ".com";
Hans.
Technical Details
Message-ID:
<41ba1db5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41ba1754$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cf146df7c5a045f5 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 10 Dec 2004 23:05:20 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Why access violation? References: <41ba1754$1@newsgroups.borland.com> In-Reply-To: <41ba1754$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <41ba1db5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102716341 129.125.201.248 (10 Dec 2004 14:05:41 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail