Hi everybody,
In our applications, we have used this to save a resource file:
mdlResource_closeFile(ggAlmHdlGblSys); ggAlmHdlGblSys = 0; mdlResource_openFile(&ggAlmHdlGblSys, filename, RSC_READWRITE);
It has always worked fine but since Connect Advisor has been installed with MicroStation, the function mdlResource_openFile always return MDLERR_FILEREADONLY
If we uninstall Connect Advisor, everything is ok. Is there any other solution save our resource file?We used to save this resource file to avoid to lost all the modifications we do in this file in case of a bug in our software... may be it's not really necessary?
Regrads
Hervé
Hi Hervé,
I think resource closing operation may fail. I tried to suggest you to check return value of mdlResource_closeFile() but it doesn't return any status code.
void mdlResource_closeFile ( RscFileHandle rfHandle );
You may check ggAlmHdlGblSys variable after mdlResource_closeFile().
Kind regards,
Sedat AlisAEC Technology Inc.