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

C#

 
Questionc# draw on vidoe Pin
eyale21-Jun-06 5:50
eyale21-Jun-06 5:50 
AnswerRe: c# draw on vidoe Pin
BlackDice21-Jun-06 6:24
BlackDice21-Jun-06 6:24 
GeneralRe: c# draw on vidoe Pin
led mike21-Jun-06 7:15
led mike21-Jun-06 7:15 
GeneralRe: c# draw on vidoe Pin
BlackDice21-Jun-06 7:38
BlackDice21-Jun-06 7:38 
GeneralRe: c# draw on vidoe Pin
led mike21-Jun-06 7:48
led mike21-Jun-06 7:48 
GeneralRe: c# draw on vidoe Pin
eyale22-Jun-06 8:08
eyale22-Jun-06 8:08 
GeneralRe: c# draw on vidoe Pin
led mike22-Jun-06 9:42
led mike22-Jun-06 9:42 
QuestionInstantiate Bitmap object from unmanaged memory/ Memory Allocation ? [modified] Pin
Florian Storck21-Jun-06 5:45
Florian Storck21-Jun-06 5:45 
Hi,

I'm struggling with the following problem:

I have a large unmanaged buffer, allocated with VirtualAlloc for performmance reasons. I use this buffer to load prepared bitmap image data into it.

For displaying, I tried to instantiate a bitmap object the following way:

<br />
<br />
// ButPtrStart points to an offset in my linear, unmanaged buffer.<br />
<br />
   Bitmap bmp  = new Bitmap(Width, Height, Width * 4,                                                 System.Drawing.Imaging.PixelFormat.Format32bppPArgb,                                                 new IntPtr((void*)BufPtrStart.ToPointer());<br />
<br />


Usually, as I understood, creating a bitmap this way should not allocate any memory through the GC. But in my tests I found that memory is allocated anyway. Interestingly it isn't the size the bitmap has uncompressed in memory, but it is a significant amount.

Does anybody have similar Effects and knows the cause ?

Bye,
Florian

-- modified at 11:45 Wednesday 21st June, 2006
Questioncheckinf for USB connection Pin
donkaiser21-Jun-06 4:20
donkaiser21-Jun-06 4:20 
QuestionError:- Could not access 'CDO.Message' object. Pin
nachisaravanan21-Jun-06 3:22
nachisaravanan21-Jun-06 3:22 
AnswerRe: Error:- Could not access 'CDO.Message' object. Pin
Not Active21-Jun-06 4:24
mentorNot Active21-Jun-06 4:24 
GeneralRe: Error:- Could not access 'CDO.Message' object. Pin
nachisaravanan21-Jun-06 4:34
nachisaravanan21-Jun-06 4:34 
GeneralRe: Error:- Could not access 'CDO.Message' object. Pin
Not Active21-Jun-06 4:38
mentorNot Active21-Jun-06 4:38 
GeneralRe: Error:- Could not access 'CDO.Message' object. Pin
nachisaravanan21-Jun-06 4:50
nachisaravanan21-Jun-06 4:50 
GeneralRe: Error:- Could not access 'CDO.Message' object. Pin
Not Active21-Jun-06 4:57
mentorNot Active21-Jun-06 4:57 
QuestionC# web services parameter encoding problem Pin
chandru__21-Jun-06 2:57
chandru__21-Jun-06 2:57 
QuestionControlled looping thru ArrayList? Pin
kbalias21-Jun-06 2:43
kbalias21-Jun-06 2:43 
AnswerRe: Controlled looping thru ArrayList? [modified] Pin
gnjunge21-Jun-06 2:54
gnjunge21-Jun-06 2:54 
GeneralRe: Controlled looping thru ArrayList? Pin
Not Active21-Jun-06 3:00
mentorNot Active21-Jun-06 3:00 
GeneralRe: Controlled looping thru ArrayList? Pin
gnjunge21-Jun-06 3:08
gnjunge21-Jun-06 3:08 
AnswerRe: Controlled looping thru ArrayList? Pin
Not Active21-Jun-06 2:57
mentorNot Active21-Jun-06 2:57 
AnswerRe: Controlled looping thru ArrayList? [modified] Pin
Josh Smith21-Jun-06 3:46
Josh Smith21-Jun-06 3:46 
Questioncould everyone show me the way to change CType in VB.NET to C#? Pin
largs21-Jun-06 2:31
largs21-Jun-06 2:31 
AnswerRe: could everyone show me the way to change CType in VB.NET to C#? Pin
J4amieC21-Jun-06 2:35
J4amieC21-Jun-06 2:35 
GeneralRe: could everyone show me the way to change CType in VB.NET to C#? Pin
largs21-Jun-06 4:27
largs21-Jun-06 4:27 

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.