Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: POP Crashes on Retrieve of a message
akrumsee

From: Columbus, OH USA
Posts: 29
Member Since: 11/14/01
posted August 5, 2003 9:08 AM

I have a code block that simply retrieves a message from the pop queue into a vb6 string variable.

The code looks like this:
 pop1.Login POPServer, PopAccount, PopPW
 pop1.Timeout = 300000
 If pop1.Count > 0 Then
  pop1.Command "RETR 1", GetNextMessage, True
  pop1.Delete 1
 End If
 pop1.Logout

For the most part this code works flawlessly, retrieving thousands of messages. Every now and then, though, it encounters a message which causes a failure at the point of retrieval. The entire application crashes with a Windows attempted to write memory error. This bypasses any error handling I have in my code and my application crashes.

I have a complete trace of the conversation.

Art
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 5, 2003 11:16 AM

Please find a message that causes the crash and don't delete it. Then use Outlook Express to save it as an .eml file. Zip that file up and mail it to support@dart.com referencing this topic ( #3344 )

akrumsee

From: Columbus, OH USA
Posts: 29
Member Since: 11/14/01
posted August 7, 2003 8:49 AM

I tried to do this. I went to the server and reran my code waiting till it crashed. It didn't! It cleared more than 30,000 messages from a pop queue without an error. Nothing has changed since when my app crashing constantly with one exception. The server was rebooted. Do you have any thoughts on why a reboot would resolve this kind of problem?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 7, 2003 9:01 AM

It might be a memory problem. Try to adjust your program so that next time it crashes you will know exactly which message it crashed on. The follow the steps I described above to save the offending message.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX