G
Guest
Hi All,
This seems to be a new bug that has been introduced in CF SP2.
I now get a 'NotSupportedException' when using the Icon constructor that
takes a Stream. If I do not install SP2 the constructor works fine (using PPC
2003 Phone Ed emulator).
Here is the C# code that is used.
Stream stream =
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("FMRS.Images.icon_first.ico");
Icon icon = new Icon(stream); //this blows up with SP2
imgListReading.Images.Add(icon);
As I said, the code works fine without CF SP2 installed. I have checked that
the stream is not null.
This is the error I get...
***
An unhandled exception of type 'System.NotSupportedException' occurred in
System.Drawing.dll
Additional information: NotSupportedException
***
There is no message with the error, nor an inner exception, which is
especially nice!
This seems to be a new bug that has been introduced in CF SP2.
I now get a 'NotSupportedException' when using the Icon constructor that
takes a Stream. If I do not install SP2 the constructor works fine (using PPC
2003 Phone Ed emulator).
Here is the C# code that is used.
Stream stream =
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("FMRS.Images.icon_first.ico");
Icon icon = new Icon(stream); //this blows up with SP2
imgListReading.Images.Add(icon);
As I said, the code works fine without CF SP2 installed. I have checked that
the stream is not null.
This is the error I get...
***
An unhandled exception of type 'System.NotSupportedException' occurred in
System.Drawing.dll
Additional information: NotSupportedException
***
There is no message with the error, nor an inner exception, which is
especially nice!