Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
Questiondirectory path for test method Pin
Maddie from Dartford16-Oct-09 4:43
Maddie from Dartford16-Oct-09 4:43 
AnswerRe: directory path for test method Pin
Henry Minute16-Oct-09 5:14
Henry Minute16-Oct-09 5:14 
GeneralRe: directory path for test method Pin
Maddie from Dartford16-Oct-09 6:09
Maddie from Dartford16-Oct-09 6:09 
QuestionSearch string and if found copy row to new worksheet. Pin
antsims16-Oct-09 3:50
antsims16-Oct-09 3:50 
QuestionStarting AND Monitoring status of a Process on a Remote workstation Pin
diePopster16-Oct-09 0:37
diePopster16-Oct-09 0:37 
AnswerRe: Starting AND Monitoring status of a Process on a Remote workstation Pin
Richard MacCutchan16-Oct-09 0:56
mveRichard MacCutchan16-Oct-09 0:56 
AnswerRe: Starting AND Monitoring status of a Process on a Remote workstation Pin
dan!sh 16-Oct-09 2:22
professional dan!sh 16-Oct-09 2:22 
Questionlist of sent & recieved files Pin
anabina16-Oct-09 0:01
anabina16-Oct-09 0:01 
AnswerRe: list of sent & recieved files Pin
benjymous16-Oct-09 0:32
benjymous16-Oct-09 0:32 
AnswerRe: list of sent & recieved files Pin
dan!sh 16-Oct-09 2:25
professional dan!sh 16-Oct-09 2:25 
AnswerRe: list of sent & recieved files Pin
Dave Kreskowiak16-Oct-09 5:16
mveDave Kreskowiak16-Oct-09 5:16 
Questionlist of active computers Pin
anabina15-Oct-09 23:58
anabina15-Oct-09 23:58 
AnswerRe: list of active computers Pin
freakyit16-Oct-09 0:02
freakyit16-Oct-09 0:02 
GeneralRe: list of active computers Pin
anabina19-Oct-09 5:36
anabina19-Oct-09 5:36 
AnswerRe: list of active computers Pin
dan!sh 16-Oct-09 2:26
professional dan!sh 16-Oct-09 2:26 
GeneralRe: list of active computers Pin
anabina19-Oct-09 5:39
anabina19-Oct-09 5:39 
Generalcannot open project file Pin
Enobong Adahada15-Oct-09 23:55
Enobong Adahada15-Oct-09 23:55 
GeneralRe: cannot open project file Pin
Richard MacCutchan16-Oct-09 0:57
mveRichard MacCutchan16-Oct-09 0:57 
GeneralRe: cannot open project file Pin
dan!sh 16-Oct-09 2:35
professional dan!sh 16-Oct-09 2:35 
Question[Message Deleted] Pin
ajithnamboodiri15-Oct-09 23:37
ajithnamboodiri15-Oct-09 23:37 
AnswerRe: how to send and recieve data from different ip using socket server Pin
Jimmanuel16-Oct-09 4:35
Jimmanuel16-Oct-09 4:35 
QuestionFinding a string variable in memory?? Pin
diePopster15-Oct-09 22:44
diePopster15-Oct-09 22:44 
AnswerRe: Finding a string variable in memory?? Pin
Not Active16-Oct-09 2:44
mentorNot Active16-Oct-09 2:44 
AnswerRe: Finding a string variable in memory?? Pin
DaveyM6916-Oct-09 3:14
professionalDaveyM6916-Oct-09 3:14 
AnswerRe: Finding a string variable in memory?? Pin
Dave Kreskowiak16-Oct-09 5:07
mveDave Kreskowiak16-Oct-09 5:07 
On top of everything else that's been said, using managed code, C#, VB.NET, or any other language that targets the .NET Framework, an item can be moved in memory by the Garbage Collector at any time. So, even though you got the pointer to item, you really cannot use the pointer because the item might not be there anymore. The pointer you have will NOT get updated to reflect the new location in memory.

However, there is a way aroudn that. It's called "pinning". The GC can be told to pin an object in memory so it can't be moved. Read up on it here[^]. Be careful. When you pin an object, you are also responsible for removing the pin when you're done with it.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




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.