Hello everyone. Here is my problem. I have a serviced component which I have written that in the constructor of the object I create another object which I have written to populate some private instance variables. When I debug the component I walk through the
constuctor and watch the creation of the other object, lets call it object2. As I walk through I see all the values in the watch window, but when I return the property is not there. I get a value of NOTHING. Please Help tell me why this is behaving this way.
I must tell everyone this is my FIRST servicedcomponent in .net so far. So please bare with me. Here is some source. When I return from the call to create Environment object the value of _environment is NOTHING _ Public Class CM Inherits ServicedComponent
Implements ICM Public Sub New() Me.New(String.Empty) End Sub Public Sub New(ByVal xmlPath As String) MyBase.New() If xmlPath = String.Empty Then _environment = New Environment() Else _environment = New Environment(xmlPath) End If _cString = GetCMString() End
Sub _ Public Interface ICM Function GetCString(ByVal a As String) As String Function GetACString(ByVal a As String, ByVal c As String) As String End Interface Thank you John
Is your servicedcomponent a Library or server application??? It's probably a Server application, in COM+ you should provide every method with the whole data it requires to work with, because they can't mantain its state (stateless objects).
jhidey
Member
25 Points
5 Posts
ServicedComponent problems
Jul 28, 2003 05:17 PM|LINK
jportelas
Contributor
2728 Points
591 Posts
Re: ServicedComponent problems
Jul 28, 2003 09:39 PM|LINK
AlexKarchevs...
Member
30 Points
6 Posts
Re: ServicedComponent problems
Aug 22, 2003 03:00 PM|LINK