Dear guest !

Welcome to Team Developer Community Forum. A place created by the community, for the community !

This is a resource for Q & A and discussion about everything related to OpenText Gupta Team Developer, SqlBase, TD Mobile and Report Builder.
It is the alternative for the OpenText customer forums which can only be accessed with an active support contract.

Please register your account now. It will make you part of the active community.
Also, this guest message will not be displayed for registered users.

As a bonus, registered users have access to the 'Newsgroups' subforum, holding 10 years worth of posts from the good old Gupta newsgroups.

Having an account gives you the opportunity to ask questions and get help from others.
We hope this free gathering will help you and the community getting forward!

Best regards,
The forum site admins.

Solved TD-22667: Memory leaks in SalStrToMultiByte/SalStrToWideChar

Post found bugs and possible workarounds.
Post Reply
Dave Rabelink
Founder/Site Admin
Netherlands
Posts: 200
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands
Contact:

TD-22667: Memory leaks in SalStrToMultiByte/SalStrToWideChar

Post by Dave Rabelink » 13 Mar 2017, 08:23

The functions

SalStrToMultiByte
SalStrToWideChar

show memory leaks when used.
A simple conversion from ANSI to UNICODE or back shows that the memory steadily increases on every call.

Memleak_Graph.png
Memleak_Graph.png (7.73 KiB) Viewed 64 times

After investigation here we found that the leaks are introduced in TD 6.2 and are present in all TD 6.2 SP's and also in TD 6.3 (all SP's).
Tests on TD 5.1 and TD 6.1 show no leaks on the same testcase.

The testcase is saved in TD 5.1 format (text) to be able to run the sample in all unicode TD versions.

Workflow:

- run application (from IDE or from EXE)
- monitor the memory using PerfMon (private bytes, workset private) for the application
- Press the START button. This will execute these functions multiple times.
- See the memory increase and never released. It increases with megabytes within minutes.
- Press STOP to end the testing

Use the checkboxes to test the functions separately or both or none.

StrConversion_MemLeak.zip
(11.26 KiB) Downloaded 6 times
Regards,
Dave Rabelink

Image
Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Dave Rabelink
Founder/Site Admin
Netherlands
Posts: 200
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands
Contact:

Re: TD-22667: Memory leaks in SalStrToMultiByte/SalStrToWideChar

Post by Dave Rabelink » 13 Mar 2017, 08:24

This defect is fixed in:

TD 6.2 SP5
TD 6.3 SP1 UPDATE 2
Regards,
Dave Rabelink

Image
Join & participate on Team Developer Tips & Tricks Wiki
Download samples from TD Sample Vault
Videos on TDWiki YouTube Channel

Post Reply

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest