Thank you for your comments to my problem. You are right, I better should ad a versionnumber to my binary datas, to read them back with correct type defininition. But nevertheless I think, the "unflatten from string" vi must react resonable when it gets a corrupted flattened string. Obviously LV7 detects the error in the corrupted string, it opens a message window and informs me about the error - and leaves the errour output to false. Why the output is not simply set true when the error is detected?
You are also right, when you say, that unflatting corrupted datas can lead to an memory allocation error when for example the wrong array size is detected. I thought LV7 was intelligent enough, to check the data structure compatitibity between the flat string and the datatype before allocating memory. The size of the flat string is known. And with a few little checks before allocating memory LV could detect the corrupted datas very easy. For example LV could compare the size of the flattend string with the memory LV wants to allocate. If the memory is more than the size of the flattend string there is an error in the data. I�m sure there are some more checks LV could do before allocating memory and start unflatting. Maybe I will try the hard way and implement my own unflatten_compatibility_ checker before calling the LV-build-in "unflatten from string". Albert Zeitlmeir ********** Legal Disclaimer MAN B&W Diesel AG ********** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager ( [EMAIL PROTECTED] ). No warranty is given that this correspondence or attachment is free from any virus. In keeping with good computer practice, you should ensure that any information received is actually virus free. Email messages may be subject to delays, non-delivery and unauthorised alterations. Information expressed in this message is not given or endorsed by MAN B&W Diesel Aktiengesellschaft unless otherwise notified by our duly authorised representative independent of this message. ********** Legal Disclaimer http://www.manbw.com **********
