CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Binding Data to Silverlight 4.0 Controls Using ASP.NET MVC Framework 2.0
  • ADO.NET Data Services in the .NET Framework
  • Visual C++ Programming: What's new for MFC library in VC++ 2010?
  • Microsoft Visual Studio LightSwitch and What It Can Do For You

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old August 16th, 2009, 11:32 AM
    reachb4 reachb4 is offline
    Member
     
    Join Date: Mar 2005
    Posts: 114
    reachb4 is an unknown quantity at this point (<10)
    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
    Reply With Quote
      #2    
    Old August 16th, 2009, 12:50 PM
    Arjay's Avatar
    Arjay Arjay is online now
    Moderator / MS MVP
    Power Poster
     
    Join Date: Aug 2004
    Posts: 8,106
    Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)Arjay has a reputation beyond repute (3000+)
    Re: IShellFolder error.

    You are leaking memory. For a more detailed reply, can you post some code?
    Reply With Quote
      #3    
    Old August 17th, 2009, 02:34 AM
    unnamed unnamed is offline
    Junior Member
     
    Join Date: Nov 2008
    Posts: 13
    unnamed is on a distinguished road (20+)
    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.
    __________________
    John
    http://www.simpletools.co.in
    Reply With Quote
      #4    
    Old August 18th, 2009, 12:31 AM
    reachb4 reachb4 is offline
    Member
     
    Join Date: Mar 2005
    Posts: 114
    reachb4 is an unknown quantity at this point (<10)
    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.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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
    Forum Jump


    All times are GMT -5. The time now is 08:42 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.