Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Scheduled Pinned Locked Moved WPF
databasegraphicssysadmin
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nekkantidivya
    wrote on last edited by
    #1

    Hi, I am working on silver light application. In this I converted an image into byte format and saved it in the database. Then I retrieved them from the server and tried to convert it to bitmap and display it in a image control. But during convertion process from byte[] to Bitmap I am getting this exception. "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" List<AdImages> ImgList = new List<AdImages>(); ImgList = e.Result; int i = 0; foreach (AdImages img in ImgList) { try { BitmapImage image = new BitmapImage(); using (MemoryStream stream = new MemoryStream(img.ImgData)) { image.SetSource(stream); // exception raised at this line ImgSQL.Source = image; } Image img2 = new Image(); img2.Source = image; LayoutRoot.Children.Add(img2); posImage(img2, i, ImgList.Count); _images.Add(img2); i++; } catch (Exception ee) { } } If anyone any idea to solve this please reply me. Thanks in advance.

    E V 2 Replies Last reply
    0
    • N Nekkantidivya

      Hi, I am working on silver light application. In this I converted an image into byte format and saved it in the database. Then I retrieved them from the server and tried to convert it to bitmap and display it in a image control. But during convertion process from byte[] to Bitmap I am getting this exception. "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" List<AdImages> ImgList = new List<AdImages>(); ImgList = e.Result; int i = 0; foreach (AdImages img in ImgList) { try { BitmapImage image = new BitmapImage(); using (MemoryStream stream = new MemoryStream(img.ImgData)) { image.SetSource(stream); // exception raised at this line ImgSQL.Source = image; } Image img2 = new Image(); img2.Source = image; LayoutRoot.Children.Add(img2); posImage(img2, i, ImgList.Count); _images.Add(img2); i++; } catch (Exception ee) { } } If anyone any idea to solve this please reply me. Thanks in advance.

      E Offline
      E Offline
      Elayaraja Sambasivam
      wrote on last edited by
      #2

      try with dispatcher.. Dispatcher.BeginInvoke(delegate() { List<AdImages> ImgList = new List<AdImages>(); ImgList = e.Result; int i = 0; foreach (AdImages img in ImgList) { try { BitmapImage image = new BitmapImage(); using (MemoryStream stream = new MemoryStream(img.ImgData)) { image.SetSource(stream); // exception raised at this line ImgSQL.Source = image; } Image img2 = new Image(); img2.Source = image; LayoutRoot.Children.Add(img2); posImage(img2, i, ImgList.Count); _images.Add(img2); i++; } catch (Exception ee) { } } });

      A 1 Reply Last reply
      0
      • E Elayaraja Sambasivam

        try with dispatcher.. Dispatcher.BeginInvoke(delegate() { List<AdImages> ImgList = new List<AdImages>(); ImgList = e.Result; int i = 0; foreach (AdImages img in ImgList) { try { BitmapImage image = new BitmapImage(); using (MemoryStream stream = new MemoryStream(img.ImgData)) { image.SetSource(stream); // exception raised at this line ImgSQL.Source = image; } Image img2 = new Image(); img2.Source = image; LayoutRoot.Children.Add(img2); posImage(img2, i, ImgList.Count); _images.Add(img2); i++; } catch (Exception ee) { } } });

        A Offline
        A Offline
        almog ori
        wrote on last edited by
        #3

        check that the image format is supported

        1 Reply Last reply
        0
        • N Nekkantidivya

          Hi, I am working on silver light application. In this I converted an image into byte format and saved it in the database. Then I retrieved them from the server and tried to convert it to bitmap and display it in a image control. But during convertion process from byte[] to Bitmap I am getting this exception. "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" List<AdImages> ImgList = new List<AdImages>(); ImgList = e.Result; int i = 0; foreach (AdImages img in ImgList) { try { BitmapImage image = new BitmapImage(); using (MemoryStream stream = new MemoryStream(img.ImgData)) { image.SetSource(stream); // exception raised at this line ImgSQL.Source = image; } Image img2 = new Image(); img2.Source = image; LayoutRoot.Children.Add(img2); posImage(img2, i, ImgList.Count); _images.Add(img2); i++; } catch (Exception ee) { } } If anyone any idea to solve this please reply me. Thanks in advance.

          V Offline
          V Offline
          Vimalsoft Pty Ltd
          wrote on last edited by
          #4

          i am facing the same problem in Silverlight 4 , did you resolve the Error ?

          Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups