05 2004 档案

Efficiently .net 1 -- using CLR Profiler
摘要:downlaod:http://download.microsoft.com/download/4/4/2/442d67c7-a1c1-4884-9715-803a7b485b82/clr profiler.exe help:http://msdn.microsoft.com/library/en-us/dnpag/html/scalenethowto13.asp 阅读全文

posted @ 2004-05-26 01:05 Snowwolf 阅读(679) 评论(0) 推荐(0)

如何调高COM+中STA对象线程池的大小(zz)
摘要:微软的设计使然,STA线程模型组件在COM+中,每个CPU支持最多10个实例。 首先,这一切定义描述在 http://support.microsoft.com/default.aspx?scid=kb;EN-US;282490 中, 节选如下: Thread Pool in COM+ In COM+, each server application maintains two sep... 阅读全文

posted @ 2004-05-21 01:54 Snowwolf 阅读(1289) 评论(0) 推荐(0)

Realease COM object in .net manage code(zz)
摘要:Recently, My client application have some issues, we found application will hang or perf down after longtime running. They call tons of COM objects in .net code. We suspect of .net clr doesn't release... 阅读全文

posted @ 2004-05-21 01:47 Snowwolf 阅读(1010) 评论(0) 推荐(0)

Q: "为什么如果我们把这两个组件安装在同一个COM+组件包中问题就不会出现"(zz)
摘要:A: 问题的根源在于COM+ 如何assign一个worker thread 来用于clients 的CreateObject 请求。在COM+ 1.0 (Win2000)下,如果机器是单CPU, STA thread pool 的起始大小为 8, 上限为10。通常情况下每个STA worker thread 会接受5个CreateObject 请求,然后COM+ runtime才决定create... 阅读全文

posted @ 2004-05-21 01:34 Snowwolf 阅读(910) 评论(0) 推荐(0)

Use COM in .NET
摘要:.Net提供三种途径供我们导入一个COM组件: 1、 通过Visual Studio .Net提从的“添加引用”功能 2、 通过命令行方式:TLBIMP.EXE 3、 使用System.Runtime.InteropServices.TypeLibConverter类编程实现导入功能使用命令行工具导入这个COM组件TLBIMP TestObjLib.dll /out:interop.Test... 阅读全文

posted @ 2004-05-20 01:00 Snowwolf 阅读(845) 评论(0) 推荐(0)

[ADO]如何修改ADO的线程模型(zz)
摘要:ADO缺省情况下当然是Apartment线程模型。 If you are using this in IIS and ADO is only being used at page scope then it should be fine. If you are using it at the session or application level then you will need to m... 阅读全文

posted @ 2004-05-18 00:21 Snowwolf 阅读(1326) 评论(0) 推荐(0)

导航