Closed kjdev closed 11 years ago
Hi, kjdev. Thank you for reporting.
We have confirmed the problem, and fix sample some codes. These fix will be included in next release which will be done today. In addition, the sample page of SDK documents have been fixed already.
The cause of this segmentation fault is that :
When insert key or fields to tabledef
, realloc
will be called. At this time, there is a possibility that the memory address of the tabledef
is changed.
To avoid this problem, we have been should use tableDefPtr
instead of tableDefs
. (But this way can be used by C++ only. Other languages can not use the way.)
The good way is that do not cache tabledef
into the variable.
Regards, Kosaka@BizStation
Thanks, Kosaka.
I was able to confirm that the sample code to work properly all.
Example exs_update_table_def becomes segmentation fault.
Build
Can not build the remains of exs_update_table_def.
Build Change to
void __STDCALL onCopyData
fromvoid __stdcall onCopyData
.Execute
Segmentation fault when run.
No problem in the other samples.