Question:
Hello,
we want to use Chilkat .NET email library in our project. While everything is good, our application crashed while testing. In application logs there is the following error.
Faulting application name: DiaxeirisiKatastimatos.exe, version: 1.30.90.11576, time stamp: 0x5492faaa
Faulting module name: MSVCR80.dll, version: 8.0.50727.4940, time stamp: 0x4ca2b4dd
Exception code: 0xc000000d
Fault offset: 0x000000000001f0bb
Faulting process id: 0x127100
Faulting application start time: 0x01d01b5b8e5d2fe0
Faulting application path: D:\_DiaxeirisiKatastimatos\DiaxeirisiKatastimatos.exe
Faulting module path: C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_88df89932faf0bf6\MSVCR80.dll
Report Id: 748202de-8774-11e4-9c17-003048da7179
We have an event for catching unhandled exceptions, but nevertheless the application crashed with a Windows message. I don't know if it matters, but the application is obfuscated using SmartAssembly.
Does anyone have any ideas? We can't use the library is this is going to be happening.
Thanks in advance.
Edit: v.9.5.0.46 These are the 2 last entries of the log file after crashing.
IsUnlocked: DllDate: Dec 5 2014 ChilkatVersion: 9.5.0.46 UnlockPrefix: GENIKIMAILQ Username: *** Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 (leaveContext) GetUidls: DllDate: Dec 5 2014 ChilkatVersion: 9.5.0.46 UnlockPrefix: GENIKIMAILQ Username: *** Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 pop3OpenConnection: terminateConnection: (leaveContext) Connecting to POP3 server hostname: *** port: 110 ssl: 0 connectTimeoutMs: 30000 socket2Connect: connect2: hostname: *** port: 110 ssl: 0 connectSocket: domainOrIpAddress: *** port: 110 connectTimeoutMs: 30000 connect_ipv6_or_ipv4: Multi-threaded domain to IP address resolution resolveHostname6: getAddressInfo: (leaveContext) (leaveContext) connecting to IPV4 address... ipAddress: 172.16.1.111 createSocket: (leaveContext) connect: Waiting for the connect to complete... ck_getsockname_ipv4: (leaveContext) myIP: 172.16.1.201 myPort: 64901 socket connect successful. (leaveContext) (leaveContext 15ms) (leaveContext 15ms) (leaveContext 15ms) (leaveContext 31ms) Connected to POP3 server Turning on TCP_NODELAY. socketOptions: SO_SNDBUF: 8192 SO_RCVBUF: 8192 TCP_NODELAY: 1 (leaveContext) PopCmdResp: +OK Dovecot ready. greeting: +OK Dovecot ready. ConnectionType: Unencrypted TCP/IP (leaveContext 47ms) Pop3Authenticate: username: *** popSPA: 0 PopCmdSent: USER *** PopCmdResp: +OK PopCmdSent: PASS **** PopCmdResp: +OK Logged in. POP3 authentication success (leaveContext 187ms) PopCmdSent: UIDL sendCommand: Elapsed time: 0 millisec PopCmdResp: +OK PopCmdResp: . getMultiLineResponse: Elapsed time: 0 millisec UidlCount: 0 Success. (leaveContext 234ms) FetchMultipleHeaders: DllDate: Dec 5 2014 ChilkatVersion: 9.5.0.46 UnlockPrefix: GENIKIMAILQ Username: *** Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 PopCmdSent: STAT sendCommand: Elapsed time: 0 millisec PopCmdResp: +OK 0 0 getOneLineResponse: Elapsed time: 0 millisec statResponse: +OK 0 0 PopCmdSent: LIST sendCommand: Elapsed time: 0 millisec PopCmdResp: +OK 0 messages: . getMultiLineResponse: Elapsed time: 0 millisec (leaveContext 16ms) Pop3EndSession: DllDate: Dec 5 2014 ChilkatVersion: 9.5.0.46 UnlockPrefix: GENIKIMAILQ Username: *** Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 PopCmdSent: QUIT sendCommand: Elapsed time: 0 millisec PopCmdResp: +OK Logging out. getOneLineResponse: Elapsed time: 0 millisec Closing POP3 connection terminateConnection: TCP connection cleanly closed by peer. Cleanly terminated TCP connection. (leaveContext) terminateConnection: (leaveContext) Success. (leaveContext 15ms) IsUnlocked: DllDate: Dec 5 2014 ChilkatVersion: 9.5.0.46 UnlockPrefix: GENIKIMAILQ Username: *** Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 (leaveContext 16ms) SendEmail: DllDate: Dec 5 2014 ChilkatVersion: 9.5.0.46 UnlockPrefix: GENIKIMAILQ Username: *** Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 recipients: TO: *** CC: *** totalCount: 2 (leaveContext) renderToMime: createEmailForSending: xSigningAlg: sha1 Auto-generating Message-ID clone2: assembleMimeBody: contentType: text/plain isEmailAttachment: attachmentReason: contentType: text/plain subject: FW:2325338234 from: *** No, attachment is not indicated. (leaveContext) (leaveContext) getEncodedBody: contentType: text/plain cp: 28597 Converting from utf-8...
Edit: v.9.5.0.47 crashed again
IsUnlocked: DllDate: Jan 8 2015 ChilkatVersion: 9.5.0.47 UnlockPrefix: GENIKIMAILQ Username: Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 (leaveContext 15ms) SendEmail: DllDate: Jan 8 2015 ChilkatVersion: 9.5.0.47 UnlockPrefix: GENIKIMAILQ Username: Architecture: Little Endian; 64-bit Language: .NET 2.0 / x64 VerboseLogging: 1 renderToMime: createEmailForSending: xSigningAlg: sha1 Auto-generating Message-ID clone2: assembleMimeBody: contentType: text/plain isEmailAttachment: attachmentReason: contentType: text/plain subject: RE:2952776960 emitAsMimeField: (leaveContext) from: *** No, attachment is not indicated. (leaveContext 16ms) (leaveContext 16ms) parseEmailAddressList: (leaveContext) emitAsMimeField: (leaveContext) parseEmailAddressList: (leaveContext) emitAsMimeField: (leaveContext) parseEmailAddressList: (leaveContext) emitAsMimeField: (leaveContext) getEncodedBody: contentType: text/plain cp: 28597 Converting from utf-8...
Thanks! Please check to see if this pre-release of version 9.5.0.47 fixes the problem:
32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet2-9.5.0-win32.zip
64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatDotNet2-9.5.0-x64.zip
If it does not, please post the last few entries of the debug log file using this new version.
I'm not aware of any crash bugs such as what you reported. I would recommend testing with v9.5.0.46, and then also turn on verbose logging (mailman.VerboseLogging = true) and also set the mailman.DebugLogFilePath equal to the path of a log file to be created. If you reproduce the crash, you'll be left with a detailed log of what was happening within the Chilkat method call, and you can post that here.
The DebugLogFilePath has the effect of causing all the information that goes to LastErrorText to be also sent to the log file. If you see that the LastErrorText in the log file is complete, then it is most likely that the crash did not occur inside the Chilkat method call.
Is it possible for you to send me a Visual Studio 2005 project that reproduces the crash? You can remove your SMTP login/password, and I can use my own server.
Also, check to see if the crash depends on the recipients. Can you still reproduce the crash if your program sends the email to "support@chilkatsoft.com"?
You may respond directly via private email to support@chilkatsoft.com