Passing Variant Array from ASP to COM Component 
Author Message
 Passing Variant Array from ASP to COM Component

Hi,

How to pass a variant array from ASP to COM Component?
We are getting "OUT OF MEMORY" while passing variant array from ASP to
COM Component...
It is working fine while passing other type of arguments (except variant
array) from ASP to COM Component...

Suggestions would highly appreciated...

Expecting Suggestion...

- Development Team
Pinnacle Software System (P) LImited
Chennai



Tue, 30 Jul 2002 03:00:00 GMT  
 Passing Variant Array from ASP to COM Component
How are you passing the array?

If you pass it as param(5) or param() you will probably get an error.

Pass it as a variant without specifying the bounds.

On the asp on reciept of the data, check the bounds using LBound and UBound
functions....

I've done this and know that this works too...

Laski...

Quote:

> Hi,

> How to pass a variant array from ASP to COM Component?
> We are getting "OUT OF MEMORY" while passing variant array from ASP to
> COM Component...
> It is working fine while passing other type of arguments (except variant
> array) from ASP to COM Component...

> Suggestions would highly appreciated...

> Expecting Suggestion...

> - Development Team
> Pinnacle Software System (P) LImited
> Chennai



Tue, 30 Jul 2002 03:00:00 GMT  
 Passing Variant Array from ASP to COM Component
You can do this 2 ways .

1. Dim Array
    then do a ReDim(x) , you can then pass the array ByVal
2. Make the param ByRef

Explicitly creating the array will cause this error

Quote:

> Hi,

> How to pass a variant array from ASP to COM Component?
> We are getting "OUT OF MEMORY" while passing variant array from ASP to
> COM Component...
> It is working fine while passing other type of arguments (except variant
> array) from ASP to COM Component...

> Suggestions would highly appreciated...

> Expecting Suggestion...

> - Development Team
> Pinnacle Software System (P) LImited
> Chennai



Sun, 04 Aug 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing Variant Array from ASP to COM Component

2. Passing VARIANT array to COM

3. Pass Variant Array to a COM Object

4. Passing VARIANT array to COM

5. Passing a variant array from asp to a cls and back

6. Problem passing a variant array out of VBasic object to ASP

7. Problem passing VB COM+ ASP Request object to .NET component System.Web.HTTPRequest through COM interop

8. Passing Arrays to COM Components

9. Passing array to COM component

10. Passing UDTs from ASP to COM Components

11. Passing error from Com component to ASP

12. Pass ASP Intrinsics to Com component by ref?

 

 
Powered by phpBB® Forum Software