由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - synclock question
相关主题
请各位老大分享一下exception的使用经验吧。拷。.net有个重大bug
菜鸟问题:VB.Net App一启动就进入Minimiz状态How to stop windows service in OnStart()
A VB Question from a beginner你们都做server side validation?
confused, seeking suggestionsanswer - Re: .NET 新手 请教两个弱问题
vb.net如何显示缩小后窗口消失的程序(已解决)请帮忙: 在ASP.NET 中 打开数据库时出现错误
Reference type问题Log on to a remote computer
Interesting change in vs 2005A quick question about Access..
想破脑壳也不知道为什么finally不执行How to check a linked table?
相关话题的讨论汇总
话题: synclock话题: file话题: exception话题: question话题: using
进入DotNet版参与讨论
1 (共1页)
G**T
发帖数: 388
1
I'm using a function to record all the exception in the program. However,
sometimes, it reports that: can not access the file (gstrErrorFileName), since
another process is using it. In my program, only the code below accesses that
file and I use synclock to lock it. Could it because windows OS is accessing
it? If yes, how can I prevent it so that it won't throw the exception?
thanks
visual basic code:
' write to the error log file
Dim oLockFile As New Object
SyncLock oLoc
1 (共1页)
进入DotNet版参与讨论
相关主题
How to check a linked table?vb.net如何显示缩小后窗口消失的程序(已解决)
How to quick update a Access Report?Reference type问题
为什么我的vs2005不能打开Access文件Interesting change in vs 2005
为啥clr via c#没有讲到code access security?想破脑壳也不知道为什么finally不执行
请各位老大分享一下exception的使用经验吧。拷。.net有个重大bug
菜鸟问题:VB.Net App一启动就进入Minimiz状态How to stop windows service in OnStart()
A VB Question from a beginner你们都做server side validation?
confused, seeking suggestionsanswer - Re: .NET 新手 请教两个弱问题
相关话题的讨论汇总
话题: synclock话题: file话题: exception话题: question话题: using