I am running on Windows 7 Enterprise and I have a routine that gathers data from various sources and formats that data into 30 character entries in a rather large array (just under 104k entries). I use qsort to sort the character data into ascending order using a single key with offset = 0, length = 30 and count = 103964. All very straightforward. The sort seems to make some attempt at ordering the data since I can observe that the initial entries have been put into ascending order but a simple loop comparing array(k) to array(k+1) finds numerous cases where the entries are out of order. Jumping to the end of the array (I'm using the debugger), I can observe that the entries are nowhere near any kind of order. It is as if the sorting algorithm died mid-stream. Is there a way I can determine if qsort is quitting on me? (unfortunately, it does not return any value upon completion).