User Defined Struct Crashing Creo to Fatally Crash
Hello community,
I am working on creo 9.0.2.0
I am defining my own struct as this:
typedef struct ParmNote {
struct ParmNote *Next;
struct ParmNote *Last;
char Note[120];
wchar_t wcNote[120];
}NOTE_PARAM;
In a later function I have:
{
NOTE_PARAM *Current , *Next , *Last , *First;
First = (NOTE_PARAM *)(mParm->PString);
Last = First->Last;
Current = Last;
Next = (NOTE_PARAM *)malloc(sizeof (NOTE_PARAM));
Current->Next = Next;
First->Last = Next;
Current = Next;
Current->Next = NULL;
}
When it reaches the underlined line of code "Current->Next = Next;", creo fatally crashes. I do not understand why this is causing Creo to crash, as this exact logic worked in Creo 5.
Any and all help would be appreciated.
Thank you,
Mark Hardebeck

