Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Debugger anomaly Pin
leppie15-Dec-02 5:34
leppie15-Dec-02 5:34 
GeneralRe: Debugger anomaly Pin
Paul Silvernail15-Dec-02 5:53
Paul Silvernail15-Dec-02 5:53 
GeneralRe: Debugger anomaly Pin
leppie15-Dec-02 6:12
leppie15-Dec-02 6:12 
Questioncaspol.exe and sn.exe realted? Pin
imran_rafique15-Dec-02 2:28
imran_rafique15-Dec-02 2:28 
AnswerRe: caspol.exe and sn.exe realted? Pin
James T. Johnson15-Dec-02 2:49
James T. Johnson15-Dec-02 2:49 
GeneralRe: caspol.exe and sn.exe realted? Pin
imran_rafique15-Dec-02 9:44
imran_rafique15-Dec-02 9:44 
GeneralRe: caspol.exe and sn.exe realted? Pin
James T. Johnson15-Dec-02 12:30
James T. Johnson15-Dec-02 12:30 
GeneralProblem with Image saving Pin
Smitha Nishant14-Dec-02 19:21
protectorSmitha Nishant14-Dec-02 19:21 
Friends,

I am trying to save the image in a picturebox to a file.
It returns a gdi+ error Frown | :(
This is what I do :

tmpfileloc= apppath + "temp_make.jpg";
FileStream fs= new
FileStream(tmpfileloc,FileMode.OpenOrCreate,FileAccess.Write);
Image tmpimg= pictureBox1.Image;
tmpimg.Save(fs,ImageFormat.Jpeg);
fs.Close();


And the error I am getting is this :

An unhandled exception of type
'System.Runtime.InteropServices.ExternalException' occurred in
system.drawing.dll

Additional information: A generic error occurred in GDI+.


Whats wrong ?

Tweety

If you can smile when things go wrong, you have someone in mind to blame
GeneralRe: Problem with Image saving Pin
leppie14-Dec-02 19:31
leppie14-Dec-02 19:31 
GeneralRe: Problem with Image saving Pin
Smitha Nishant14-Dec-02 19:46
protectorSmitha Nishant14-Dec-02 19:46 
GeneralRe: Problem with Image saving Pin
Smitha Nishant14-Dec-02 21:30
protectorSmitha Nishant14-Dec-02 21:30 
GeneralWeb Controls vs HTML controls Pin
JoeMcK14-Dec-02 15:14
JoeMcK14-Dec-02 15:14 
GeneralRe: Web Controls vs HTML controls Pin
leppie14-Dec-02 20:47
leppie14-Dec-02 20:47 
GeneralRe: Web Controls vs HTML controls Pin
JoeMcK15-Dec-02 9:18
JoeMcK15-Dec-02 9:18 
QuestionWhat kind of control should I use? Pin
Paul Silvernail14-Dec-02 12:40
Paul Silvernail14-Dec-02 12:40 
AnswerRe: What kind of control should I use? Pin
leppie14-Dec-02 12:51
leppie14-Dec-02 12:51 
Questionhow can i encrypt a hole folder? instead of 1 file at a time. Pin
jtmtv1814-Dec-02 11:28
jtmtv1814-Dec-02 11:28 
AnswerRe: how can i encrypt a hole folder? instead of 1 file at a time. Pin
leppie14-Dec-02 11:51
leppie14-Dec-02 11:51 
GeneralRe: how can i encrypt a hole folder? instead of 1 file at a time. Pin
jtmtv1814-Dec-02 12:00
jtmtv1814-Dec-02 12:00 
GeneralRe: how can i encrypt a hole folder? instead of 1 file at a time. Pin
leppie14-Dec-02 12:54
leppie14-Dec-02 12:54 
Questionmouse is busy or not? Pin
imran_rafique14-Dec-02 10:20
imran_rafique14-Dec-02 10:20 
AnswerRe: mouse is busy or not? Pin
Burt Harris15-Dec-02 8:50
Burt Harris15-Dec-02 8:50 
QuestionC++ to C# conversion? Pin
Zibar14-Dec-02 5:55
sussZibar14-Dec-02 5:55 
AnswerRe: C++ to C# conversion? Pin
David Stone14-Dec-02 6:01
sitebuilderDavid Stone14-Dec-02 6:01 
GeneralRe: C++ to C# conversion? Pin
leppie14-Dec-02 6:19
leppie14-Dec-02 6:19 

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.