| 251 | |
| 252 | |
| 253 | int cExampleGuipluginSink::myFinaliseInstance() |
| 254 | { |
| 255 | // FIRST call cDataSink myFinaliseInstance, this will finalise our dataWriter... |
| 256 | int ret = cDataSink::myFinaliseInstance(); |
| 257 | |
| 258 | /* if that was SUCCESSFUL (i.e. ret == 1), then do some stuff like |
| 259 | loading models or opening output files: */ |
| 260 | |
| 261 | if ((ret)&&(filename != NULL)) { |
| 262 | fHandle = fopen(filename,"w"); |
| 263 | if (fHandle == NULL) { |
| 264 | SMILE_IERR(1,"failed to open file '%s' for writing!",filename); |
| 265 | COMP_ERR("aborting"); |
| 266 | //return 0; |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | //fo = new openSmilePluginGUI::TestForm(); |
| 271 | //IMPLEMENT_APP_NO_MAIN(appname) |
| 272 | if (!(int)smileThreadCreate(guiThr, wxAppThreadRunner, this)) { |
| 273 | SMILE_IERR(1,"error creating GUI thread!!"); |
| 274 | } |
| 275 | |
| 276 | return ret; |
| 277 | } |
| 278 | |
| 279 | |
| 280 | eTickResult cExampleGuipluginSink::myTick(long long t) |
nothing calls this directly
no test coverage detected