Dispose Method

WRAPPER_API static void Dispose(const BmgChar *obj)

WRAPPER_API static void Dispose(const GeoBase *obj)

 

Description

The Dispose method will release the memory associated with the specified object.  

For more information about memory management in GeoCalc, as well as a description of which objects should be disposed of using this method, please consult the Getting Started Guide.

 

Example

void Disposal_Dispose()

{

GEOCALCPBW_NAMESPACE::DataSource * data = GEOCALCPBW_NAMESPACE::DataSource::CreateDataSource();

data->LoadFile(L"C:\\bmg\\GeoCalcPBW\\data\\geocalc.xml");

GEOCALCPBW_NAMESPACE::GeodeticCoordSys * cs = data->GetGeodeticCoordSys(L"BMG", L"WGS84_coordinate_system");

BmgChar * wktString = data->ExportCoordSysToString(*cs);

 

GEOCALCPBW_NAMESPACE::Disposal::Dispose(cs);

GEOCALCPBW_NAMESPACE::Disposal::Dispose(wktString);

GEOCALCPBW_NAMESPACE::Disposal::Dispose(data);

}