CGarces / pop2owa

http://www.pop2owa.com
1 stars 1 forks source link

Exception with `telnet localhost 110` #48

Open CGarces opened 15 years ago

CGarces commented 15 years ago

¡Hola Carlos!

I am trying to set up this program, and I am getting unexpected errors. So I tried with the more barebones I can use, i.e. telnet localhost 110, but the result is worse: I get the "+OK POP3 server ready" invite, but when I press any key in the telnet window, the program ends up abruptly with unhandled exception 5.

I attached what I believe are the relevant debugging aids:

Reported by: antoinel

CGarces commented 15 years ago

logfile for pop2owa

Original comment by: antoinel

CGarces commented 15 years ago

WinDbg session log

Original comment by: antoinel

CGarces commented 15 years ago

File Added: WinDBG.TXT

Original comment by: antoinel

CGarces commented 15 years ago

stack trace

Original comment by: antoinel

CGarces commented 15 years ago

File Added: StackTrace.TXT

Original comment by: antoinel

CGarces commented 15 years ago

Very interesting... but I can't reproduce the error. I not use WinDbg :( and I don't know how I can't help you. Maybe you can help me with a little how to. PDB file from compiled .EXE can help you?.

I'll compile a new version of pop2owa with more info at pop2owa.log that maybe help you. Wait 3 hours (I'm at work)

Un saludo Carlos Garcés

Original comment by: idcarlos

CGarces commented 15 years ago

Original comment by: idcarlos

CGarces commented 15 years ago

Two thingies:

Since I wrote I noticed 2038780 (https://sourceforge.net/tracker/index.php?func=detail&aid=2038780&group\_id=152204&atid=783596), are they duplicates? ¿Did you try the telnet under Win2000? I realize chances are you have no informations since August from "nobody" and the best way to handle 2038780 might be to close the case... Anyway, this afternoon I'll test under XP when I get a moment to do it.

Original comment by: antoinel

CGarces commented 15 years ago

Two thingies:

Since I wrote I noticed 2038780 (https://sourceforge.net/tracker/index.php?func=detail&aid=2038780&group\_id=152204&atid=783596), are they duplicates? ¿Did you try the telnet under Win2000? I realize chances are you have no informations since August from "nobody" and the best way to handle 2038780 might be to close the case... Anyway, this afternoon I'll test under XP when I get a moment to do it.

Original comment by: antoinel

CGarces commented 15 years ago

Hi!

I have added exe and pdb file. Send me a private message to help me with windgb and StackTrace.TXT, I don't know who use it

Original comment by: idcarlos

CGarces commented 15 years ago

Thanks for the .PDB, and sorry for the delay before answering. According to the .PDB, the problem seems to occurs in pop2owa!CSocketMaster::WndProc+0x62 [C:\Desarrollo\pop2owa\CSocketMaster.cls @ 171]

If I get a look at the code, I end near

Public Sub WndProc(ByVal hwnd As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) Select Case uMsg Case RESOLVE_MESSAGE PostResolution wParam, HiWord(lParam) Case SOCKET_MESSAGE PostSocket LoWord(lParam), HiWord(lParam) End Select End Sub

... looks like the window handler of the socket receives a unexpected message.

Original comment by: antoinel

CGarces commented 15 years ago

Hi!

Please check the new attached file. Maybe fix your problem

Un saludo Carlos Garcés

Original comment by: idcarlos

CGarces commented 15 years ago

Original comment by: idcarlos

CGarces commented 15 years ago

Sorry, I do not see any change (still under Win2000, since last week I did not have a moment to test it under XP).

Original comment by: antoinel

CGarces commented 15 years ago

Original comment by: antoinel

CGarces commented 15 years ago

Hi!

Now I understand the bug. Telnet send each char typed... email clients send the commands as entire string. The bug is confirmed, but postponed... I need to implement one buffer to store the chars send before CRLF char... but I need time lo test it.

You can see the pop3 commands using the log features of you email client or installing a small email client for testing, I use http://ultrafunk.com/products/popcorn/

Un saludo Carlos Garcés

Original comment by: idcarlos

CGarces commented 15 years ago

Original comment by: idcarlos

CGarces commented 15 years ago

Okay, look like reasonable to postpone it and decrease priority; now I need to seek another way to check why POP2OWA does not work on the first place with my machine...

Thanks for the quick reaction. Amicalement, Antoine

Original comment by: antoinel

CGarces commented 15 years ago

Changed the title to making it more clear.

Original comment by: antoinel

CGarces commented 15 years ago

Original comment by: antoinel

CGarces commented 15 years ago

Hi!

Please test the compiled version attached, it should work. Server state not is implemented (should be implemented), and QUIT command disconnect from server and force to close the Telnet session (my pop3 serve don't do it).

Un saludo Carlos Garcés

Original comment by: idcarlos

CGarces commented 15 years ago

Pop2owa develop version

Original comment by: idcarlos