CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2005
    Posts
    140

    IShellFolder error.

    Hi Friends,

    I am getting an out of memory error every time i call the CoCreateInstance for IShellFolder inside a hook function.
    This problem is only for IShellFolder.
    Any idea?

    Regards and thanks,
    J

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: IShellFolder error.

    You are leaking memory. For a more detailed reply, can you post some code?

  3. #3
    Join Date
    Nov 2008
    Posts
    13

    Re: IShellFolder error.

    I guess the stack space is exhausted....I recommend you to put the CoCreateInstance stuff inside a seperate thread so that it will get a fresh stack to play with.

  4. #4
    Join Date
    Mar 2005
    Posts
    140

    Re: IShellFolder error.

    Quote Originally Posted by unnamed View Post
    I guess the stack space is exhausted....I recommend you to put the CoCreateInstance stuff inside a seperate thread so that it will get a fresh stack to play with.
    Thanks a zillion unnamed. IT WORKED!!!!!!

    Regards,
    J.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured