std::cout<<erreur<<"imagehandle "<<gimmickhandle<<std::endl;
}else{
getImageDataDialog = (GETIMAGEDATADIALOG) dlsym (gimmickhandle, "getImageDataDialog");
- if(!getImageDataDialog){
- erreur = dlerror ();
- std::cout<<erreur<<"getImageDataDialog "<<getImageDataDialog<<std::endl;
+ if(!getImageDataDialog)
+ {
+ erreur = dlerror ();
+ std::cout<<erreur<<"getImageDataDialog "<<getImageDataDialog<<std::endl;
}else{
img = (*getImageDataDialog)();
gimmickfound = true;
- }
+ } // if getImageDataDialog
/*dlclose returns 0 on success, non-zero on error*/
closingerror = dlclose(gimmickhandle);
if(closingerror!=0){
std::cout<<closingerror<<"error closing handle "<<gimmickhandle<<std::endl;
}else{
std::cout<<"handle released..."<<std::endl;
- }
- }
+ } // if closingerror
+ } // if gimmickhandle
#endif
}