Click here to Skip to main content
15,891,033 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Changing text from white to black for printing Pin
Richard MacCutchan7-Sep-09 1:36
mveRichard MacCutchan7-Sep-09 1:36 
GeneralRe: Changing text from white to black for printing Pin
DavidRen237-Sep-09 3:30
DavidRen237-Sep-09 3:30 
GeneralRe: Changing text from white to black for printing Pin
Richard MacCutchan7-Sep-09 5:01
mveRichard MacCutchan7-Sep-09 5:01 
QuestionWPF Unit Test Problem Pin
Hauke Wittern6-Sep-09 22:59
Hauke Wittern6-Sep-09 22:59 
QuestionImages upload to SQL database Pin
Nekkantidivya6-Sep-09 22:06
Nekkantidivya6-Sep-09 22:06 
AnswerRe: Images upload to SQL database Pin
Arun Jacob6-Sep-09 22:19
Arun Jacob6-Sep-09 22:19 
AnswerRe: Images upload to SQL database Pin
Elayaraja Sambasivam7-Sep-09 2:28
Elayaraja Sambasivam7-Sep-09 2:28 
QuestionCatastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) Pin
Nekkantidivya6-Sep-09 21:57
Nekkantidivya6-Sep-09 21:57 
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.
AnswerRe: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) Pin
Elayaraja Sambasivam7-Sep-09 2:38
Elayaraja Sambasivam7-Sep-09 2:38 
GeneralRe: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) Pin
almog.ori27-Jul-10 22:47
almog.ori27-Jul-10 22:47 
AnswerRe: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) Pin
Vimalsoft(Pty) Ltd26-May-11 0:30
professionalVimalsoft(Pty) Ltd26-May-11 0:30 
Questionbeginsavechanges help Pin
LT9996-Sep-09 21:06
LT9996-Sep-09 21:06 
QuestionStyling an AdornerLayer Pin
Etienne_1235-Sep-09 2:39
Etienne_1235-Sep-09 2:39 
AnswerRe: Styling an AdornerLayer Pin
Pete O'Hanlon5-Sep-09 3:15
mvePete O'Hanlon5-Sep-09 3:15 
Question3D model as Splash Pin
Etienne_1235-Sep-09 2:27
Etienne_1235-Sep-09 2:27 
AnswerRe: 3D model as Splash Pin
Pete O'Hanlon5-Sep-09 3:11
mvePete O'Hanlon5-Sep-09 3:11 
QuestionListView Expands Height But Doesn't Contract It Pin
AspDotNetDev4-Sep-09 13:37
protectorAspDotNetDev4-Sep-09 13:37 
GeneralWhy Does It Do That? [moved] Pin
#realJSOP4-Sep-09 0:07
mve#realJSOP4-Sep-09 0:07 
GeneralRe: Why Does It Do That? Pin
peterchen4-Sep-09 0:12
peterchen4-Sep-09 0:12 
GeneralRe: Why Does It Do That? Pin
#realJSOP4-Sep-09 0:26
mve#realJSOP4-Sep-09 0:26 
GeneralRe: Why Does It Do That? Pin
Rajesh R Subramanian4-Sep-09 0:48
professionalRajesh R Subramanian4-Sep-09 0:48 
GeneralRe: Why Does It Do That? Pin
Rage4-Sep-09 1:01
professionalRage4-Sep-09 1:01 
GeneralRe: Why Does It Do That? Pin
#realJSOP4-Sep-09 2:14
mve#realJSOP4-Sep-09 2:14 
GeneralRe: Why Does It Do That? Pin
Mycroft Holmes5-Sep-09 14:34
professionalMycroft Holmes5-Sep-09 14:34 
GeneralRe: Why Does It Do That? Pin
Dario Solera4-Sep-09 1:23
Dario Solera4-Sep-09 1:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.