Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Possible bug in shell?

Reply
 
Old 11-29-2006   #1 (permalink)
Pierre


 
 

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 SpecsSystem Spec
Old 11-30-2006   #2 (permalink)
JustFYI ...


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46