🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Why access violation?

#4923
From: Steve
Date: Fri, 10 Dec 2004 21:38
24 lines
1379 bytes
I wrote a small c++ console program that
is supposed to ftp to a dir and download
any files there. This works in a form app,
but I can't get the form to close on its own.
I am running this as a sheduled task. I thought
a console app would be better for this. Here is
code I am using.

int main(int argc, char* argv[])
{
//new instance of ftp
TNMFTP *NMFTP;

//ftp on to server
It bombs on the next line with an access violation 
NMFTP->Host = ".com";

Why? It compiles fine, and runs in a 
form app, why not in a console app? I 
had included all the header files for 
ftp.

Steve
Technical Details
Message-ID: <41ba1754$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cf146df7c5a045f5,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Steve" <sportock@mindspring.com>
Sender: "Steve" <sportock@mindspring.com>
Reply-To: "Steve" <sportock@mindspring.com>
Subject: Why access violation?
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 24.178.50.100     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41ba1754$1@newsgroups.borland.com>
Date: 10 Dec 2004 13:38:28 -0800
X-Trace: newsgroups.borland.com 1102714708 207.105.83.66 (10 Dec 2004 13:38:28 -0800)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail