|
Cory,
I noticed you used a local DataInterChange variable which is fine to do, but did you use any local variables for any of its members? If so you would probably get a Segmentation Fault at the time they are freed. If you have further questions, please send your entire source code for your test driver.
Thanks, Tom
From: owner-imc-snacc@xxxxxxxxxxxx
[mailto:owner-imc-snacc@xxxxxxxxxxxx] On
Behalf Of Cory Schanzenbach
Hello,
I am having trouble with the ESNACC defined function that will free the entire structure (DataInterChange) used to encode Tap3 data. Here is the definition of DataInterChange.
typedef struct DataInterChange /* CHOICE
*/
I have a variable defined in my program as follows: DataInterChange sData;
Here is the ESNACC defined free function: void FreeDataInterChange(DataInterChange *v);
void FreeDataInterChange(DataInterChange
*v)
if(v == NULL)
break;
case DATAINTERCHANGE_NOTIFICATION:
break;
}
Here is the call to that function that I use: FreeDataInterChange(&sData);
I guess I am a little confused as to why I get a "Segmentation Fault". I am able to use the ESNACC defined print function which has the exact same parameters as the free. That works fine, but the free does not.
Has anyone ran into this or does anyone have any suggestions?
Thanks, Cory
|