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

.NET (Core and Framework)

 
GeneralRe: .Net Remoting Problem Pin
snouto6-Feb-09 11:31
snouto6-Feb-09 11:31 
GeneralRe: .Net Remoting Problem Pin
led mike6-Feb-09 11:41
led mike6-Feb-09 11:41 
QuestionXML parser which uses XML schema Pin
yvek6-Feb-09 1:21
yvek6-Feb-09 1:21 
AnswerRe: XML parser which uses XML schema Pin
Curtis Schlak.25-Feb-09 8:42
Curtis Schlak.25-Feb-09 8:42 
QuestionWhat is Sync block index ? Pin
Yanshof5-Feb-09 8:12
Yanshof5-Feb-09 8:12 
AnswerRe: What is Sync block index ? Pin
harold aptroot5-Feb-09 11:01
harold aptroot5-Feb-09 11:01 
AnswerRe: What is Sync block index ? Pin
Alan N5-Feb-09 11:55
Alan N5-Feb-09 11:55 
AnswerRe: What is Sync block index ? Pin
Jon Rista6-Feb-09 9:32
Jon Rista6-Feb-09 9:32 
The SyncBlock is part of the .NET type internal structures (namely the OBJECTREF structure), and primarily has to do with thread synchronization. Generally, a SyncBlock is not created for classes, and the index # will be 0. If you use the lock() statement, then the CLR will create a SyncBlock entry for the current type, and associate it with the current AppDomain. When the lock block is entered, the CLR will create a Monitor object and stick it in the SyncBlock, along with the classes hash code (the AppDomainID and hash code are intended to support COM interop, and are not really used for pure managed code). The SyncBlock will then stay alive for the lifetime of its associated object and appdomain.

The SyncBlock index is a 1-based index into something called the Syncblk Entry Table, which is an indirection into the actual SyncBlock List which contains pointers to each SyncBlock instance. The reason for the multiple levels of indirection are intended to support the GC, which can freely move objects (such as SyncBlocks) around in memory. Each object instance itself contains a numeric 1-based index into the Syncblk Entry Table rather than a direct pointer so that the GC IS free to move SyncBlocks around in memory without requireing too much overhead to maintain type system integrity.
AnswerRe: What is Sync block index ? Pin
mailhacker28-Mar-10 23:51
mailhacker28-Mar-10 23:51 
QuestionGeneric exception handlers: clever idea or bad idea Pin
supercat94-Feb-09 11:59
supercat94-Feb-09 11:59 
AnswerRe: Generic exception handlers: clever idea or bad idea Pin
PIEBALDconsult5-Feb-09 15:38
mvePIEBALDconsult5-Feb-09 15:38 
GeneralRe: Generic exception handlers: clever idea or bad idea Pin
supercat95-Feb-09 18:55
supercat95-Feb-09 18:55 
GeneralRe: Generic exception handlers: clever idea or bad idea Pin
Gideon Engelberth6-Feb-09 3:22
Gideon Engelberth6-Feb-09 3:22 
GeneralRe: Generic exception handlers: clever idea or bad idea Pin
Mark Churchill8-Feb-09 14:44
Mark Churchill8-Feb-09 14:44 
AnswerRe: Generic exception handlers: clever idea or bad idea Pin
Vasudevan Deepak Kumar10-Feb-09 3:12
Vasudevan Deepak Kumar10-Feb-09 3:12 
QuestionHow to run a password protected SSIS package using VB.NET Pin
CodalcoholicNBrainy4-Feb-09 2:22
CodalcoholicNBrainy4-Feb-09 2:22 
Question[Message Deleted] Pin
imnotso#3-Feb-09 23:59
imnotso#3-Feb-09 23:59 
AnswerRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
Not Active4-Feb-09 1:18
mentorNot Active4-Feb-09 1:18 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
imnotso#4-Feb-09 1:20
imnotso#4-Feb-09 1:20 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
Colin Angus Mackay5-Feb-09 12:35
Colin Angus Mackay5-Feb-09 12:35 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
imnotso#5-Feb-09 22:57
imnotso#5-Feb-09 22:57 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
Colin Angus Mackay5-Feb-09 23:23
Colin Angus Mackay5-Feb-09 23:23 
GeneralRe: WebUIValidation.js and .NET 2.0 upgrade. Pin
imnotso#5-Feb-09 23:35
imnotso#5-Feb-09 23:35 
QuestionThe specified module could not be found. (Exception from HRESULT: 0x8007007E [modified] Pin
tsanthosh3-Feb-09 22:42
tsanthosh3-Feb-09 22:42 
QuestionHi guys - is it possible to cast generic up the specific types hierarchy??? Pin
netguruMelb3-Feb-09 20:59
netguruMelb3-Feb-09 20:59 

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.