OriginPro 9.1 SR1 64-bit/32-bit, Win7 Pro 64-bit, running in VMware Fusion 5.0.4
I have a few questions related to comments for Origin Objects.
1) Based on the code below, it seems that the maximum length of comments for Origin objects is 48K. Is this universal for all Origin object comments?
2) Does the SetComments() method truncate strings that are longer than 48K or throw an error?
3) Does the SetComments() method convert all line endings to CRLF (\r\n) or keep the line endings as the originally are- e.g. just LF (\n)?
//The following is defined in OC_const.h
#define TEMP_STRING_SIZE (48 * 1024) // 48K; after this change SYSTEM_STRING is stll under 100K
The following function is in fu_utils.c
static bool _is_comment_size_exceed_limitation(int nSize)
{
/// ML 9/30/3009 QA70-13839 NEED_EVEN_LARGER_TEMP_STRING_SIZE
//// see buffer size char SYSTEM_STRING::szTemp[TEMP_STRING_SIZE] which is define to 24k used as buffer to read origin object comments
//return nSize > 24575/*24k-1*/ ? true : false;
return nSize >= TEMP_STRING_SIZE ? true : false;
///// end NEED_EVEN_LARGER_TEMP_STRING_SIZE
}