Click here to Skip to main content
15,921,113 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Setting a timeout time for MarshalByRefObject? Pin
jeffb4225-Jul-08 13:57
jeffb4225-Jul-08 13:57 
QuestionAny good way to update an object reference plus something else in a single CompareExchange? Pin
supercat925-Jul-08 8:00
supercat925-Jul-08 8:00 
AnswerRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
Mike Dimmick28-Jul-08 0:47
Mike Dimmick28-Jul-08 0:47 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
supercat928-Jul-08 5:50
supercat928-Jul-08 5:50 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
Luc Pattyn28-Jul-08 7:00
sitebuilderLuc Pattyn28-Jul-08 7:00 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
supercat928-Jul-08 9:37
supercat928-Jul-08 9:37 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
led mike28-Jul-08 9:53
led mike28-Jul-08 9:53 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
Luc Pattyn28-Jul-08 10:09
sitebuilderLuc Pattyn28-Jul-08 10:09 
Hi,


supercat9 wrote:
I don't see why object references would need to be as long as pointers.


You are probably right. I still think of references as pointers, but they could be something entirely
different, and having an upper limit of 4G of them is fine by me. Although it *will* become
another 640K limit at some point in time; don't ever think we have seen the last such mistake,
things evolve a lot in 10 or 20 years time.


supercat9 wrote:
The only difficulty with doing an object-pair compare-and-swap would be making sure that the .net memory manager knew what it was doing


I don't think the memory manager nor the garbage collector care much about what one does to references
(replace or not, swap or not); the gc only needs to know which registers and memory locations are
holding or could be holding references, but it does not care which objects get referenced,
so I would say swap as much as you like.

I tried to look into the MSIL/CIL definition, but the ECMA-335 PDF file seems damaged somehow.
Anyway, I was hoping to check the presence/absence of some relevant IL instructions there,
since that seems the right way to go.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
supercat928-Jul-08 15:20
supercat928-Jul-08 15:20 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
Luc Pattyn28-Jul-08 16:05
sitebuilderLuc Pattyn28-Jul-08 16:05 
GeneralRe: Any good way to update an object reference plus something else in a single CompareExchange? Pin
supercat928-Jul-08 15:54
supercat928-Jul-08 15:54 
Questionrounding to five decimal digits Pin
CICCIOLO6924-Jul-08 22:50
CICCIOLO6924-Jul-08 22:50 
Answercross-post Pin
Luc Pattyn25-Jul-08 5:18
sitebuilderLuc Pattyn25-Jul-08 5:18 
Answer[Cross Post]Re: rounding to five decimal digits (with link to original message) Pin
Scott Dorman25-Jul-08 5:21
professionalScott Dorman25-Jul-08 5:21 
AnswerRe: rounding to five decimal digits Pin
ghle26-Jul-08 5:47
ghle26-Jul-08 5:47 
QuestionWindows Service : More than one user Service may run within the same process Pin
Krugger40424-Jul-08 21:48
Krugger40424-Jul-08 21:48 
Answer[Cross Post]Re: Windows Service : More than one user Service may run within the same process Pin
Scott Dorman25-Jul-08 4:18
professionalScott Dorman25-Jul-08 4:18 
GeneralRe: [Cross Post]Re: Windows Service : More than one user Service may run within the same process Pin
Krugger40425-Jul-08 11:01
Krugger40425-Jul-08 11:01 
GeneralRe: [Cross Post]Re: Windows Service : More than one user Service may run within the same process Pin
Scott Dorman25-Jul-08 14:15
professionalScott Dorman25-Jul-08 14:15 
QuestionPlease Clear my doubt !! Pin
guriqbal8724-Jul-08 2:37
guriqbal8724-Jul-08 2:37 
AnswerRe: Please Clear my doubt !! Pin
Luc Pattyn24-Jul-08 3:09
sitebuilderLuc Pattyn24-Jul-08 3:09 
GeneralRe: Please Clear my doubt !! Pin
guriqbal8724-Jul-08 3:27
guriqbal8724-Jul-08 3:27 
Questioninject code in .net exe files Pin
zon_cpp22-Jul-08 20:15
zon_cpp22-Jul-08 20:15 
AnswerRe: inject code in .net exe files Pin
leppie24-Jul-08 4:36
leppie24-Jul-08 4:36 
QuestionTargetting .NET 2.0 with Visual Studio 2008? Pin
Rob Caldecott22-Jul-08 5:10
Rob Caldecott22-Jul-08 5:10 

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.