Hi,
I meet a trouble for transfer "String" from "native source code" to "Embeddid Wizard", I made a simple sample as following link.
http://ask.embedded-wizard.de/?qa=blob&qa_blobid=6293893886629025307
This trouble just happened on real machine only. please refer "UpdateString slot" of "Example::Application".
1. Please don't care "GetString(n_str);", this is needed in my project and working normal.
2. System will crash on "CopyString(v_str, n_str);", the cause is "var string v_str;" has not allocate memory before used of my meaning.
I just want to show "STRING date" of "native code" on OSD, have you other easy ways for this request?
PS: following is subroutine of CopyString in native source code.
#define MAX_EmWi_STRING_LENGTH 255
void CopyString(char *cTarget, char *cSource)
{
unsigned int c_Cnt;
for(c_Cnt = 0; cSource[c_Cnt] != 0x00; c_Cnt++)
{
if(c_Cnt >= MAX_EmWi_STRING_LENGTH)
break;
cTarget[c_Cnt] = cSource[c_Cnt];
}
cTarget[c_Cnt] = 0x00;
printf("cSource = %s\n", cSource);
printf("cTarget = %s\n", cTarget);
}