|
-
January 19th, 2004, 10:17 PM
#1
Debug Assertion Failed on free pointer
Hi,
Currently I am using a char* pointer to point to a file.
The program goes like this:-
char* file[] = {"test1.txt", "test2.txt"};
void process()
{
char* ptr;
whie(1)
{
ptr = file[i];
parse(ptr);
free(ptr);
ptr = NULL;
remove(file[i]);
}
}
I am getting debug assertion failed error message.
It says :-
File bgheap.c
Line:1044
expression:_CrtIsValidHeapPointer(pUserData)
Everytime it goes to free(ptr), I get this message. How am I going to get rid of this?
Please help.
Thank You.
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
|