Error on cutting empty procedure

Post general DPack questions or problem reports here.

Moderator: Sergey

Error on cutting empty procedure

Postby JoshuaIssac » April 13th, 2010, 5:39 pm

Hi.
I was cutting an empty procedure called 'lstViewStudentOptions2_SelectedIndexChanged' to paste it further up, next to a similar procedure when DPack displayed a dialogue box saying that there was an error and details can be found in DPack.log. I was able to resume work after pressing 'OK'.

I was using Visual Basic .NET in Visual Studio 2008 Professional on Windows Vista Home Premium SP1.

Log:
Code: Select all
19:34:29.961  *** Start logging ***
19:34:29.961  Date: 4/13/10
19:34:29.961  Version: 3.0.0.3
19:34:29.961  Runtime: 2.0.50727.3603 SP2
19:34:29.961  IDE: 9.0.21022
19:34:29.961  OS: Windows Vista Service Pack 1 (6.0.6001.65536)
19:34:29.961  Process Id: 4960
19:34:29.961  Beta: expires on 26/04/2010
19:34:30.023  Initializing...
19:34:30.382  Cached 5 language definitions
19:34:30.601  Initializing menus...
19:34:30.601  Initialized menus: 85 out of 85
19:34:30.616  DTE service is not yet available
19:34:30.616  Initialization is done
19:34:31.630  Shell is fully loaded
19:34:31.677  Checking default installation scheme...
19:34:31.677  Default installation scheme is not set
19:39:03.563  Factory: SolutionOpened()
19:39:03.563  Show new user information
22:18:40.944  Error processing code model change Deleted for element 'lstViewStudentOptions2_SelectedIndexChanged' of vsCMElementFunction kind.
22:18:40.944  Exception information:
  System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at EnvDTE.CodeElement.get_ProjectItem()
   at USysWare.Drivers.SolutionBrowser.CacheUpdater.Refresh(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\Drivers\SolutionBrowser\CacheUpdater.cs:line 922
   at USysWare.Drivers.SolutionBrowser.SolutionBrowserDriver.CodeModelChanged(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\Drivers\SolutionBrowser\SolutionBrowserDriver.cs:line 229
   at USysWare.Driver.DriverFactory.CodeModelChanged(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\BaseDriver\DriverFactory.cs:line 532
22:18:53.674  Error processing code model change Deleted for element 'lstViewStudentOptions2_SelectedIndexChanged' of vsCMElementFunction kind.
22:18:53.674  Exception information:
  System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at EnvDTE.CodeElement.get_ProjectItem()
   at USysWare.Drivers.SolutionBrowser.CacheUpdater.Refresh(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\Drivers\SolutionBrowser\CacheUpdater.cs:line 922
   at USysWare.Drivers.SolutionBrowser.SolutionBrowserDriver.CodeModelChanged(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\Drivers\SolutionBrowser\SolutionBrowserDriver.cs:line 229
   at USysWare.Driver.DriverFactory.CodeModelChanged(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\BaseDriver\DriverFactory.cs:line 532
22:20:35.575  Error processing code model change Deleted for element 'lstViewStudentOptions2_SelectedIndexChanged' of vsCMElementFunction kind.
22:20:35.575  Exception information:
  System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at EnvDTE.CodeElement.get_ProjectItem()
   at USysWare.Drivers.SolutionBrowser.CacheUpdater.Refresh(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\Drivers\SolutionBrowser\CacheUpdater.cs:line 922
   at USysWare.Drivers.SolutionBrowser.SolutionBrowserDriver.CodeModelChanged(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\Drivers\SolutionBrowser\SolutionBrowserDriver.cs:line 229
   at USysWare.Driver.DriverFactory.CodeModelChanged(CodeElement element, Object parent, CodeModelChangeType change) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\DPackVSIP2008\DPack\BaseDriver\DriverFactory.cs:line 532
User avatar
JoshuaIssac
Starting Member
 
Posts: 2
Joined: April 13th, 2010, 5:25 pm
Location: England

Re: Error on cutting empty procedure

Postby Sergey » April 14th, 2010, 12:22 am

Thanks for reporting it. I was able to reproduce it here as well. While I test with other languages, I primarily use C# hence that issue slipping through the cracks. The problem is that every VS language, and I mean *every* language, handles member deletion logic differently. C# seems to be the most straight forward one, followed by VB. With C++ all bets are off basically.

In any case, the work around I put together should work for all languages. I’ll post a private beta tomorrow night for you to try, if you get a chance. Thanks again.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 552
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA

Re: Error on cutting empty procedure

Postby Sergey » April 14th, 2010, 10:51 pm

New beta v.3.0.0.4 is up for you to try. Let me know how it works for you please.

http://www.usysware.com/files/DPackSetup2008Beta-v3.0.0.4.exe (842Kb)

Thanks.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 552
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA

Re: Error on cutting empty procedure

Postby JoshuaIssac » April 17th, 2010, 11:54 am

Tried it and it worked without any errors. :)

Thanks.
User avatar
JoshuaIssac
Starting Member
 
Posts: 2
Joined: April 13th, 2010, 5:25 pm
Location: England

Re: Error on cutting empty procedure

Postby Sergey » April 17th, 2010, 12:44 pm

Excellent. Thanks for letting me know.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 552
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA


Return to DPack Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron