I am stumped.  I am getting this exception in my WCF callback method.  How
can I debug it?  What object was disposed?  I put a print statement at the
top of my callback method with dummy text and it DOES get printed.  If I
change the print statement to one that tries to access the
CompletedEventArgs object Error property, it does NOT get printed.  Does
that mean that the CompletedEventArgs object itself has been disposed?  How
could that be?  My version info is below the stack trace?  Any help would be
greatly appreciated.


System.ObjectDisposedException: The object was used after being disposed.
  at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposed ()
[0x00021] in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/CommunicationObject.cs:297
 
  at
System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen ()
[0x00000] in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/CommunicationObject.cs:301
 
  at System.ServiceModel.Channels.HttpRequestChannel.BeginRequest
(System.ServiceModel.Channels.Message message, TimeSpan timeout,
System.AsyncCallback callback, System.Object state) [0x00000] in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:312
 
  at System.ServiceModel.Channels.HttpRequestChannel.Request
(System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000]
in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:72
 
  at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request
(System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x0000b] in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:580
 
  at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request
(System.ServiceModel.Description.OperationDescription od, System.Object[]
parameters) [0x00066] in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:537
 
  at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess
(System.Reflection.MethodBase method, System.String operationName,
System.Object[] parameters) [0x00038] in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:502
 
  at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process
(System.Reflection.MethodBase method, System.String operationName,
System.Object[] parameters) [0x0001c] in
/Developer/MonoTouch/Source/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:479


MonoDevelop 3.0.3.2
Installation UUID: 3eae931c-fd28-4d5c-a2d9-d519f444179c
Runtime:
        Mono 2.10.9 (tarball)
        GTK 2.24.10
        GTK# (2.12.0.0)
        Package version: 210090011
Apple Developer Tools:
         Xcode 4.3.2 (1177)
         Build 4E2002
Monotouch: 5.2.12
Mono for Android not installed
Build information:
        Release ID: 30003002
        Git revision: 7bf6ac0ca43c1b12703176ad9933c3484c05c84c-dirty
        Build date: 2012-06-16 04:36:10+0000
        Xamarin addins: 62ad7268d38c2ece7e00dc32960bd3bdab8fec38
Operating System:
        Mac OS X 10.7.4
        Darwin Shawns-MacBook-Pro.local 11.4.0 Darwin Kernel Version 11.4.0
            Mon Apr  9 19:32:15 PDT 2012
            root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/ObjectDisposedException-Help-tp4655965.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to