Hi,
In my application, the process of generating SCS files has been completed and run well on my computer.(Build model, insert mesh, insert pmi text, then GenerateSCSFile).
However, when I copy my application to other computers, some machines can execute it normally, while others throw exceptions when executing SC:: Store:: Utils:: Text:: InsertText.
Exception: Attempted to use a deleted, uninitialized, or otherwise invalid object.
I wonder if there are any runtime libraries or other basic libraries that need to be installed in advance to use it normally?
The issue could be due to specific fonts not being available in the machines in question. Also, the availability of certain fonts can be affected whether they are system fonts or user-installed fonts.
Since Cambria is a system font, I don’t think the issue is because of an inaccessible font. That being said, perhaps as a test, you can copy and store the Cambria font in a local folder used by your appliction and then set the font directory to that folder via the function SetFontDirectory.
Have you noticed a common element to the machines that are throwing the exception? For example, make and model, old or new machine, recently purchased machines (so they may not be fully setup yet), etc.?