solidworks can not initialize vba in Win 10

Suddenly I'm having trouble starting Solidworks 2016.    Ever since Windows 10 did an automatic upgrade on my computer SW 2016
pops up an error message stating it cannot initialize VBA and then fails to start.   I examined updates and found two new ones.
KB4056892 and KB4058702.   Uninstalled these two Win 10 updates and SW loads and runs fine.   Windows 10
re-installs the updates automatically in short order crashing SW again.    What can I do please?

SolidworksGeneral
Answers 8
SF
SF 2018-01-23 Best Answer

Exact same situation here, I am using Soliworks 2017

When solidworks is loading up and comes to the "initializing VBA engine" part I first get a message saying:

"Failed to initialize Visual Basic for Apps, equations and macros will not work. Are you low on disc space?"

After this I press ok on the message and then I get a Microsoft visual C++ Runtime library error saying:

"Runtime error!

Program: C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\sldworks.exe

R6025

- pure virtual function call"

I uninstalled all of the c++ packages and reinstalled them,

reinstalled solidworks couple of times,

I even completely cleaned my disc, but nothing seems to help.

I googled the error many many times but can't seem to find any up-to-date answer or method that works.

I am running everything in Admin mode

RI
RI 2018-01-23

Seems I had an issue last year like this and I'm trying to remember what it was, If you go under your computers administrative tools and select services then scroll down to Solidworks Licensing Service and if the startup type in set to manual try setting it to automatic and try again.  I think this is the service that was causing an issue with mine, if not then I can dig through my archives in my email and see if I can find my correspondence with my VAR about the issue and see what it was.

SF
SF 2018-01-23

I tried your idea but it didn't work sadly enough.
Just as with Charles the problem with solidworks started after the newest windows 10 updates that came about a week ago or so.

If you could look up what fixed your solidworks I would really appreciate it!

BD
BD 2018-01-23

Charles,

Turn off windows update if that is option, I have and don't have to deal with Windows updates continually screwing up SolidWorks.....

Bob

NS
NS 2018-02-16

Hi guys

I had the same issue with SWX2017 and and Win10 update procedure. The following steps helped me solve the problem:

- Right click on the SWX icon and choose "properties"

- Choose folder "compatibility"

- Uncheck the compatibiltiy with "windows 8" (don't know the right terms in english)

All the best from switzerland,

Niko

comment imagecomment image
MO
MO 2018-02-19

This worked for me! Thank you, Niko!

I was running Solidworks 2017 and Windows 10 Pro version 1709. Like the people above, everything was running fine in the morning one day, then when I came back to my computer Solidworks wouldn't load.

FYI, before doing what Niko mentioned above I was able to run Solidworks from Solidworks Rx by clicking "Click here to launch SOLIDWORKS while bypassing the Tools/Options settings." This just reset all of my customizations but operated normal otherwise.

DM
DM 2018-03-15

Niko,

Your suggestion worked for  me - quick and easy

Thanks for sharing - you made my day brighter!

MH
MH 2019-03-18

The issue is indeed Windows 10 related.

We had this issue on several machines running SW2017 SP5.0 and SW2018 SP5.0 on Windows10 1809:

The solution: set the 'Regional format' to the correct setting depending on your installed language of VBA (1033 is english).

Windows Settings>Time & Language>Region:

In our specific situation, English (United States).

comment imagecomment imagecomment imagecomment image