I am using API 4.0.1.
I open a FLT file, do a mgSaveAsDb to make a copy, read all textures, copy textures to new location, then update the new copy of the FLT file with the new texures via the mgReplaceTextures command.
This all works, but I get an error when exiting the application that appears to be in some VC8 portion of the API.
I am using C++ Builder 2007. I have converted the COFF versions of the mgapilib.lib & mgdd.lib to OMF for use with BCB...
Thanks for the offer....
I will put together a 'simple' app that shows the error and post the code here...
I'm not sure about using your particular --modified-- version of the API libraries but we would be interested in more details on the error (and in particular the exact steps/function calls you are using) you report.
If you could provide sample code I'd be happy to try to track it down in the 4.0.1 API.
Thanks in advance.