Object reference not set to an instance of an object.

Any Chilkat method that returns an object will return a NULL reference if the method failed. You should check for NULL and then examine the contents of the LastErrorText property. Here are examples in various programming languages: C# // Fetch the emails into a bundle object: Chilkat.EmailBundle bundle = null; bundle = imap.FetchBundle(messageSet); if (bundle == null ) { MessageBox.Show(imap.LastErrorText); […]

Anti-Virus Blocking Application’s SMTP Connection

Occasionally, Chilkat will receive a support email from a customer with a problem described this way: Outlook can connect to my SMTP server and send email, but my application cannot. I’ve checked the settings and they are identical to those used by Outlook. What could the problem be? The problem is often caused by an Anti-Virus program. The AV program […]

ZIP64 File Format Clarification

Question: I assume in order to use zip64 for larger files, I would need to be using a 64 bit machine? If so, this will not work as many of our clients use 32 bit machines. What are my other options? Answer: Chilkat Zip supports the ZIP64 file extensions. If a zip is too large (more than 4GB), either in […]

FTP – WSAECONNRESET An existing connection was forcibly closed by the remote host.

One of the most common problems with FTP data transfers (including downloading directory listings) has to do with Passive vs. Active mode. Depending on your client/server/firewall situation, it’s probable that only one of the two modes will work (Active or Passive). Normally, if you choose the mode that doesn’t work, the data connection is blocked and you get a “WSAEWOULDBLOCK” […]

Matching MySQL’s AES_ENCRYPT Functions

The following example programs demonstrate how to match MySQL’s AES_ENCRYPT function in different programming languages: ASP: Match MySQL AES_ENCRYPT Function SQL Server: Match MySQL AES_ENCRYPT Function C#: Match MySQL AES_ENCRYPT Function C++: Match MySQL AES_ENCRYPT Function MFC: Match MySQL AES_ENCRYPT Function C: Match MySQL AES_ENCRYPT Function Delphi: Match MySQL AES_ENCRYPT Function Visual FoxPro: Match MySQL AES_ENCRYPT Function Java: Match MySQL […]

HTTP Cookies created by Javascript

Question: My site has Google analytics (each page includes urchin.js), but when I use the Chilkat HTTP component, I don’t see the cookies. I can see the cookies using FireFox. What’s the problem? Answer: Cookies may be sent by the server via the Set-Cookie header. Chilkat HTTP looks for this header in the HTTP response and collects the cookies. It […]

Matching Bounce/DSN with Original Sent Email

Question: Given that bounced email / DSN’s may not include the original headers, if I need to uniquely identify that the specific email didn’t make it to the recipient is there any way I can uniquely ID the email? I would use this info to know when to resend the email. Answer: Sometimes you’ll receive bounces that conform to DSN […]

Debugging HTTP Upload

HTTP upload requires code both client-side and server-side code to be functioning correctly. Imagine you are trying to do an HTTP upload from your application (using the Chilkat Upload component) and something is not working. How do you debug? Is the client-side application at fault? Is the Chilkat Upload component not working correctly? Is the server-side code that receives the […]

SFTP – Change Current Directory

Question: I need to change directory before uploading (like a cd) since files must be copied into server sub-directories, and I’ve not found any sample or idea ( no ChangeDir or similar). Answer: SFTP is Secure File Transfer over SSH. It is not the FTP protocol. There is no similarity or relationship between FTP and SFTP. Therefore, concepts such as […]