Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 03-21-2007, 06:30 PM
Freedomkavin
Tablet PC Guest
 
Posts: n/a
Error to get IThumbnailProvider object, who can help me??

When I used IShellItem::BindToHandler method to get IThumbnailProvider
object, I got an error:
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.

My test environment: vs2005, c#, Windows Vista
My code is:
IShellItem pFileItem;
Guid itemRiid = new Guid("43826d1e-e718-42ee-bc55-a1e261c37bfe");
SHCreateItemFromParsingName(file,
IntPtr.Zero,
ref itemRiid,
out pFileItem);
if (pFileItem != null)
{
IThumbnailProvider pThumbProvider;
Guid riid = new Guid("66742402-F9B9-11D1-A202-0000F81FEDEE");
Guid bhid = new Guid("7b2e650a-8e20-4f4a-b09e-6597afc72fb0");
pFileItem.BindToObject(IntPtr.Zero, bhid, ref riid, out
pThumbProvider);
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 03-21-2007, 06:30 PM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 429 : ActiveX component can't create object Brad Windows Vista 9 03-16-2007 04:30 AM
ERROR: Could not create an ICertificate object & message 32 error Pocket PC General 3 01-15-2007 10:58 AM
lsass System Error Object name not found Tony Gravagno Windows XP 12 01-04-2007 06:16 AM
Windows System Error Object Name Already Exists RebootKidFL Windows XP 0 01-04-2007 03:06 AM
ADOMD.Position Error Object is no longer valid vipul.tankariya@gmail.com Windows XP 0 01-04-2007 02:08 AM


All times are GMT -8. The time now is 07:07 AM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0