Hi Stephen,

 
 
hLine = FirstSelLine_DB(hDB);
while (iIsLineValid_DB(hDB,hLine))
{

    .....  (other code).
 
      hVV = Create_VV( REAL ,  0);    // create object inside the loop
   ...... (other code)
 
  // --- Advance to Next hLine ---        

  hLine = NextSelLine_DB( hDB , hLine );
}

> The problem is that the object is re-created over and over again for each
> new line. While the GX compiler is set up to keep track of each object as it
> is made, and automatically destroys them afterward, hopefully preventing
> what is known as a "memory leak", this certainly stresses the system,
> especially if there are a lot of objects and a lot of lines.


Could you elaborate on this a little?

What actually happens in this case?  Do all the hVV's point to the same memory?
Seems to me I remember that it doesn't.  Does the system keep track of objects
in some way that is independent of the symbols that are attached to them?

Does automatic destruction of objects occure at any time other than GX termination?

Thanks,

---
Jim Roy                      voice  541 757 7231
Sys. Admin.                  fax    541 757 7331
NW Geophysical Assoc.        http://www.nga.com
Corvallis Or. US
---
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html
List Archive http://www.mail-archive.com/gxnet@lists.geosoft.com

Reply via email to