The remove function doesnt work if i call more than 3 functions which use it without closing my program, if i close my program after using each function then everything works fine. The remove/rename functions gives error mostly after calling a function that displays a lot of text to the screen, i think it has something to do with memory, dont think it is recursion related because none of my functions call themselves, after one has been used it goes directly back to the main menu.Anyways the standard remove and rename functions work fine only if i close and reopen the program every single time i use a function and return to the main menu.So yeah definately a memory problem. from my codes you'll see i store the return value of the remove function in an integer variable in order to display error or successful messages...
its a large program so the codes wont be on here, instead heres a link to pastebin where they are:
[C] DataBasetype - Pastebin.com
you can test it too just execute each function from the list and by the time u reach the 4th or fifth function the remove/delete functions will give errors which they didnt do when the previous functions were used. And this doesnt just happen when i execute each function in the order they appear in my main menu just try the functions randomly and upon using the fourth or 5th then the error will occur