Click here to Skip to main content
15,917,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: BigEndian Format Pin
Kri53-Jul-05 22:17
Kri53-Jul-05 22:17 
GeneralRe: BigEndian Format Pin
S. Senthil Kumar3-Jul-05 23:42
S. Senthil Kumar3-Jul-05 23:42 
GeneralRe: BigEndian Format Pin
S. Senthil Kumar3-Jul-05 23:40
S. Senthil Kumar3-Jul-05 23:40 
Questionnetworking ? Pin
Anonymous3-Jul-05 17:05
Anonymous3-Jul-05 17:05 
AnswerRe: networking ? Pin
Yulianto.3-Jul-05 18:32
Yulianto.3-Jul-05 18:32 
GeneralOutlook express add in Pin
Wessam Fathi3-Jul-05 14:15
Wessam Fathi3-Jul-05 14:15 
GeneralRe: Outlook express add in Pin
Carsten Zeumer3-Jul-05 22:16
Carsten Zeumer3-Jul-05 22:16 
GeneralFree resources Pin
Libor Tinka3-Jul-05 13:15
Libor Tinka3-Jul-05 13:15 
Is there a simple way how to determine, if there's enough memory for a new object, if I know its size?

For example, I have an imaging app and user (ape) wants to resize image to 34676x80900 pixels. It's too much for his machine, but app will try to create a huge bitmap this way:

<br />
try {<br />
  <br />
  bmp = new Bitmap(userSize.Width, userSize.Height);<br />
} catch () {<br />
<br />
  // Oops - probably not enough memory<br />
}<br />


My real application works with many Image objects and only dummy proofing are try-catch blocks, which are not preventing exceptions and are very slow.
GeneralRe: Free resources Pin
Dave Kreskowiak3-Jul-05 16:21
mveDave Kreskowiak3-Jul-05 16:21 
GeneralC# and ASP.NET Pin
valvet3-Jul-05 12:59
valvet3-Jul-05 12:59 
GeneralRe: C# and ASP.NET Pin
Guffa3-Jul-05 13:35
Guffa3-Jul-05 13:35 
GeneralRe: C# and ASP.NET Pin
valvet4-Jul-05 3:01
valvet4-Jul-05 3:01 
Generalrich text box problems Pin
snouto3-Jul-05 12:40
snouto3-Jul-05 12:40 
Generalcontrols Pin
Anonymous3-Jul-05 11:20
Anonymous3-Jul-05 11:20 
GeneralRe: controls Pin
Christian Graus3-Jul-05 11:53
protectorChristian Graus3-Jul-05 11:53 
GeneralSplash Screen Architecture Pin
1nsp1r3d3-Jul-05 10:24
1nsp1r3d3-Jul-05 10:24 
GeneralRe: Splash Screen Architecture Pin
Christian Graus3-Jul-05 11:55
protectorChristian Graus3-Jul-05 11:55 
GeneralRe: Splash Screen Architecture Pin
1nsp1r3d3-Jul-05 12:34
1nsp1r3d3-Jul-05 12:34 
GeneralRe: Splash Screen Architecture Pin
Christian Graus3-Jul-05 12:49
protectorChristian Graus3-Jul-05 12:49 
GeneralRe: Splash Screen Architecture Pin
S. Senthil Kumar3-Jul-05 19:33
S. Senthil Kumar3-Jul-05 19:33 
GeneralRe: Splash Screen Architecture Pin
Christian Graus4-Jul-05 13:09
protectorChristian Graus4-Jul-05 13:09 
GeneralRe: Splash Screen Architecture Pin
S. Senthil Kumar4-Jul-05 19:22
S. Senthil Kumar4-Jul-05 19:22 
GeneralRe: Splash Screen Architecture Pin
cmaissan4-Jul-05 14:16
cmaissan4-Jul-05 14:16 
GeneralRe: Splash Screen Architecture Pin
1nsp1r3d5-Jul-05 0:11
1nsp1r3d5-Jul-05 0:11 
GeneralMDI Form Pin
Newbie_Toy3-Jul-05 8:25
Newbie_Toy3-Jul-05 8:25 

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.