Here is a way to make the failure occur in about 2 minutes. Change #define DIALOGSIZE 30000 to #define DIALOGSIZE 1000