i cant send project to you sory.

problem is not only string2
if string1 is empty in this case this line crash
strncpy(mi.String1,komutlar[id].komut_data,30);

its mean i think string1 or string2 not important
if editbox is empty you cant transfer data to string area.