.NETGURU
Strange Debugging Experience With a ServicedComponent
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.

Post a new message to this list...

Raghu
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/..

Reply to this message...
 
    
Raghu
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.

"Raghu" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.EnterpriseServices.ServicedComponent




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification