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 / August 2004

Tip: Looking for answers? Try searching our database.

Strange Debugging Experience With a ServicedComponent

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raghu - 18 Aug 2004 23:45 GMT
I have a component that subclasses ServicedComponent. It has both JITA and
object pooling enabled. So all initialization code in in Activate method. It
is deployed as a com+ server application. When calling it from a test
application, it creates the object successfully. When keep a break point in
Activate method, the data members are not initliazing properly. When I step
over the code line that assigns a constant variable value to a data member,
the data member still contians null value. However I could set the value of
data member in the local/watch window. What is reason behind this? The os is
windows 2003 with VS.NET 2003. There is no out sync problem with pdb file or
any thing.

When I tried to deploy it as com+ library application, the same behavior
persisted. When I removed all ServicedComponent related code and moved init
code from Activate method to public constructor, every thing worked as
expected.

Thanks.
Raghu/..
Raghu - 20 Aug 2004 14:35 GMT
Figured out that VS.NET can not show values of a servied component because
it works with transparent proxy to the actual object. Even though member
variables are showing as null, they actually contained right values.

> I have a component that subclasses ServicedComponent. It has both JITA and
> object pooling enabled. So all initialization code in in Activate method. It
[quoted text clipped - 14 lines]
> Thanks.
> Raghu/..

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.