[BitBucket user: AlbertoSP]
[BitBucket date: 2018-06-11.21:38:23]
Update:
Tried to add the findcallback and it works fine, so the error may be in the extra arguments of registerMoveCallback (freeMove, applyMove and/or moveSize).
The code now is
```
#!c
/* Register the callbacks */
OrthancPluginRegisterMoveCallback(context, (OrthancPluginMoveCallback) OnMoveCallback, moveSize, applyMove, freeMove);
OrthancPluginRegisterFindCallback(context, (OrthancPluginFindCallback) OnFindCallback);
```
and the method findcallback
```
#!c
ORTHANC_PLUGINS_API OrthancPluginFindCallback OnFindCallback (OrthancPluginFindAnswers *answers, const OrthancPluginFindQuery *query, const char *issuerAet, const char *calledAet)
{
OrthancPluginLogWarning(context, "Sample plugin is findcallback");
}
``` |