If you are returning a string try to populate the length input or include it in your code interface node and then populate it if you don't have it already. I noticed that if you don't populate that length LV will sometimes close on you. You will see if using a string output the length automatically added when you configure your inputs and outputs when building the DLL.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor