Click here to Skip to main content
15,898,222 members
Home / Discussions / Graphics
   

Graphics

 
QuestionImage Control Pin
Dean Moe9-Aug-08 3:47
Dean Moe9-Aug-08 3:47 
AnswerRe: Image Control Pin
John_Adams22-Aug-08 9:10
John_Adams22-Aug-08 9:10 
QuestionIcon Creation Pin
The Only Nock7-Aug-08 14:31
The Only Nock7-Aug-08 14:31 
AnswerRe: Icon Creation Pin
Shog97-Aug-08 20:09
sitebuilderShog97-Aug-08 20:09 
GeneralRe: Icon Creation Pin
The Only Nock8-Aug-08 7:25
The Only Nock8-Aug-08 7:25 
GeneralRe: Icon Creation Pin
Shog98-Aug-08 7:28
sitebuilderShog98-Aug-08 7:28 
GeneralRe: Icon Creation Pin
The Only Nock8-Aug-08 8:15
The Only Nock8-Aug-08 8:15 
GeneralRe: Icon Creation Pin
Shog98-Aug-08 8:23
sitebuilderShog98-Aug-08 8:23 
ThinkingCapProductions_MrFluffy wrote:
I found the main problem but not the solution.

Might want to pay attention to what i'm trying to point out then. Sigh | :sigh:

Look, when you have problems like this, the first step is to break it down. You have a bunch of things that can go wrong, narrow down to the one that is going wrong. If the length of b is 446, then s_length is also 446, and there are 446 bytes stored in your MemoryStream (s). If all bytes in b have the value 0, then either the call to Read() is failing or s actually contains nothing but 0s - so find out: the documentation for Read() specifies that the return value will be the number of bytes read - if that return value is 446... or anything greater than 0... you're successfully reading the contents of the stream into b, and the failure is prior to that. If it's 0, then the call to Read() is failing to read anything and you need to find out why (hint: Seek() back to the start of the stream before trying to read it).

BTW - why are you bothering to write to a MemoryStream rather than just writing directly to your FileStream?


Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

GeneralRe: Icon Creation Pin
The Only Nock8-Aug-08 8:20
The Only Nock8-Aug-08 8:20 
GeneralRe: Icon Creation Pin
Shog98-Aug-08 8:24
sitebuilderShog98-Aug-08 8:24 
Questiondirectx in vs 2008 Pin
followait7-Aug-08 6:28
followait7-Aug-08 6:28 
AnswerRe: directx in vs 2008 Pin
Mark Salsbery7-Aug-08 7:43
Mark Salsbery7-Aug-08 7:43 
GeneralRe: directx in vs 2008 Pin
followait7-Aug-08 19:51
followait7-Aug-08 19:51 
QuestionAmcap SDK directshow. Pin
suefyzah6-Aug-08 20:03
suefyzah6-Aug-08 20:03 
AnswerRe: Amcap SDK directshow. Pin
Mark Salsbery7-Aug-08 7:44
Mark Salsbery7-Aug-08 7:44 
QuestionRunning executable problem Pin
Md. Ali Naser Khan5-Aug-08 23:51
Md. Ali Naser Khan5-Aug-08 23:51 
AnswerRe: Running executable problem Pin
Cedric Moonen6-Aug-08 21:07
Cedric Moonen6-Aug-08 21:07 
GeneralRe: Running executable problem Pin
Md. Ali Naser Khan6-Aug-08 21:26
Md. Ali Naser Khan6-Aug-08 21:26 
QuestionColor blending taking information from bitmap file Pin
Md. Ali Naser Khan4-Aug-08 6:28
Md. Ali Naser Khan4-Aug-08 6:28 
AnswerRe: Color blending taking information from bitmap file Pin
Baltoro7-Aug-08 13:43
Baltoro7-Aug-08 13:43 
Questiongraphics Pin
jarwa4-Aug-08 1:15
jarwa4-Aug-08 1:15 
AnswerRe: graphics PinPopular
Harvey Saayman4-Aug-08 4:51
Harvey Saayman4-Aug-08 4:51 
QuestionSkin Desktop Application in .Net Framework 2.0 Pin
sudjp4-Aug-08 1:02
sudjp4-Aug-08 1:02 
AnswerRe: Skin Desktop Application in .Net Framework 2.0 Pin
John_Adams5-Aug-08 3:16
John_Adams5-Aug-08 3:16 
GeneralRe: Skin Desktop Application in .Net Framework 2.0 Pin
sudjp5-Aug-08 17:53
sudjp5-Aug-08 17:53 

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.