George V. Reilly

Shell extension throwing R6034 errors

Shell extension throwing R6034 errors

I have been cleaning up some issues with the Win64 port of Vim, including the Edit with Vim shell extension not working very well. When I built the shell extension with VS 2005 on x86, I would get the following whenever I right-clicked in Explorer:

Microsoft Visual C++ Runtime Library

Runtime Error!

Program: C:WIN­DOW­S­Ex­plor­er.EXE

R6034

An ap­pli­ca­tion has made an attempt to load the C runtime library in­cor­rect­ly. Please contact the ap­pli­ca­tion’s support team for more in­for­ma­tion.

There was no mention of which ap­pli­ca­tion was at fault, though it was obvious in this case. I have also seen some mention of verclsid in the error dialog, though not when I took this snapshot.

The underlying problem relates to SxS, Fusion, and all that good stuff. By far the simplest fix was for me to statically link with libcmt.lib, instead of msvcrt.lib, rather than figure out the necessary manifest magic.

blog comments powered by Disqus
Review: Grantville Gazette III » « Review: The Dante Club