“Method '~' of object '~' failed” on starting VB6 IDE

前端 未结 8 1425
深忆病人
深忆病人 2021-01-11 11:32

I have noticed that about every third time or so I start up the VB6 IDE, a message box appears with the following error message:-

Method \'~\' of object \'~\         


        
相关标签:
8条回答
  • 2021-01-11 11:36

    I started getting this error all of a sudden on both of my development machines (one 32-bit, the other 64-bit). In my searching for a solution, someone made a tangential reference to SourceSafe.

    Ahh, then it occurred to me that I had been recently cleaning up a project (clearing out .bak files, etc.), and one of the files I cleaned-out was 'MSSCCPRJ.SCC' (seeing how SourceSafe was - for our group - a distant relic, I felt "safe" removing this file from the project folder).

    Long story short: restoring the file 'MSSCCPRJ.SCC' to the project folder, resolved this error.

    0 讨论(0)
  • 2021-01-11 11:43

    I found the ultimate solution!

    To avoid the "Method '~' of object '~'" message and avoid any "Windows Installer" message from running at startup of the VB6 IDE:

    1. via the VB6.exe properties (after right-clicking on the file in Windows Explorer), ensure that VB6.exe has compatibility set to "Run in Windows 8" mode.
    2. Ensure that the VB6.exe shortcut is set to NOT run as an Administrator.

    With these settings it is OK to load any of the Add-Ins (including Visual Component Manager 6!)

    It took me ages to work this out, but now VB6 loads with lightning speed and no annoying error messages.

    0 讨论(0)
  • 2021-01-11 11:47

    I used to occasionally run into this error and, in my case, it was caused by the Visual Source Safe add-in (bad install I guess; re-install corrected the issue). It never caused a problem; it was just a bother. As Jon stated in the comments, I would try shutting off add-ins to see if that fixes the issue. Another thing is to make sure you are running Service Pack 6.

    0 讨论(0)
  • 2021-01-11 11:48

    This is usually caused by locked clipboard on local machine. VB6 IDE add-ins use clipboard to copy/paste icons to toolbar buttons because the add-in API does not expose any other way of putting an image there.

    Usually Remote Desktop client (mstsc.exe) is the culprit of the locked clipboard. The way Microsoft implemented transfer to remote clipboard is by probing local clipboard for available formats which locks it for a while. Clipboard is awfully designed global resource that can be accessed by a single process at a time and OpenClipboard API fails in flames for other processes if the resource is not currently available.

    0 讨论(0)
  • 2021-01-11 11:50

    I just came across this error while running VB6 on Windows Server 2012 R2. The offending Add-In was Visual Component Manager 6.0. Once I disabled that, the IDE was able to open without the Method '~' of object '~' failed issue. I'm not sure if that points to an installation issue or just "ancient" software on a "modern" OS.

    For anyone else trying to install VB6 on Windows 7, 8, 10, 2012, etc., here are some useful links:

    http://www.fortypoundhead.com/newbrowseresults.asp?catid=34

    http://it.toolbox.com/blogs/locutus/how-to-install-visual-studio-6-onto-windows-10-70155

    0 讨论(0)
  • 2021-01-11 11:52

    I just had the same experience when starting VB6 on my Windows 7 Ultimate desktop PC via a shortcut to a VB6 project (which, of course, starts VB6.) The notification box was titled "Visual Component Manager" and the message was "Method '~' of object '~' failed". It occurred when first starting the VB6 IDE, before the project was visible in the IDE. I have been using this process with this same project for several years with no issues, but today that message box popped up and had to be acknowledged. The one thing that I did differently today, and I believe this caused my problem, was to start an Excel 2007 workbook first and then start the VB6 project about three seconds later. Both were loading at the same time and they were probably battling each other for something they both needed. Starting my VB6 project by itself never results in this. Looking at all these responses, the one common thread seems to be that VB6 is unable to access some resources when they are needed. None of the responses suggest it is a serious problem; in fact, it appears to be simply a minor 'hiccup' until such time as the resources are freed.

    0 讨论(0)
提交回复
热议问题