Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stub Error suddenly coming up

Status
Not open for further replies.

RichardofYork

Programmer
Jun 21, 2000
2
GB
I've had an MTS object working fine for about a week:&nbsp;&nbsp;Suddenly it's going weird, and if I've changed anything I can't think what it may be.<br><br>The class is written in vb.&nbsp;&nbsp;It's a regular stateful class which I've made stateless by taking its variables and properties and putting them into a string which gets passed back and forth between the client and the server on specific calls.<br><br>However, now whenever I access one particular property (which happens to be a date property) for the second time (!) I get &quot;Method '~' of object '~' failed&quot;.&nbsp;&nbsp;When running in debug it identifies this as being &quot;Method 'Intro_Date' of object '_cContact' failed&quot;, and when you put the object into debug as well the point of failure is when the property exits.<br><br>the first time it works:&nbsp;&nbsp;The second time it fails as above:&nbsp;&nbsp;The third time it says &quot;The stub received bad data&quot;.<br><br>The metadata string gets passed back and forth the whole time.&nbsp;&nbsp;The class receives it as a variant, but converts it to a string once it arrives.<br><br>Any clues?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top