Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Cameras, Lenses & Accessories Canon Digital Cameras 
Thread started 04 May 2004 (Tuesday) 11:26
Search threadPrev/next
sponsored links (only for non-logged)

Canon SDK - CDStartSDK fails when called from Explorer

 
marknelson
Hatchling
2 posts
Joined May 2004
     
May 04, 2004 11:26 |  #1

I'm attempting to write a WinXP shell extension to display thumbnails for my CRW files. However, whenever my component is called from Explorer, CDStartSDK returns cdMEM_ALLOC_FAILED. If I create a test harness and call the component from it, the call succeeds.

Does anyone know how the SDK attempts to allocate memory, or if this might be a bogus error message caused by some other failure?

On a related note, I have noticed that if my method contains the USES_CONVERSION macro, CDStartSDK will always fail, even when called from my test harness.




  
  LOG IN TO REPLY
marknelson
THREAD ­ STARTER
Hatchling
2 posts
Joined May 2004
     
May 05, 2004 07:52 |  #2

I found the problem.

As I suspected, the error message is wrong. The SDK startup failed because it couldn't load its supporting libraries (other than CDSDK.dll).

Since shell extensions are COM components, their working directory is the same as the application that created them. In this case, that application is Explorer, whose working directory was something other than the directory that contained my component.

Anyway, to work around the problem I had to explicity load all of the supporting libraries into my component and everything works fine.




  
  LOG IN TO REPLY
PhotoSlacker
Mostly Lurking
19 posts
Joined Mar 2004
     
May 05, 2004 09:18 |  #3

Hey any idea where I can get a copy of the SDK?

Thanks

(Sorry I couldnt help you with your problem)




  
  LOG IN TO REPLY
sponsored links (only for non-logged)

2,013 views & 0 likes for this thread, 2 members have posted to it.
Canon SDK - CDStartSDK fails when called from Explorer
FORUMS Cameras, Lenses & Accessories Canon Digital Cameras 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member was a spammer, and banned as such!
1904 guests, 129 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.