![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Possible bug in shell? Hi everyone, I'm developing a context menu shell extension. It is working properly in all previous versions of Windows. But Windows Vista (RTM) has a strange problem. If I declare my extension like class MyMenuExt : public IContextMenu3, public IShellExtInit { .... } everything runs smoothly, but in case class MyMenuExt : public IShellExtInit, public IContextMenu3 { .... } where IShellExtInit is declared first, shell32.dll raises an access violation exception after calling the Initialize method 8 times with garbage arguments. I'm pretty sure that my reference counting code (which is boiler-plate) and other parts of my class are error-free. After debugging several hours with WinDbg I could not figure out why Vista behaves this way. As I said, prior versions run the code without a glitch in both cases. I would appreciate if someone could give a reasonable answer. Can |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Possible bug in shell? i doubt this is the right ng for that. find some on programming for vista. "Pierre" <can.balioglu at gmx.de_DONOTSPAM_> schrieb im Newsbeitrag news:ONS57a$EHHA.4108@TK2MSFTNGP03.phx.gbl... > Hi everyone, > > I'm developing a context menu shell extension. It is working properly in > all previous versions of Windows. But Windows Vista (RTM) has a strange > problem. If I declare my extension like > > class MyMenuExt : public IContextMenu3, public IShellExtInit > { > ... > } > > everything runs smoothly, but in case > > class MyMenuExt : public IShellExtInit, public IContextMenu3 > { > ... > } > > where IShellExtInit is declared first, shell32.dll raises an access > violation exception after calling the Initialize method 8 times with > garbage arguments. I'm pretty sure that my reference counting code (which > is boiler-plate) and other parts of my class are error-free. After > debugging several hours with WinDbg I could not figure out why Vista > behaves this way. As I said, prior versions run the code without a glitch > in both cases. I would appreciate if someone could give a reasonable > answer. > > Can > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Can parent shell monitor run/crash status of Child shell/exe ? | PowerShell | |||
| Add Shell Folder? | Vista General | |||
| Executing Power Shell Scripts from Windows Shell | PowerShell | |||
| shell integration | PowerShell | |||