login about faq

I am using following function in my code to Encode the big block of string memory leak taken place. Is anyone help me on this issue?

Function QPChilkat(ByVal s As String, ByVal charset As String) As String Dim Encodedstring As String Dim crypt As New Chilkat.Crypt2 crypt.Charset = charset crypt.UnlockComponent("****") crypt.CryptAlgorithm = "none" crypt.EncodingMode = "QP" Encodedstring = crypt.EncryptStringENC(s) QPChilkat = Encodedstring End Function

Thanks in Advance, Abhinandan Bansal

asked Dec 31 '13 at 13:06

Abhinandan%20Bansal's gravatar image

Abhinandan Bansal

I put the code you supplied in a loop and ran it hundreds of times on a 512KB string, but I did not see a leak. I tested in VB6 with the ActiveX library.

  • What language and library are you using?
  • Are you using the latest version (9.4.1), or a different version?
  • How are you determining that there is a memory leak?
  • What is a big block of string memory? How many bytes?

NOTE: I had to change your code to use ChilkatCrypt2 instead of Chilkat.Crypt2 to work (no period). Is that really the exact code you are using? Also, please post code in <pre></pre> tags to make it easier to read.


answered Dec 31 '13 at 21:57

jpbro's gravatar image

jpbro ♦

Thanks a lot for replying. I am using 8.3 version of chilkat and language is VB.net. My application is in .net framework 4.5. When I run my application the memory consumption has increased (I have verified it from windows-->task manager). If I commented out the chilkat code memory consumption did not increased. It remains constant.

(Dec 31 '13 at 22:58) Abhinandan Bansal

First thing I would do is try again with 9.4.1, it could be that a memory leak has been fixed since 8.3.

(Jan 01 '14 at 00:07) jpbro ♦

Hi... I am really sorry for the late reply. Please use dispose method of cyrpt2 class to solve memory leak issue.

(Jan 17 '14 at 13:29) Abhinandan Bansal
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Dec 31 '13 at 13:06

Seen: 3,090 times

Last updated: Jan 17 '14 at 13:29

powered by OSQA