Saturday, August 14, 2010

How to create single threaded apartment thread (STA) inside asp.net page execution

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    Thread t = new Thread(SigleThreadedExecution);
    t.SetApartmentState(ApartmentState.MTA);
    t.Start();
}
private void SigleThreadedExecution()
{
 
}

No comments:

iPhone Launch Screen Sizes

iPhone Portrait iOS 8 Retina HT 5.5 = 1242 X 2208 Retna HD 4.7 = 750 X 1134 iPhone Landscape iOS 8 Retina HD 5.5  2208 X 1242 iPho...