尝试获取CCriticalSection对象上的锁时发生访问冲突 [英] Access Violation while trying to acquire lock on CCriticalSection object

查看:98
本文介绍了尝试获取CCriticalSection对象上的锁时发生访问冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

推荐答案

在此处显示一些代码会有所帮助.您如何声明和初始化CCriticalSection类?您是直接锁定它还是使用CSingleLock?

Showing some code here will help.  How are you declaring and initializing your CCriticalSection class?  Are you directly locking it or using CSingleLock? 

当您崩溃时,调试器将显示this指针用于CCriticalSectionClass吗?所有者类的this指针又如何呢?在IIRC中,CCriticalSectionClass只是封装了CRITICAL_SECTION对象.有什么价值 那个物体的?

When you crash, what does the debugger show the this pointer is for the CCriticalSectionClass?  What about the this pointer for the owner class?  IIRC, the CCriticalSectionClass simply encapsulates a CRITICAL_SECTION object.  What is the value of that object?


这篇关于尝试获取CCriticalSection对象上的锁时发生访问冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆