Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 0:44
Rob Philpott14-May-09 0:44 
GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 0:49
Rob Philpott14-May-09 0:49 
GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 1:55
sitebuilderLuc Pattyn14-May-09 1:55 
GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 2:10
Rob Philpott14-May-09 2:10 
GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 2:22
sitebuilderLuc Pattyn14-May-09 2:22 
GeneralRe: what is the size of reference variable Pin
Rob Philpott14-May-09 2:23
Rob Philpott14-May-09 2:23 
GeneralRe: what is the size of reference variable Pin
Member 103390714-May-09 1:54
Member 103390714-May-09 1:54 
GeneralRe: what is the size of reference variable Pin
Luc Pattyn14-May-09 2:08
sitebuilderLuc Pattyn14-May-09 2:08 
A small object (small enough to be in a regular heap, not the large-object-heap) is a moving target: when the GC runs it can move it around to perform heap compaction. Managed code is fine with this, however your native code would not be aware of this, so the pointer could become invalid, unless the object got pinned first. That is exactly what the ref-to-ptr convertors ("fixed", GCHandle, Marshal) do.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

QuestionDrag email of Outlook Express to Winform and Save to file .eml Pin
nv_thien13-May-09 22:58
nv_thien13-May-09 22:58 
AnswerRe: Drag email of Outlook Express to Winform and Save to file .eml Pin
IrishWizKid17-Jul-09 5:40
IrishWizKid17-Jul-09 5:40 
QuestionC# TCP LOOP HELP!!! Pin
Serpendiem13-May-09 22:28
Serpendiem13-May-09 22:28 
AnswerRe: C# TCP LOOP HELP!!! Pin
OsoreWatashi13-May-09 22:50
OsoreWatashi13-May-09 22:50 
GeneralRe: C# TCP LOOP HELP!!! Pin
Serpendiem13-May-09 22:57
Serpendiem13-May-09 22:57 
AnswerRe: C# TCP LOOP HELP!!! Pin
Rob Philpott14-May-09 0:15
Rob Philpott14-May-09 0:15 
AnswerRe: C# TCP LOOP HELP!!! Pin
Programm3r14-May-09 1:13
Programm3r14-May-09 1:13 
QuestionAdd spaces to large numbers Pin
Deques13-May-09 22:20
Deques13-May-09 22:20 
AnswerRe: Add spaces to large numbers Pin
OsoreWatashi13-May-09 22:44
OsoreWatashi13-May-09 22:44 
GeneralRe: Add spaces to large numbers Pin
Deques13-May-09 23:01
Deques13-May-09 23:01 
GeneralRe: Add spaces to large numbers Pin
Mycroft Holmes13-May-09 23:14
professionalMycroft Holmes13-May-09 23:14 
GeneralRe: Add spaces to large numbers Pin
molesworth13-May-09 23:07
molesworth13-May-09 23:07 
QuestionExecuting a file from a Stream Pin
OsoreWatashi13-May-09 22:10
OsoreWatashi13-May-09 22:10 
AnswerRe: Executing a file from a Stream Pin
Dave Kreskowiak14-May-09 2:06
mveDave Kreskowiak14-May-09 2:06 
GeneralRe: Executing a file from a Stream Pin
led mike14-May-09 4:48
led mike14-May-09 4:48 
Questiontool text with gdi+ Pin
ramaluciano13-May-09 21:55
ramaluciano13-May-09 21:55 
AnswerRe: tool text with gdi+ Pin
heinrich4J24-Jan-11 20:30
professionalheinrich4J24-Jan-11 20:30 

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.