今天使用 CApSelect的时候出现这个错误,代码如下:
运行到CApSelect::NewLC()的时候出现这个错误,GOOGLE之没有结果,最后猜测是上面那句话的缘故,所以将这句换到后面,
然后问题就解决了,程序顺利执行。
不知道是什么原因,看下面一段介绍BeginTransaction的文字:
Marks the start of a transaction and gets a shared read-lock on the database. Other clients of the database can concurrently acquire a shared read-lock but no client can gain an exclusive write-lock until this transaction (and any transaction started by other clients) completes as a result of a call to either CommitTransaction() or RollbackTransaction().
A transaction consists of one or more record updates and/or insertions and/or deletions. The process of making changes to records within a view is part of CCommsDbTableView behaviour.
会不会是锁的问题呢?大家给点提示吧~~