Technology Questions

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
Newsgroup Contributor
 
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
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 Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE 7.0 : Object expected error Paul W Smith Internet Explorer 2 04-05-2008 04:21 AM
embed error: [object Error] Jocco Internet Explorer 21 05-06-2007 11:32 AM
embed error: [object Error] Jocco Internet Explorer 1 05-06-2007 09:51 AM
ERROR: Could not create an ICertificate object & message 32 error Pocket PC General 3 01-15-2007 10:58 AM
shell extension: How to use IThumbnailProvider in Windows vista! jinxin Windows Vista 0 01-01-2007 10:00 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 08:00 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0