CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Sep 2008
    Posts
    1

    Error caused by using ICImageDecompress API function

    Hi all,

    I'm trying to deal with a video surveillance system. All I have to do is retrieving data from server via socket and decompress the data by using ICImageDecompress function. Server periodically sends the data packed in a message and I have to (at clientside) unpack and then decompress it, and show it on a viewer (Picturebox, for instance).

    But actually when I try to invoke the ICImageDecompress API function, I got this error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

    My source code in C# in attached here, I don't have much experiences in APIs and memory management. So I need your help. Thank you!
    Attached Files Attached Files

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