DEBUG ERROR : Runtime needed for occurs whi

2020-05-06 08:50发布

问题:

I have created a COM component for my work. I have registered the component also.

On my system I have two VM workstations. In my first workstation it works fine. In my second workstation it displays an error box containing the message this program needs a rumtime and closes an unusual way please contact applications administrator. I thought that this was because of not registering the dll in the second worksation then I registered and it works fine.

When i tried to test the same in win2k8 machine even though I register the COM component successfully it shows the above said erroe window??

Can anyone help me understand this?

Thanks in advance...

回答1:

My guess is that your exe needs some other dll, which is available on one system but not on the other. On the system you get the error, use Process Monitor to watch your exe run until the error appears. If any dll is not available to you exe, you should see it there. Another tool you can use is Dependency Walker, which can point linked dlls that are not available even without running the exe.

If a dll is indeed missing, the common reasons are not installing the VC redistributables package, and SysWOW64-System32 mixups on 64 bit systems.