in

Archived Data Techniques Forums

Unhandled exception after calling GetHImageData()

Last post 10-14-2008 1:59 PM by support. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-13-2008 2:50 AM

    • sepp42
    • Top 200 Contributor
    • Joined on 11-25-2004
    • Posts 6

    Unhandled exception after calling GetHImageData()

    Hello together,

    I have strange problem with the function GetHImageData(). The function causes an unhandled exception after I have used the function SetPicture() to load a picture from file system. After I have called the function SetPicture() the picture is correctly displayed in the image control. Only if a try to access the memory afterwards then an unhandled exception is thrown. If I use the function GetFileName() then no exception is thrown!

     Example code:

    CImageControl &ctrlImage;
    ....
    ctrlImage.SetPicture("test.jpg"); 
    long lImageData = ctrlImage.GetHImageData();

     

    Is this a bug or does anybody know how to avoid this problem? 

    I used ImageMan version 8.1.1.0

    Thanks
    Peter

  • 10-14-2008 1:59 PM In reply to

    Re: Unhandled exception after calling GetHImageData()

    Hi,

    First I would suggest you update to the 8.60 release which you can download at no cost from the My Products page. 

    Sean
    Data Techniques Online Support
Page 1 of 1 (2 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.