|
-
Apr 13th, 2002, 03:41 PM
#1
Thread Starter
Frenzied Member
crash on close
In my windows program I use this code, when using it it crashes on close:
Code:
char URL[20];
sprintf(URL, "http://newyork.yankees.mlb.com/NASApp/mlb/nyy/homepage/nyy_homepage.jsp"); //test url
char FileName[15] = "yankees.txt";
URLDownloadToFile(NULL, URL, FileName, 0, NULL);
FILE *myfile;
char big[5000];
FILE *in;
in = fopen(FileName,"r");
while (!feof(in))
{
if ( fgets(big,sizeof(big),in) != NULL)
{
AppendToEdit(big, Test);
}
}
fclose(in);
-
Apr 13th, 2002, 07:47 PM
#2
The string you are copying to URL is WAY too long. Define URL as charURL[200], insread of 20. You are getting a memory overwrite error, most likely.
Z.
-
Apr 13th, 2002, 08:46 PM
#3
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|