ARLM-Keller / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Retrieving multiple emoticon issue #306

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Add a event handler to handle all emoticon retrieved and save them to file 
by using OpenStrem().
2. Log into A account by using MSNPSharp library and B account by using 
official client.
3. B send "1" emoticon to A, A can retrieve the emoticon successfully.
4. B send "2 or more" "different" emoticons to A, A can just retrieve some of 
them (maybe 1 or 2), and sometimes these are empty (using OpenStream().Length).
5. B send the missing emoticons, which did not trigger the event handler in 
step 4, to A, they are able to trigger the event handler this time, but all of 
them are empty (using OpenStream().Length).

What is the expected output? What do you see instead?

All retrieved emoticons should be sent to event handler one by one and I am 
able to read the content from OpenStream().
Just some of them (2 out of 4 in recent test) are sent to handler, and I got 
empty stream when B sent the missing emoticons to A again (as mentioned in step 
5).

What version of the product are you using? (MSNPSharp, OS, Mono etc.)

A: simple program with MSNPSharp 4.5 stable build on Windows
B: official MSN client (14.0) on Windows

P.S. Even I tried the example application, I got the same result as above.

Is your code check out from SVN or download from our download site?

Yes, I am using the most recent version (4.5).

Please provide any additional information below:

Original issue reported on code.google.com by hkmouse...@gmail.com on 20 Nov 2011 at 5:29

GoogleCodeExporter commented 8 years ago
Just had a error as below from example application when I am doing exactly like 
step 5.

System.ArgumentException:
   System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
   System.Drawing.Image.FromStream(Stream stream)
   MSNPSharpClient.ConversationForm.OnMessageReceived(Object sender, MessageArrivedEventArgs e)
   MSNPSharpClient.ClientForm.MessageManager_MessageArrived(Object sender, MessageArrivedEventArgs e)

Original comment by hkmouse...@gmail.com on 20 Nov 2011 at 5:37

GoogleCodeExporter commented 8 years ago
Can you attach a full trace log to us?

Original comment by freezing...@gmail.com on 21 Nov 2011 at 12:54

GoogleCodeExporter commented 8 years ago
(Running in same computer, but using different clients)
Receiver: moon_tester1@hotmail.com
Sender: mouse@XXXXXX

Attachments:
MSNPSharp_500_Log        --> Complete log from example (DotMSNClient.exe) of 
MSNPSHARP_500_BETA3
MSNPSharp_500_C#Error    --> C# Error after receiving the last "'$" (shortcut 
of a sent custom emoticon)
MSNPSharp_500_Screenshot --> Screenshot

Original comment by hkmouse...@gmail.com on 29 Dec 2011 at 9:01

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for reporting, I like your emoticons :)

Original comment by freezing...@gmail.com on 31 Dec 2011 at 2:52

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2695.

Original comment by freezing...@gmail.com on 31 Dec 2011 at 3:44

GoogleCodeExporter commented 8 years ago
Seems that the problem has not been fixed..

Original comment by hkmouse...@gmail.com on 31 Dec 2011 at 5:40

GoogleCodeExporter commented 8 years ago
Does the error in example client still exists?

Original comment by freezing...@gmail.com on 1 Jan 2012 at 1:24

GoogleCodeExporter commented 8 years ago

Original comment by freezing...@gmail.com on 1 Jan 2012 at 1:25

GoogleCodeExporter commented 8 years ago
Yes, the result is the same.

Original comment by hkmouse...@gmail.com on 1 Jan 2012 at 2:21

GoogleCodeExporter commented 8 years ago
That's strange, would you please use the IDE in debug mode to reproduce this 
error and show me the full stacktrace (which shows what methods call 
MSNPSharpClient.ClientForm.MessageManager_MessageArrived)?

Original comment by freezing...@gmail.com on 3 Jan 2012 at 2:55

GoogleCodeExporter commented 8 years ago
Hi,
Can you have a try on the current DEV version in SVN?

Original comment by freezing...@gmail.com on 4 Jan 2012 at 3:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Same result :(

Original comment by hkmouse...@gmail.com on 4 Jan 2012 at 4:07

GoogleCodeExporter commented 8 years ago
Can you provide us a full stack trace when the exception has been thrown? The 
last trace you provided ends at 
MSNPSharpClient.ClientForm.MessageManager_MessageArrived, I want to see which 
method(s) call MessageManager_MessageArrived. Thanks again and appreciate your 
help!

Original comment by freezing...@gmail.com on 5 Jan 2012 at 11:27

GoogleCodeExporter commented 8 years ago
I can only get the stack trace when exception occurs. How to get full stack 
trace? Thanks.

Original comment by hkmouse...@gmail.com on 5 Jan 2012 at 11:35

GoogleCodeExporter commented 8 years ago
Use visual studio to run the whole solution in debug mode.

Original comment by freezing...@gmail.com on 8 Jan 2012 at 5:25