PDA

Click to See Complete Forum and Search --> : Problem with COM+


atallapaneni
May 9th, 2001, 11:55 PM
Hi ,
I have a COM+ problem. I registered the data and business dlls in COM+

on WIN2K server. While I was executing the code I got an error which is

as follows.

"You made a method call on a COM+ component that has a transaction that has already committed or aborted."

I made the following observation.
I invoked a business method in my screen which returns a collection. I

assigned this collection to a local collection
(NOTE:Here gclnPicklists is global collection which is declared in the standard module)
DIM pclnPicklists as new collection

set pclnPicklists = {Business method}

set gclnPicklists=pclnPicklists

debug.print gclnPicklists.count
'No problems. It prints the count
'Now I did the following

set pclnPickLists = Nothing
'I issued the above statement again
debug.print gclnPicklists.count
**********************************
The above error occured.

Please help. It would be very helpful.

Thanks,
Anjan

TheBao
May 10th, 2001, 01:28 AM
After this line:

set pclnPickLists = Nothing


You can not refer to gclnPicklists or pclnPicklists anymore since you have dereference pclnPicklists.

To use the gclnPicklists.count, you must store it in a variable such as:

lngTemp = gclnPicklists.count


before you dereference pclnPicklists.

Regards,
TheBao