Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2014 64 bit VBA crashing on program launch randomly

42 REPLIES 42
Reply
Message 1 of 43
Gruff
2083 Views, 42 Replies

2014 64 bit VBA crashing on program launch randomly

My users are reporting that 2014 64 bit VBA crashes on program launch randomly.

 

I have 12 to 14 apps written in VBA.  Randomly they crash when the user trys to run them.

 

Sometimes they load and work fine other times they crash inventor without reporting an error.

 

Has anyone else seen this behavior?

42 REPLIES 42
Message 21 of 43
ACEDeSmedt
in reply to: redbeast

To "fix" the corrupt 2014 VBA file, you can open it in a previous version of Inventor (like 2012); make a small edit end save it again.

(64 bit vba file will load in 2012 but not work but that will not hinder editing the file and saving it again)
=================================
If this is the solution, push the solution button 😉 (and maybe some kudos)
Autodesk Product Design Suit - Ultimate edition (Subscription)
Message 22 of 43
h.schkorwaga
in reply to: ACEDeSmedt

Maybe this is a good solution for those who have 2012 installed. But f.e we only have 2014 now.

I tried to export all code and forms into files and reimport into a new project. Doesnt help anyway.

Pls Autodesk react!
Message 23 of 43
miechh
in reply to: Gruff

I've had the same problem frequently in Inventor 2012 and hoped it was gone in Inventor 2014. But still it's occurring, it's not reproducable however. Most of the occurrances happened after an Inventor crash, but it has also happened from one day to another. As some of the people here I've created a backup-scheme so that in case of described problem I can revert back to a working projectfile.


Product Design Suite 2024
Inventor 2024 (v 28.20.27200.0000), Vault Basic 2024
Fusion 360
HP Workstation Z4
Intel Xeon 3.4GHz
32GB RAM
Windows 10 Professional (64bit)
Message 24 of 43
10htts
in reply to: Gruff

Hi all! Even if it's not a final solution, i noticed that when you (finally) sucessfully start the VB7 editor, you just let it open in the backgroung and the macros are a lot less likely to crash. It's surely not a final solution but it helps... Hope Autodesk will find a solution REALLY SOON!
Message 25 of 43
h.schkorwaga
in reply to: Gruff

Nothing changed since SP2 Smiley Sad

Message 26 of 43
ludesroc
in reply to: h.schkorwaga

I had this problem just recently with a VBA project on which I had been working on for 2 weeks without any problems. after an Inventor crash (While debugging an add-in), the VBA project became un-usable and systematically crashed Inventor. The module/forms could be loaded without any problem, but any attempt to execute any sort of code would instantly crash Inventor. The only solution we had was to try to load the vba project on another computer and hope that it would let us save it.(and not instantly crash Inventor also). This CER suggested hotfix has fixed the issue. For anyone having problems with this, I would recommend trying it. https://errorreport.autodesk.com/progress.jsp?xid=-%14%1A%08%11%04%14%0E%13rE%40GI%0E%00%00%2C%16OVE...
Ludesroc
Message 27 of 43
h.schkorwaga
in reply to: ludesroc

Hello again,

 

this update is already installed ion my computer an unfortunately nothing changed for me.

This doesn't prevent my installation from randoly chrashing when running macros.

 

BR

Message 28 of 43
MegaJerk
in reply to: h.schkorwaga

I don’t if maybe any of you may have already come across my topic of VBA not working pains, but it may help (despite the fact that I don’t think you have to deal with the 32bitHost.exe program due to VBA being 64x native in later Inventor versions).

http://forums.autodesk.com/t5/Inventor-General/Inventor-32-Bit-Host-Not-Working-As-Intended/m-p/4627...

Even though you don’t have the middle man program, I would recommend possibly checking to see if there aren’t differences in the way drives are being assigned across computers, or if any external accessories may be helping to make your struggle even more ‘random’.

I hope that you all solve your problems eventually. 



If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
Message 29 of 43
Mawwek
in reply to: MegaJerk

Does anyone have any news on this?

I also have some macro's written in VBA in Inventor 2014.

Most of the time, the first time I run the macro, it works perfectly.

But when trying to use it again after working for a while, it crashes almost always.

 

So far I haven't found anything on the internet that cures this problem.

I'm running Inventor Professional 2014 SP2 (on 4 different brands of workstations).

 

Thanks in advance

Message 30 of 43
davidjin
in reply to: Gruff

I have the same problem. The VBA made with Inventor 2011 works fine in 2014. But if I modified VBA in 2014 it will crash whenever I loaded it. I seems I could not do any modification on my old VBA files. No solution yet.

Message 31 of 43
h.schkorwaga
in reply to: Mawwek

Still no solution....

 

What a pity... No interest on behalf of Autodesk...

Message 32 of 43
klaasdesmedt
in reply to: h.schkorwaga

With the transition to VBA 7 instead of VBA 6, I started with a new project file and copy-pasted every macro I could use in it.

 

The reason I did this was that after 5 years of macro writing, we had a ivb file of 7,5 MB but 80% of the code we didn't use.

Copy pasting only the useful stuff helped us to keep the code cleaner.

 

A side affect that I only now notice is that we never had any issues since we moved to a completely new ivb file.

Message 33 of 43
h.schkorwaga
in reply to: klaasdesmedt

I did it in a similar way but I exported the modules in bas-files and imported them into a new created VB-project-file.

We also have code that's not used often but INV crashes when using macros we use daily.
Message 34 of 43
GKadmin
in reply to: klaasdesmedt

When you copy pasted into the new .ivb, what did you do with your forms (if you had any)?

Message 35 of 43
h.schkorwaga
in reply to: GKadmin

I imported the frm-files. Do you mean that the form should be created new from scratch?

 

At the moment I had a crash when starting VBA-Editor via Alt-F11... *gr*

 

The solution I received by email lead me to http://office.microsoft.com/en-gb/visio-help/HV080353032.aspx

This is a MS-site which says "Sorry, the page you're looking for can't be found.Smiley Frustrated

 

Smiley Sad

Message 36 of 43
ACEDeSmedt
in reply to: h.schkorwaga

we had this same error recently, we solved it by doing the following thing but we are not sure what exactly solved the problem:

  1. Close inventor
  2. Manually install English VBA7 Language Pack. (source)
  3. Remove all*.EXD files from your computer (source)
    1. open a dos prompt (cmd.exe)
    2. go to C:\ by using the following command a few times:
      CD .. 
    3. Delete all exd files by using this command:
      DEL /S /A:H /A:-H *.EXD
  4. Restart your computer
=================================
If this is the solution, push the solution button 😉 (and maybe some kudos)
Autodesk Product Design Suit - Ultimate edition (Subscription)
Message 37 of 43
GKadmin
in reply to: ACEDeSmedt

Here is my problem with the VBA macros:

 

Case 1) I am able to open Inventor, start a new drawing/part/or assembly, try to run a macro and Inventor will crash.

Case 2) If I start Inventor, then start the VBA Editor, close the editor, start a new drawing/part/or assembly, then the macros function correctly and Inventor does not crash.

 

Now I have more than 25 computers, all bought at the same time, all have the same software and updates, but I have 4 computers that this problem of crashing occurs if we forget initiate the macros.

 

We are running Inventor 2014 with SP2 and Update 3 for SP2.

 

It appears that the default VBA project file does not get loaded on some computers, but why on only a select few computers?

Message 38 of 43
scottmoyse
in reply to: h.schkorwaga


@h.schkorwaga wrote:

I imported the frm-files. Do you mean that the form should be created new from scratch?

 

At the moment I had a crash when starting VBA-Editor via Alt-F11... *gr*

 

The solution I received by email lead me to http://office.microsoft.com/en-gb/visio-help/HV080353032.aspx

This is a MS-site which says "Sorry, the page you're looking for can't be found.Smiley Frustrated

 

Smiley Sad


This has just happened with one of our customers as well... Autodesk need to fix that link in the automated reply.


Scott Moyse
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.


EESignature


Design & Manufacturing Technical Services Manager at Cadpro New Zealand

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

Message 39 of 43
philip.s
in reply to: scottmoyse

@scottmoyse or @h.schkorwaga, can one of you please attach a copy of the email so that we can help track down the origin and make the appropriate edits?

Message 40 of 43
gavbath
in reply to: philip.s

Here you go Phil.

 

Gavin Bath
MFG / CAM Technical Specialist
Design and Motion Blog
Facebook | Twitter | LinkedIn | YouTube


   

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

Post to forums  

Autodesk Design & Make Report