I honestly hope you do a bug report for the c++ application that crashes.
It's always good to go around problems but thats really a poor bug on the applications side. While waiting for changes, a simple option to continue work while you wait for the PB/application changes, would be to post-process the INI file and simply remove all CR codes or simply replace the preference functions with custom (binary writing) ones.