In your first version, the crash happened when releasing the strings - you can see this in the acklog. So, the problem could be something that affects the string data area - for instance, writing past the length of a string array.