Re: [Harbour] ADS error codes

2010-03-04 Thread Viktor Szakáts
Hi Mindaugas, > So we have two choices: > 1) osCode=AdsError and hack for sharing violation (osCode=32, > subCode=AdsError); > 2) subCode=AdsError and not Clipper compatible subcodes for not ADS errors > like EDBF_DATAWIDTH, etc. One of ways to solve ambiguity in this case is > error code range

Re: [Harbour] ADS error codes

2010-03-04 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: Perhaps we must leave this hack, or... extend default error handler Here is the problem with custom user code using own error handlers. I'm afraid it's hard to change it because it may introduce very serious bugs to valid Clipper code. I also do not like it but I'm

Re: [Harbour] ADS error codes

2010-03-04 Thread Przemysław Czerpak
On Thu, 04 Mar 2010, Mindaugas Kavaliauskas wrote: Hi, > But one problem we have... There is code: > /* 1001 and 7008 are standard ADS Open Errors that will usually be > sharing issues */ > HB_ERRCODE errOsCode = u32RetVal == 1001 || u32RetVal == 7008 ? 32 : 0; > fRetry = commonError( pArea, EG_O

Re: [Harbour] ADS error codes

2010-03-04 Thread Viktor Szakáts
> Przemysław Czerpak wrote: >>> I have a proposal to move ads error value to osCode and leave >>> subCode zero, if we do not return a dbf compatible error. This >>> change also allows to get more precise error description by using >>> AdsGetErrorString(), since we will know ads error in all cases.

Re: [Harbour] ADS error codes

2010-03-04 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: I have a proposal to move ads error value to osCode and leave subCode zero, if we do not return a dbf compatible error. This change also allows to get more precise error description by using AdsGetErrorString(), since we will know ads error in all cases. Any objecti

Re: [Harbour] ADS error codes

2010-03-04 Thread Przemysław Czerpak
On Thu, 04 Mar 2010, Mindaugas Kavaliauskas wrote: Hi, > we have mixed meaning of subCode (3rd parameter of commonError()) in > rddads. Sometimes it is DBF compatible value, ex.: > commonError( pArea, EG_UNLOCKED, EDBF_UNLOCKED, 0, NULL, 0, NULL ); > commonError( pArea, EG_DATATYPE, 1020, 0,

Re: [Harbour] ADS error codes

2010-03-04 Thread Viktor Szakáts
Hi, > we have mixed meaning of subCode (3rd parameter of commonError()) in rddads. > Sometimes it is DBF compatible value, ex.: > commonError( pArea, EG_UNLOCKED, EDBF_UNLOCKED, 0, NULL, 0, NULL ); > commonError( pArea, EG_DATATYPE, 1020, 0, NULL, 0, NULL ); > > In other cases it is error valu