[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Midi shortcuts
From: |
R. Mattes |
Subject: |
Re: [Denemo-devel] Midi shortcuts |
Date: |
Wed, 11 May 2011 11:16:47 +0200 |
On Wed, 11 May 2011 09:14:22 +0100, Richard Shann wrote
> On Tue, 2011-05-10 at 23:39 +0200, R. Mattes wrote:
> > > Even more surprising, I have looked into what is
> > > happening with the scm_take_from_locale_string/n calls. In
> > principle
> > > guile should be freeing the passed string when it is finished with
> > > it.
> >
> > What makes ou belive this? The function signature in my header files
> > is:
> > SCM_API SCM scm_from_locale_string (const char *str);
> > Why would you expext a 'const char*' block to be freed?
>
> you are looking at the wrong function here - I refer to scm_take_...
Ah, sorry, my fault.
> the "take" variant is supposed to free the string (it gives scheme
> the opportunigy to re-use the string for its own storage of the
> string).
But the info manual says that the given string is freed 'eventually' ...
The idea is (or was) that guile reuses the memory to hold the data for the
scheme string. So the sting only gets freed once the scm value gets garbage
collected (note: in guile-2 the memory won't be resused and the string gets
freed from within scm_take...
Hmm, in your case it might be that there's no garbage collection happening.
Does a "manual" (gc) change the memory footprint?
Cheers RalfD
> Richard
--
R. Mattes -
Hochschule fuer Musik Freiburg
address@hidden
- Re: [Denemo-devel] Midi shortcuts, (continued)
- Re: [Denemo-devel] Midi shortcuts, Ralf Mattes, 2011/05/08
- Re: [Denemo-devel] Midi shortcuts, Richard Shann, 2011/05/09
- Re: [Denemo-devel] Midi shortcuts, R. Mattes, 2011/05/09
- Re: [Denemo-devel] Midi shortcuts, Richard Shann, 2011/05/10
- Re: [Denemo-devel] Midi shortcuts, R. Mattes, 2011/05/10
- Re: [Denemo-devel] Midi shortcuts, Richard Shann, 2011/05/10
- Re: [Denemo-devel] Midi shortcuts, Richard Shann, 2011/05/10
- Re: [Denemo-devel] Midi shortcuts, Richard Shann, 2011/05/10
- Re: [Denemo-devel] Midi shortcuts, R. Mattes, 2011/05/10
- Re: [Denemo-devel] Midi shortcuts, Richard Shann, 2011/05/11
- Re: [Denemo-devel] Midi shortcuts,
R. Mattes <=
- Re: [Denemo-devel] Midi shortcuts, Richard Shann, 2011/05/11
- Re: [Denemo-devel] Midi shortcuts, Jeremiah Benham, 2011/05/11
- [Denemo-devel] scm_dynwinds etc. [was:] Midi shortcuts, R. Mattes, 2011/05/11
- Re: [Denemo-devel] scm_dynwinds etc. [was:] Midi shortcuts, Richard Shann, 2011/05/11
- Re: [Denemo-devel] scm_dynwinds etc. [was:] Midi shortcuts, R. Mattes, 2011/05/11
- Re: [Denemo-devel] scm_dynwinds etc. [was:] Midi shortcuts, Richard Shann, 2011/05/11
- Re: [Denemo-devel] scm_dynwinds etc. [was:] Midi shortcuts, R. Mattes, 2011/05/11
- [Denemo-devel] Patchset: denemo-specific guile load path, R. Mattes, 2011/05/14
- Re: [Denemo-devel] Patchset: denemo-specific guile load path, Richard Shann, 2011/05/15
- Re: [Denemo-devel] Patchset: denemo-specific guile load path, R. Mattes, 2011/05/15