Ive been getting an illegal error in a program, and ive tracked it down to this function (and a certain line), so can someone tell me if there is a memory leak or another problem that would be causing the problem? Thanks.
int a_dll_written(char *dll_line)
char *new_line=new char; //This line is where the error is caused at, and this function is called a lot in the program, so it might be a leak?
if(strcmpi(new_line,dll_line)==0) r_val=1; //return 1 if theyre equal