Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - XTShellTreeBase issue w/ Windows 7
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTShellTreeBase issue w/ Windows 7

 Post Reply Post Reply
Author
Message
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Topic: XTShellTreeBase issue w/ Windows 7
    Posted: 27 August 2009 at 2:39pm
Hello,

I'm seeing an access violation within CXTShellTreeBase::InitTreeViewItems when attempting to expand the "Homegroup" folder on Windows 7.

The crash is easily reproduced - just run any of the CodeJock samples that make use of the shell tree control (WinExplorer, for example) and attempt to expand the "Homegroup" folder. Again, you must be running Windows 7 (this is a new folder not available in previous versions of Windows).

The problem appears to result from improper use of IShellFolder::EnumObjects. Although the return of this method is being checked, LPENUMIDLIST can also be NULL if no suitable subobjects are found (http://msdn.microsoft.com/en-us/library/bb775066%28VS.85%29.aspx). I believe the solution is to check variable "lpe" for NULL after the call to IShellFolder::Enumobjects.


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2009 at 12:30pm
Hi,
 
Thanks, problem is fixed for next release. you are right - you can patch your sources and check if lpe is not NULL.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.