I don't use Labview, so I can't really help with suggestions for debugging.
However, your description of the symptoms sound very much like memory corruption (ah- you included that phrase in your post, didn't you). I would look through the library source looking for some place where you write one element past the end of an array or something like that.
Overwriting memory like that can often be completely benign if there isn't anything important in the next few bytes. But then you re-load the library, or use it with a different program, or re-shuffle your source (so it links in a different order) and those bytes now hold something important.
This can be particularly difficult to track down, because the corrupted bytes may be accessed in a completely different part of the code, so that by the time the crash comes, the actual cause of the crash happened long ago.
Good luck!
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com