Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / December 2003

Tip: Looking for answers? Try searching our database.

COM+ .setAbort() + .dispose()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VR - 01 Oct 2003 17:22 GMT
Hi, I developed as series of com+ components and everything was going well
until I made the classic method call that does another method call and the
second one calls .setAbort(), when I return to the first component and try
to execute .dispose() on the one that called .setAbort() I receive the
classic error message "You made a method call on a COM+ component that has
aborted or in the process of aborting..."

Is there anything wrong in calling .dispose() on a component that has
aborted the transaction? (if yes, how do I garbage collect it???)

Is there any rule to follow about calling .setAbort() only in the last
component of the chain?

PS: now there's about 30minutes this happened and my components are still
running on COM+ without any client connect to it, so, where's the garbage
collection? Is there anything I'm missing?
Steffen Ramlow - 02 Oct 2003 09:58 GMT
> Hi, I developed as series of com+ components and everything was going
> well until I made the classic method call that does another method
[quoted text clipped - 5 lines]
> Is there anything wrong in calling .dispose() on a component that has
> aborted the transaction?

Yes, a transactional object is always JIT'ed.
If the object is JIT'ed, do *not* call Dispose. Dispose was already called
by the runtime and thus calling Dispose would only activate / deactivate the
object again, absolutely useless. Call Dispose if you want to deactivate an
Un-JIT'ed object.

(if yes, how do I garbage collect it???)

No need.

> Is there any rule to follow about calling .setAbort() only in the last
> component of the chain?

No.

> PS: now there's about 30minutes this happened and my components are
> still running on COM+ without any client connect to it, so, where's
> the garbage collection?

> Is there anything I'm missing?

Yes, GC takes places when there is not enough memory.
John Leyva - 11 Dec 2003 14:26 GMT
I did a test without calling Dispose in a JITA component, with transacción Support and in Pool (MinPool = 5)

The component is a package with Server Activation, a the statistics for the component are enabled.

After the test, I check the component statistics in the Service Component Console, and I notice that there were lots of objects, 0 Activated, Pooled  5, In Call 0.   but the process already finished.

Is it right, this behavior?

When I call Dispose (),

the object counter for the component is 0, but I receive the error

System.Runtime.InteropServices.COMException (0x8004E003): You made a method call on a COM+ component that has a transaction that has already aborted or in the process of aborting.

Thanks in Advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.