VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Memory Leak when Saving Files

1 REPLY 1
Reply
Message 1 of 2
juwait00
92 Views, 1 Reply

Memory Leak when Saving Files

I create a simple iPart and now wanted to save a few Variations of said part. The Partsize of the stp is around 1.5mB.
My Inventor ramps up to 13GB of Ram usage and stays there, even after the VBA Script is done and is not running anymore. So i guess Inventor has a massive Memory Leak with VBA or VBA is a garbage Language that should never be there in the first place. Either way, it is unacceptable in a Program that costs thousands of Dollars.
Any Tips to fixing this appreciated, but i suspect it is under the hood so to speak.

Labels (3)
1 REPLY 1
Message 2 of 2
ed57gmc
in reply to: juwait00

You didn’t show your code, but it is highly likely that it’s your code that’s the problem and not Inventor. Rather than using VBA in Inventor, you should be using the built-in editor. It uses a basic-language called iLogic that’s integrated to the Inventor api’s. 

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report