From: gregory.hodges on 26 Jul 2007 12:53 Hey Everybody, So, I'm trying to use AdsMgGetLocks to retrieve information about the locked records in a table that is currently open. However, it doesn't appear to be working. For instance, every time I use it, it returns that there are no locked records. But, I know that this is not true, and there is at least one locked record in the table. Here's the code that is currently implemented: LOCAL DIM astRECORDINFO[300] AS ADS_MGMT_RECORD_INFO AdsMgGetLocks ( dwMgtHandle, @astOPENTABLEINFO[i].aucTableName, NULL, 0,; @astRECORDINFO, @wLenOfLockInfo, @wSizeOfLockInfo ) I've tried several variations of this... with the correct pucUserName and different values for usConnNumber. I've also tried passing astRECORDINFO as a non-reference too. I'm getting astOPENTABLEINFO from AdsMgGetOpenTables() and that works just fine, so I know the table information is good. I'm setting wSizeOfLockInfo := _sizeof( ADS_MGMT_RECORD_INFO ) The only thing I can think might be wrong is that I haven't set wLenOfLockInfo to anything because I don't know the exact number of locked records in the table. That's one of the things that I'm trying to find out. If anyone has any suggestions, they'd be more than helpful.
From: Mike Pitcher on 26 Jul 2007 14:42 On 26 Jul, 17:53, gregory.hod...(a)gmail.com wrote: > Hey Everybody, > > So, I'm trying to use AdsMgGetLocks to retrieve information about the > locked records in a table that is currently open. > > However, it doesn't appear to be working. For instance, every time I > use it, it returns that there are no locked records. But, I know that > this is not true, and there is at least one locked record in the > table. > > Here's the code that is currently implemented: > > LOCAL DIM astRECORDINFO[300] AS ADS_MGMT_RECORD_INFO > > AdsMgGetLocks ( dwMgtHandle, @astOPENTABLEINFO[i].aucTableName, NULL, > 0,; > @astRECORDINFO, @wLenOfLockInfo, @wSizeOfLockInfo ) > > I've tried several variations of this... with the correct pucUserName > and different values for usConnNumber. I've also tried passing > astRECORDINFO as a non-reference too. > > I'm getting astOPENTABLEINFO from AdsMgGetOpenTables() and that works > just fine, so I know the table information is good. > > I'm setting wSizeOfLockInfo := _sizeof( ADS_MGMT_RECORD_INFO ) > > The only thing I can think might be wrong is that I haven't set > wLenOfLockInfo to anything because I don't know the exact number of > locked records in the table. That's one of the things that I'm trying > to find out. > > If anyone has any suggestions, they'd be more than helpful. Gregory ... Why don't you post this in the ADS VO NewsGroup? Peter Funk is very active there. Mike
From: Harry B. on 26 Jul 2007 14:47 > > Why don't you post this in the ADS VO NewsGroup? Where to find? Cheers, Harry B.
From: gregory.hodges on 26 Jul 2007 15:17 Yeah, where do I find the ADS VO newsgroup?
From: Harry B. on 26 Jul 2007 15:54
gregory.hodges(a)gmail.com schrieb: > Yeah, where do I find the ADS VO newsgroup? > Aaaaah, look at this: http://entwickler-forum.de/forumdisplay.php?f=30 Cheers, Harry B. |