LoginSignup
0

More than 5 years have passed since last update.

C++ Builder / memory leak > TEncoding型変数

Last updated at Posted at 2017-04-07

2013年5月のメモより

TEncoding.GetEncoding

ENC: TEncoding;

ENC := TEncoding.GetEncoding(20932);  // EUC_JP

SL.SaveToFile('test.txt', ENC);

ENC.Free;

明示的に破棄しないとメモリリークが発生する。

watercolor-cityさんのページで見たと思うが、今は残念ながらリンク切れ。
http://www.watercolor-city.net/ct_delphi/delphi_tiburon/doc_unicode/tencoding_textio.htm

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0