I have a Visual Basic code running in company with Catia V5 R14 SP4. My development kit is MS Visual Studio 6.0 installed on Windows XP SP2.
It reads model file names in iteration from an Excel worksheet and then opens the model in Catia V5. Next, it changes some properties of the model and then closes it after saving. This iteration goes on until all Excel lines are processed.
When I run the code line by line in debugging mode, it works fine and does the job. No errors.
However, when I compiled this code into an EXE, it does not work properly. After a few iterations, an empty Catia V5 window appears with name "CATFrmWindow". In the meantime, the EXE continues but at a point Catia V5 gives "Command Interrupted" error and crashes.
Any ideas why the EXE would behave differently than the line-by-line execution?