remote UDT array arg...Curious Bug... 
Author Message
 remote UDT array arg...Curious Bug...

*** Note this is also posted in Vb.Bugs ***

Hello:  I have a remote data access component that defines a public UDT in a
class as follows:
'**************************************************
Public Type DataControllerParam
    Name as String
    Direction as ADODB.ParamDirectionEnum
    Type as ADODB.ParamTypeEnum
    etc etc etc...
End type
'**************************************************

In the same class there is a public function as follows:
'**************************************************
Public function (Params() as DataControllerParam) as ADODB.Recordset
On Error GoTo eTrap

'*** EXECUTION CODE ***

'Error handler
Exit function
eTrap:
    err.Raise Err.Number, Err.Source, Err.Description
    Exit Function
End function
'**************************************************

Problem:  The function works perfectly...execpt if an error occurs...or I
raise a custom error for business logic etc etc.
the error data the client recieves is ALWAYS:
#:  The correct number
Source: ???The name of the client project that called the function???
Description: ???Application-defined or object-defined error???

*** This is obviously a big problem because the client cannot evaluate the
error description or source because it is the same regardless of the
error...The error number does change which is so bizzare to me...It only
happens when I use an Enum as part of the UDT declaration in the class.  I
would like to continue to use the enum in the type definition because the
client gets the use of intellisence and can easily see what values are
appropriate for that part of the UDT...

Any insight would be greatly appreciated...
Shannon Richards
BBA, AIT, MCP



Tue, 18 May 2004 02:00:26 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. ADODB call Oracle 817 proc - pass array as arg

2. Returning array of type UDT

3. Recordset or array of UDT

4. Universe bug: GET(ARG.)

5. Help with UDT - Converting a UDT to a string Variable

6. cc/db2look bug with LOB-based UDT parameters?

7. A curious bug in SQL Server 7.0.

8. Curious behavior (bug ?????)

9. Bug #876: Bugs Inserts Arrays

10. How to return an array datatype from a remote package call

11. BUGS idapi BUGS idapi BUGS idapi BUGS

12. ESQL/C 5.01 Bug with SELECT and arrays used in WHERE qualification


 
Powered by phpBB® Forum Software