login about faq

Crypt2 - v9.5.0.54 calling DecryptEncoded inside a timer to simulate real application (communications). DecryptEncoded works in any scenario but have memory leaks when called from Clarion 6.3 a 4GL language capable of call ActiveX components.

Calling Chilkat's ActiveX DecryptEncoded inside a timer procedure using VB6.0 it's ok no leak, but when calling in a timer procedure in Clarion 6.3 it shows memory leaks (private bytes increase).

Clarion have capacity of call C# wrapped as COM. Calling DecryptEncoded inside a timer in VS2008 it begins increasing private bytes and after a few seconds it stabilizes with little variations. But when making a DLL wrapper as a COM (using Interface) and calling from Clarion it shows memory leaks. For example timer at 100ms calling DecryptEncoded twice (two lines of code) private bytes increases at 4k to 12k bytes each second.

I read in another thread that we should call Dispose to avoid this problem with Crypt2, but if I call it the C# component isn't work anymore and I have to restart the program. ActiveX don't have Dispose.

In all these four tests the ActiveX component or C# component never gave me an error. Components are amazing.

Is there any "clean up" that we should do between DecryptEncoded (or any other method) to try to avoid memory leaks?

Thank you very much.

asked Dec 08 '15 at 14:42

Sibuya's gravatar image

Sibuya
11

edited Dec 09 '15 at 15:24

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

1

Problem solved. Any data that returns from an external component like ActiveX should be saved to a Clarion variable to be used in others native functions.

(Dec 08 '15 at 22:29) Sibuya

Problem solved. Any data that returns from an external component like ActiveX should be saved to a Clarion variable to be used in others native functions.

link

answered Dec 09 '15 at 15:24

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×22
×10
×6

Asked: Dec 08 '15 at 14:42

Seen: 491 times

Last updated: Dec 09 '15 at 15:24

powered by OSQA