Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to run a method in biginning automaticaly Pin
Christian Graus4-Jul-09 0:34
protectorChristian Graus4-Jul-09 0:34 
GeneralRe: how to run a method in biginning automaticaly Pin
0x3c04-Jul-09 0:44
0x3c04-Jul-09 0:44 
Questionhow to hide MaximizeBox ? Pin
Mtyb3-Jul-09 15:11
Mtyb3-Jul-09 15:11 
AnswerRe: how to hide MaximizeBox ? Pin
Luc Pattyn3-Jul-09 15:17
sitebuilderLuc Pattyn3-Jul-09 15:17 
GeneralRe: how to hide MaximizeBox ? Pin
Mtyb3-Jul-09 15:21
Mtyb3-Jul-09 15:21 
GeneralRe: how to hide MaximizeBox ? Pin
harold aptroot3-Jul-09 15:33
harold aptroot3-Jul-09 15:33 
Questionopen an image from database Pin
A_A3-Jul-09 12:44
A_A3-Jul-09 12:44 
AnswerRe: open an image from database Pin
Luc Pattyn3-Jul-09 12:53
sitebuilderLuc Pattyn3-Jul-09 12:53 
Hi,

some comments:
1. you are not running out of memory: GDI/GDI+ and .NET generate an "Out-of-Memory" condition when the data is not a valid image.
2. the problem can equally well be in the piece of code that puts the image in the database; you really should compare those two snippets for almost identity.
3. I suggest you log your SQL commands, and the length of the byte arrays
4. you don't need to create an image file to get it from database to PictureBox; a MemoryStream and Image.FromStream() should suffice.
5. Flush and Close does not make much sense, since Close implies a Flush; Flush is useful sometimes when you do not want to close right away.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: open an image from database Pin
A_A4-Jul-09 2:24
A_A4-Jul-09 2:24 
GeneralRe: open an image from database Pin
Luc Pattyn4-Jul-09 7:18
sitebuilderLuc Pattyn4-Jul-09 7:18 
GeneralRe: open an image from database Pin
A_A4-Jul-09 11:47
A_A4-Jul-09 11:47 
GeneralRe: open an image from database Pin
Luc Pattyn4-Jul-09 11:57
sitebuilderLuc Pattyn4-Jul-09 11:57 
GeneralRe: open an image from database Pin
A_A7-Jul-09 0:53
A_A7-Jul-09 0:53 
QuestionEntity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
dfn3-Jul-09 11:36
dfn3-Jul-09 11:36 
AnswerRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
Henry Minute3-Jul-09 12:12
Henry Minute3-Jul-09 12:12 
GeneralRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
dfn6-Jul-09 9:21
dfn6-Jul-09 9:21 
GeneralRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
Henry Minute6-Jul-09 9:39
Henry Minute6-Jul-09 9:39 
QuestionNeed help...cannot load WPF projects to VS 2008 Pin
Jun Du3-Jul-09 10:06
Jun Du3-Jul-09 10:06 
AnswerRe: Need help...cannot load WPF projects to VS 2008 Pin
Henry Minute3-Jul-09 10:26
Henry Minute3-Jul-09 10:26 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du3-Jul-09 10:33
Jun Du3-Jul-09 10:33 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Henry Minute3-Jul-09 10:37
Henry Minute3-Jul-09 10:37 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du3-Jul-09 10:51
Jun Du3-Jul-09 10:51 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Henry Minute3-Jul-09 11:09
Henry Minute3-Jul-09 11:09 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du4-Jul-09 5:16
Jun Du4-Jul-09 5:16 
GeneralRe: Need help...cannot load WPF projects to VS 2008 Pin
Jun Du7-Jul-09 5:51
Jun Du7-Jul-09 5:51 

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.