A classic reason for this is an unitialised variable. Are you using CVI 6.0? as this version seems to have pretty good warnings for this now.
If its not an unitialised variable, then the next most likely thing is an unitialised/unterminated string. (In debug mode the strings seem to get filled with 0's so they are effectively automatically terminated, but in release mode the optimisations mean that the strings are full of garbage and lack the terminating chars).
If the problem isn't obvious it might be worth running a tool like lint over the source.
Paul Rocca