Review on stringDel()

Line 93: You should verify the incoming string is not NULL. This is the main cause of bad memory access.
Line 98-99: These two lines can also cause  bad memory access.