Ok, I've been trying some things and have found that:
1. If I use a string literal, the dialog displays each time and there is no freezing at all. showSampDialog(0, 0 ,2,"LIST","This is my string","OK","CLOSE");
2.If I use a char* with a constant string there is no freezing and the dialog...