gc terminology corrections

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-10-11 22:29:56 +00:00
commit b8f58b1707
2 changed files with 5 additions and 5 deletions

View file

@ -1310,7 +1310,7 @@ the SWIG library.
<p> <p>
This example shows how to prevent early garbage collection of objects when the underlying C++ class returns a pointer or reference to a member variable. This example shows how to prevent premature garbage collection of objects when the underlying C++ class returns a pointer or reference to a member variable.
The example is a direct equivalent to this <a href="Java.html#java_memory_management_objects">Java equivalent</a>. The example is a direct equivalent to this <a href="Java.html#java_memory_management_objects">Java equivalent</a>.
</p> </p>
@ -1380,7 +1380,7 @@ is called using the following typemaps.
} }
%} %}
// Add a C# reference to prevent early garbage collection and resulting use // Add a C# reference to prevent premature garbage collection and resulting use
// of dangling C++ pointer. Intended for methods that return pointers or // of dangling C++ pointer. Intended for methods that return pointers or
// references to a member variable. // references to a member variable.
%typemap(csout, excode=SWIGEXCODE) Wheel&amp; getWheel { %typemap(csout, excode=SWIGEXCODE) Wheel&amp; getWheel {

View file

@ -2518,7 +2518,7 @@ Obj obj = Factory.createObj(); // obj.swigCMemOwn = true;
<p> <p>
Some memory management issues are quite tricky to fix and may only be noticeable after using for a long time. Some memory management issues are quite tricky to fix and may only be noticeable after using for a long time.
One such issue is early garbage collection of an object created from Java and resultant usage from C++ code. One such issue is premature garbage collection of an object created from Java and resultant usage from C++ code.
The section on typemap examples cover two such scenarios, The section on typemap examples cover two such scenarios,
<a href="#java_memory_management_objects">Memory management for objects passed to the C++ layer</a> <a href="#java_memory_management_objects">Memory management for objects passed to the C++ layer</a>
and and
@ -6324,7 +6324,7 @@ the Butler class would behave much like any pure Java class and feel more natura
<p> <p>
This example shows how to prevent early garbage collection of objects when the underlying C++ class returns a pointer or reference to a member variable. This example shows how to prevent premature garbage collection of objects when the underlying C++ class returns a pointer or reference to a member variable.
</p> </p>
<p> <p>
@ -6393,7 +6393,7 @@ is called using the following typemaps.
} }
%} %}
// Add a Java reference to prevent early garbage collection and resulting use // Add a Java reference to prevent premature garbage collection and resulting use
// of dangling C++ pointer. Intended for methods that return pointers or // of dangling C++ pointer. Intended for methods that return pointers or
// references to a member variable. // references to a member variable.
%typemap(javaout) Wheel&amp; getWheel { %typemap(javaout) Wheel&amp; getWheel {