Unhandled exception at 0x7c918fea in Elevation2.exe: 0xC0000005: Access violation writing location 0x3935373e.
omg, what is this? I have finally got my program working. and after i cleaned up the comments, this error turned up.
it happens when the program ends. eg. on the line return 0 in int main (int argc, char *argv[])
is there something wrong with the way i code?
Edit:
When i changed
char *url = new char[];
to
char *url = new char[200];
the problem is gone. hmmm.
previously i had
char *url = new char[], *url_long = new char[SIZE], *url_lat = new char[SIZE];
and there was no error.
Last edited on