View Complete Post
Critical sections, a mechanism that prohibits more than one thread at a time from executing a particular section of code, is a topic that has not received much attention and thus tends not to be well understood. A solid understanding of critical sections in Windows can really come in handy when you need to track down multithreading performance issues in your code. This articles delves under the hood of critical sections to reveal information useful in finding deadlocks and in pinpointing performance problems. It also includes a handy utility program that shows all of your critical sections and their current states.
Matt Pietrek and Russ Osterlund
MSDN Magazine December 2003
Here is the initial output of my program after running it from WinDbg:
CommandLine: "C:\Documents and Settings\Administrator\My Documents\Work\QMI_Test_Tool\QMI_UT_Source\Release\QMI Validation Tool.exe"
Symbol search path is: SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
ModLoad: 00400000 0048f000 QMI Validation Tool.exe
ModLoad: 7c900000 7c9b2000 ntdll.dll
ModLoad: 79000000 7904a000 C:\WINDOWS\system32\mscoree.dll
ModLoad: 7c800000 7c8f6000 C:\WINDOWS\system32\KERNEL32.dll
ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\advapi32.dll
ModLoad: 77e70000 77f03000 C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 77fe0000 77ff1000 C:\WINDOWS\system32\Secur32.dll
ModLoad: 7c420000 7c4a7000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCP80.dll
ModLoad: 78130000 781cb000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCR80.dll
ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 7c9c0000 7d1d7000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 77f10000 77f59000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 7e410000 7e4a1000 C:\WINDOWS\system32\USER32.dll
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 7c4c0000 7c53d000 C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\m
My Requirement is: I have an page it's coming from _Layouts,that page contains one Template Picker Control(share point control).so it showing all site templates like Team site,Wiki site etc.
But My Issue is i have site template id like "STS#1" Now i need to show this site template in Template Picker Control using c# or Object model code.how to do that right know it selected Default site template.
Thanks In Advance.
I have to use inline code for an aspx page and I need to use a custom server control that is defined in the same aspx page but the control does not get processed as a server control. it gets returned as is as static html tag.
does anyone know how to do that?
Hi. Is it possible to write inline code in my workflow? E.g. I'd like to drop a scripting shape in to the workflow and write some code in to that shape. The closest I could find to this was a shape that calls my C# method.
The ability to write inline code in a workflow is supported in BizTalk. I was hoping to find it in .Net 4 workflow. Have I missed something?
I have an aspx file written using vb.net that contains code both in code behind and inline. I want to access variable, object/classes declared in code behind into inline .aspx file. e.g. following code is written in File Name: Test.aspx.vb Imports System.Data Dim cCode as String cCode = "ABC" Now I want to access cCode variable in test.aspx file How this is possible ??
When I try to use inline code in a div in my updatepanel the site builds and compiles ok and the initial load of the page is fine but when I try to operate the select in one of the contols (a gridview) in the update panel it fails with an "!Error on Page"...the content of the error on page is...
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)Timestamp: Fri, 20 May 2011 18:18:02 UTC
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.Line: 868Char: 13Code: 0URI: http://theipaddresswashere/ScriptResource.axd?d=xfimS0ngiKh89CutFNtzHucUqb8-yyUScfH1ZVLVz7tNO6L-A6kFCD_MqYSTYMOSEx9O3KUkiiUwEWo687qhNwgnpkOFDpNwub8It0_JB2qP2FkL9y85yRPoYt-kJcPKojGzaewzbfmL6e-DDoDho_EpuexGGAnGoLIBrqlnLPt97N5qbAFf3zwR6hTQq1PQ0&t=2610f696
In this case I have a div in the updatepanel that trys to retrieve and present the cont