Hi,

I have looked at the similar bugs:

http://bugzilla.xamarin.com/show_bug.cgi?id=1534

http://bugzilla.xamarin.com/show_bug.cgi?id=1394

http://bugzilla.xamarin.com/show_bug.cgi?id=1031

But, failed to implement a solution yet, I have also tried GC.Collect.

Do we have a solution yet?


Regards,

 
Nirban Dutta
 
Software Engineer




-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Wednesday, 26 October 2011 7:53 PM
To: [email protected]
Subject: Monodroid Digest, Vol 15, Issue 68

Send Monodroid mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.ximian.com/mailman/listinfo/monodroid
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Monodroid digest..."


Today's Topics:

   1. Re: Error in downloading file stream from WCF web service
      (Andrew Sinclair)


----------------------------------------------------------------------

Message: 1
Date: Wed, 26 Oct 2011 09:52:43 +0100
From: "Andrew Sinclair" <[email protected]>
Subject: Re: [mono-android] Error in downloading file stream from WCF
        web     service
To: "'Discussions related to Mono for Android'"
        <[email protected]>
Message-ID: <001b01cc93bc$a06b19d0$e1414d70$@com>
Content-Type: text/plain; charset="us-ascii"

Nirban,

 

This sounds to me like the same underlying problem as one or more of:

 

http://bugzilla.xamarin.com/show_bug.cgi?id=1534

http://bugzilla.xamarin.com/show_bug.cgi?id=1394

http://bugzilla.xamarin.com/show_bug.cgi?id=1031

 

In my case it's with HttpWebRequests, but it sounds pretty similar
otherwise.

 

Cheers,

 

Andy

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Nirban Dutta
Sent: 26 October 2011 07:18
To: [email protected]
Subject: [mono-android] Error in downloading file stream from WCF web
service

 

Hi,

 

We are downloading lot of image files  by calling web method once for each
file in loop. We receive the file as stream of bytes.

 

When tested, for a download of about 50 files,  after few 20~30 files the
web service call fails and the app crashes, while downloading any random
file(not specific to any file).

 

File sizes are normally 0.5MB to 4 MB,  and we have already set timeout etc,
as given below:

         binding.SendTimeout = new TimeSpan(0, 20, 0);

         binding.MaxReceivedMessageSize = 2147483647;

         binding.MaxBufferSize = 2147483647;

         svc.Proxy = new ProjectCentreServiceClient(binding, endpoint);

 

I have monitored the error and mostly this appears:

 

10-26 14:59:20.861: INFO/mono(17497):   at
System.Text.StringBuilder.InternalEnsureCapacity (int) <0x000b7>

10-26 14:59:20.861: INFO/mono(17497):   at System.Text.StringBuilder.Append
(char) <0x0003f>

10-26 14:59:20.861: INFO/mono(17497):   at Mono.Xml2.XmlTextReader.ReadText
(bool) <0x0010f>

10-26 14:59:20.861: INFO/mono(17497):   at
Mono.Xml2.XmlTextReader.ReadContent () <0x001db>

10-26 14:59:20.861: INFO/mono(17497):   at Mono.Xml2.XmlTextReader.Read ()
<0x001d3>

10-26 14:59:20.861: INFO/mono(17497):   at System.Xml.XmlTextReader.Read ()
<0x000c7>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Xml.XmlSimpleDictionaryReader.Read () <0x0001f>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Xml.XmlReader.ReadStartElement () <0x00033>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Xml.XmlDictionaryReader.ReadElementContentAsString () <0x0004f>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.XmlFormatterDeserializer.DeserializePrimitive
(System.Type,System.Xml.XmlReader,System.Xml.XmlQualifiedName) <0x002db>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize
(System.Type,System.Xml.XmlReader) <0x004c7>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.SerializationMap.DeserializeContent
(System.Xml.XmlReader,System.Runtime.Serialization.XmlFormatterDeserializer,
string,bool) <0x004cb>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.SerializationMap.DeserializeContent
(System.Xml.XmlReader,System.Runtime.Serialization.XmlFormatterDeserializer,
string) <0x00037>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.SerializationMap.DeserializeObject
(System.Xml.XmlReader,System.Runtime.Serialization.XmlFormatterDeserializer)
<0x000b7>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.XmlFormatterDeserializer.DeserializeByMap
(System.Xml.XmlQualifiedName,System.Type,System.Xml.XmlReader) <0x00147>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize
(System.Type,System.Xml.XmlReader) <0x00527>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.XmlFormatterDeserializer.Deserialize
(System.Xml.XmlReader,System.Type,System.Runtime.Serialization.KnownTypeColl
ection,System.Runtime.Serialization.IDataContractSurrogate,System.Runtime.Se
rialization.DataContractResolver,System.Runtime.Serialization.DataContractRe
solver,string,string,bool) <0x000ef>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.DataContractSerializer.ReadObject
(System.Xml.XmlDictionaryReader,bool) <0x000c3>

10-26 14:59:20.861: INFO/mono(17497):   at
System.Runtime.Serialization.XmlObjectSerializer.ReadObject
(System.Xml.XmlDictionaryReader) <0x0002b>

10-26 14:59:20.871: INFO/mono(17497):   at
System.ServiceModel.Dispatcher.DataContractMessagesFormatter.ReadMessagePart
(System.ServiceModel.Description.MessagePartDescription,System.Xml.XmlDictio
naryReader) <0x00093>

10-26 14:59:20.871: INFO/mono(17497):   at
System.ServiceModel.Dispatcher.DataContractMessagesFormatter.MessageToParts
(System.ServiceModel.Description.MessageDescription,System.ServiceModel.Chan
nels.Message) <0x001af>

10-26 14:59:20.871: INFO/mono(17497):   at
System.ServiceModel.Dispatcher.BaseMessagesFormatter.DeserializeReply
(System.ServiceModel.Channels.Message,object[]) <0x00107>

10-26 14:59:20.871: INFO/mono(17497):   at
System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply
(System.ServiceModel.Channels.Message,object[]) <0x0002f>

10-26 14:59:20.871: INFO/mono(17497):   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request
(System.ServiceModel.Description.OperationDescription,object[]) <0x0051b>

10-26 14:59:20.871: INFO/mono(17497):   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess
(System.Reflection.MethodBase,string,object[]) <0x00077>

10-26 14:59:20.871: INFO/mono(17497):   at
System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process
(System.Reflection.MethodBase,string,object[]) <0x00037>

10-26 14:59:20.871: INFO/mono(17497):   at (wrapper runtime-invoke)
<Module>.runtime_invoke_object__this___object_object_object
(object,intptr,intptr,intptr) <0xffffffff>

 

 

 

Please help..

 

Regards,

 


 

Nirban Dutta


 

Software Engineer


PROJECTCENTRE_LOGO_


 

P 1300 653 420 | M +61 432 675 543 

Deloitte_TF50Winner


F +61 (0) 2 9420 8277


3 / 11 Orion Road, Lane Cove, NSW, Australia 2066

CADX PTY LTD DISCLAIMER: The information contained in this email message is
CONFIDENTIAL INFORMATION, and may also be LEGALLY PRIVILEGED, intended only
for the individual or entity named above. If you are not the intended
recipient, you are hereby notified that any use, review, dissemination,
distribution or copying of this document is strictly prohibited. If you have
received this document in error, please immediately notify us by email and
destroy the original message. CADX disclaims all liability and
responsibility for any direct or indirect loss or damage that may be
suffered by any recipient of this message

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.ximian.com/pipermail/monodroid/attachments/20111026/bdd3327e/attachment.html
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 9716 bytes
Desc: not available
Url : 
http://lists.ximian.com/pipermail/monodroid/attachments/20111026/bdd3327e/attachment.jpe
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 25096 bytes
Desc: not available
Url : 
http://lists.ximian.com/pipermail/monodroid/attachments/20111026/bdd3327e/attachment-0001.jpe
 

------------------------------

_______________________________________________
Monodroid mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monodroid


End of Monodroid Digest, Vol 15, Issue 68
*****************************************
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to