Print Page | Close Window

XTShellTreeBase issue w/ Windows 7

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15060
Printed Date: 04 December 2024 at 1:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTShellTreeBase issue w/ Windows 7
Posted By: markr
Subject: XTShellTreeBase issue w/ Windows 7
Date 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.





Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net