Page 1 of 1

ADSCDX\5023 error

Posted: Wed Sep 11, 2013 6:48 am
by dutch
Dear All,

I've got this error while to use DbCloseAll() function with ADS. It has data open but error as subject and code.

Code: Select all

Application
==========
   Path and name : D:\V5\EZ4POS\Release\EZ4POS5.EXE (32 bits)
   Gr๖฿e : 4,847,616 bytes
   Time from start : 0 hours 0 mins 14 secs 
   Error occurred at : 11/09/13, 13:38:24
   Error description : Error ADSCDX/5023  Read error

Stack Calls
===========
   Called from : D:\V5\EZ4POS\EZCASH1.PRG => (b)CASHIER(41)
   Called from :  => DBCLOSEALL(0)
   Called from : D:\V5\EZ4POS\EZPOS.PRG => NOWQUIT(2979)
   Called from : D:\V5\EZ4POS\EZPOS.PRG => LOGOFF(3949)
   Called from : D:\V5\EZ4POS\EZPOS.PRG => (b)MAIN(466)
Thank you in advance for any help and idea.

Re: ADSCDX\5023 error

Posted: Wed Sep 11, 2013 11:10 am
by Dima
.........
hb_waEval( {|| (Alias())->(DbClearRelation())} )
dbCloseAll()

Re: ADSCDX\5023 error

Posted: Thu Sep 12, 2013 1:59 am
by dutch
Dear Dima,

I think so. Because the new xHarbour 1.2.3, I cannot close the main database file before close related file. It will show an error "Read Error".

Which library has contain the hb_waEval() function? I cannot compile with xHB 1.2.3 and FWH1305.
Dima wrote:.........
hb_waEval( {|| (Alias())->(DbClearRelation())} )
dbCloseAll()
Thanks in advance.

Re: ADSCDX\5023 error

Posted: Thu Sep 12, 2013 6:12 am
by Dima
hb_waEval() -> Harbour 2.0

Code: Select all

amas:=aGetWorkAreas() // FW
   if len(amas)#0
 for each als in amas
(als)->(DbClearRelation())
 next
   endif
DbCloseAll()
 

Re: ADSCDX\5023 error

Posted: Fri Sep 13, 2013 2:36 am
by dutch
Dear Dima,

Thank you so much, it works fine now.