[#3479] Missing .document files for ext/ libraries — Brian Candler <B.Candler@...>

The ri documentation for zlib, strscan and iconv doesn't get built by 'make

12 messages 2004/10/06

[#3492] Re: ANN: Free-form-operators patch — Markus <markus@...>

> In message "Re: ANN: Free-form-operators patch"

15 messages 2004/10/11
[#3493] Re: ANN: Free-form-operators patch — Yukihiro Matsumoto <matz@...> 2004/10/11

Hi,

[#3495] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/12

On Mon, 2004-10-11 at 16:16, Yukihiro Matsumoto wrote:

[#3561] 1.8.2 - what can we do to help? — Dave Thomas <dave@...>

Folks:

23 messages 2004/10/26
[#3562] Re: 1.8.2 - what can we do to help? — Yukihiro Matsumoto <matz@...> 2004/10/27

Hi,

Memory leak in mswin32 implementation

From: wvdbos@...
Date: 2004-10-13 16:28:35 UTC
List: ruby-core #3516
I'm making a program that uses ruby as a scripting language.
The main program is written in Borland and I use the mswin32 version of 
ruby.
The dll is loaded using LoadLibrary and freed with FreeLibrary.

  typedef void          (*Truby_init    )();
  typedef void*         (*Truby_cleanup )(int);

  Truby_init    ruby_init    ;
  Truby_cleanup ruby_cleanup ;

  HINSTANCE RubyDll=LoadLibrary("msvcrt-ruby18.dll");

  ruby_init      =(Truby_init   )::GetProcAddress(RubyDll,"ruby_init");
  ruby_cleanup   =(Truby_cleanup)::GetProcAddress(RubyDll,"ruby_cleanup");

  ruby_init();

  ruby_cleanup(0);
  FreeLibrary(RubyDll);

After the FreeLibrary there is a memory loss of about half a meg :-(

When using 'bccwin32-ruby18.dll' this doesn't happen.
It looks like borland automatically frees all memory!

This sample is stripped down to it's basics. But in my own version there 
are also threads left running.
And again they are killed when using the borland version.

In the ideal situation ruby_cleanup should free all resources. But third 
party programmers might be sloppy.
Thats the reason I free the dll. So isn't there a way of telling Visual to 
free up all resources?

Thnx



In This Thread

Prev Next