[mapguide-commits] r6304 - in sandbox/adsk/vik/Common: CoordinateSystem Foundation Foundation/Data Foundation/Exception Foundation/System Geometry Geometry/Buffer Geometry/CoordinateSystem Geometry/Exception Geometry/Parse Geometry/Spatial

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Dec 8 00:13:34 EST 2011


Author: traianstanev
Date: 2011-12-07 21:13:34 -0800 (Wed, 07 Dec 2011)
New Revision: 6304

Removed:
   sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DomainException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DomainException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.h
   sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.h
   sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.h
   sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.h
   sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.h
   sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.h
   sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.h
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.h
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.h
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.h
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.h
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.h
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.h
   sandbox/adsk/vik/Common/Foundation/Exception/IoException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/IoException.h
   sandbox/adsk/vik/Common/Foundation/Exception/LengthException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/LengthException.h
   sandbox/adsk/vik/Common/Foundation/Exception/LogicException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/LogicException.h
   sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.h
   sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.h
   sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.h
   sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.h
   sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.h
   sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.h
   sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.h
   sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.h
   sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.h
   sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.h
   sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.h
   sandbox/adsk/vik/Common/Foundation/Exception/SystemException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/SystemException.h
   sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.h
   sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.h
   sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.h
   sandbox/adsk/vik/Common/Foundation/Exception/XmlException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/XmlException.h
   sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.h
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h
   sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.h
   sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.h
   sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h
   sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp
   sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h
Modified:
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSys.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCatalog.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategory.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatum.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatumDictionary.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionary.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryBase.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoid.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnum.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCategory.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumDatum.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumInteger32.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysFormatConverter.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPath.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGrids.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMacro.h
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMeasure.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMgrs.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysProjectionInformation.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysTransform.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUnitInformation.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUtil.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/CoordSysWktFailureCache.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.cpp
   sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.h
   sandbox/adsk/vik/Common/CoordinateSystem/MentorUtil.cpp
   sandbox/adsk/vik/Common/Foundation/Data/NamedCollection.cpp
   sandbox/adsk/vik/Common/Foundation/Data/NullableProperty.cpp
   sandbox/adsk/vik/Common/Foundation/Data/Property.cpp
   sandbox/adsk/vik/Common/Foundation/Data/PropertyDefinition.cpp
   sandbox/adsk/vik/Common/Foundation/Data/StringCollection.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.cpp
   sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.h
   sandbox/adsk/vik/Common/Foundation/Exception/ExceptionDefs.h
   sandbox/adsk/vik/Common/Foundation/Foundation.h
   sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj
   sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj.filters
   sandbox/adsk/vik/Common/Foundation/System/Disposable.cpp
   sandbox/adsk/vik/Common/Foundation/System/DisposableCollection.cpp
   sandbox/adsk/vik/Common/Foundation/System/FileUtil.cpp
   sandbox/adsk/vik/Common/Foundation/System/GuardDisposable.cpp
   sandbox/adsk/vik/Common/Foundation/System/Util.cpp
   sandbox/adsk/vik/Common/Foundation/System/Util.h
   sandbox/adsk/vik/Common/Geometry/ArcSegment.cpp
   sandbox/adsk/vik/Common/Geometry/ArcSegment.h
   sandbox/adsk/vik/Common/Geometry/Buffer/MgBuffer.cpp
   sandbox/adsk/vik/Common/Geometry/Buffer/oobject.cpp
   sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemCache.cpp
   sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp
   sandbox/adsk/vik/Common/Geometry/CurvePolygon.cpp
   sandbox/adsk/vik/Common/Geometry/CurveRing.cpp
   sandbox/adsk/vik/Common/Geometry/CurveRing.h
   sandbox/adsk/vik/Common/Geometry/CurveString.cpp
   sandbox/adsk/vik/Common/Geometry/Envelope.cpp
   sandbox/adsk/vik/Common/Geometry/GeometricEntity.cpp
   sandbox/adsk/vik/Common/Geometry/Geometry.cpp
   sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj
   sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj.filters
   sandbox/adsk/vik/Common/Geometry/GeometryCommon.h
   sandbox/adsk/vik/Common/Geometry/LineString.cpp
   sandbox/adsk/vik/Common/Geometry/LinearRing.cpp
   sandbox/adsk/vik/Common/Geometry/LinearSegment.cpp
   sandbox/adsk/vik/Common/Geometry/LinearSegment.h
   sandbox/adsk/vik/Common/Geometry/Parse/Array.h
   sandbox/adsk/vik/Common/Geometry/Parse/ArrayHelper.cpp
   sandbox/adsk/vik/Common/Geometry/Parse/LexAwkt.cpp
   sandbox/adsk/vik/Common/Geometry/Parse/ParseAwkt.cpp
   sandbox/adsk/vik/Common/Geometry/Parse/ParseAwktUtil.cpp
   sandbox/adsk/vik/Common/Geometry/Parse/StringUtility.cpp
   sandbox/adsk/vik/Common/Geometry/Polygon.cpp
   sandbox/adsk/vik/Common/Geometry/Spatial/MathUtility.cpp
   sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtility.cpp
   sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp
Log:
Removed all exception classes but the base and MgApplicationException.
Replaced throwing of various exception types by MgApplicationException with a string parameter describing the particular error.
Removed numerous MgOutOfMemory exceptions that were (theoretically) being thrown if operator new returns null. This is logically impossible, because operator new does not return null. Moreover, if new fails, it is unlikely that we cannot even call it again to construct that OutOfMemoryException.
There are many, many places left to convert, so things don't compile right now.

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSys.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSys.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSys.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -117,7 +117,7 @@
         assert(bResult);
         if (!bResult)
         {
-            throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
         }
         return;
     }
@@ -151,7 +151,7 @@
                 Ptr<MgDisposable> disposableCsObject = datumMapIterator->second;
                 MgCoordinateSystemDatum* datumInfo = dynamic_cast<MgCoordinateSystemDatum*>(disposableCsObject.p);
                 if (NULL == datumInfo)
-                    throw new MgInvalidArgumentException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
+                    throw new MgApplicationException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
                 
                 pDatum = SAFE_ADDREF(datumInfo);
             }
@@ -162,14 +162,14 @@
             Ptr<MgCoordinateSystemDatumDictionary> pDtDict = m_pCatalog->GetDatumDictionary();
             if (!pDtDict)
             {
-                throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumDictionaryException", NULL);
+                throw new MgApplicationException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumDictionaryException", NULL);
             }
 
             pDatum = pDtDict->Get(sDtName);
             assert(pDatum);
             if (!pDatum)
             {
-                throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumInDictionaryException", NULL);
+                throw new MgApplicationException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoDatumInDictionaryException", NULL);
             }
         }
 
@@ -193,7 +193,7 @@
                 Ptr<MgDisposable> disposableCsObject = ellipsoidMapIterator->second;
                 MgCoordinateSystemEllipsoid* ellipsoidInfo = dynamic_cast<MgCoordinateSystemEllipsoid*>(disposableCsObject.p);
                 if (NULL == ellipsoidInfo)
-                    throw new MgInvalidArgumentException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
+                    throw new MgApplicationException(L"MgCoordinateSystem.InitFromCatalog", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
                 
                 pEllipsoid = SAFE_ADDREF(ellipsoidInfo);
             }
@@ -279,10 +279,6 @@
         ConvertPoint(CS_llchk, CS_ll2cs, lonLat->GetX(), lonLat->GetY(), 0., &x, &y, NULL);
         // 2D transform + measure which is ignored
         pCoordinate = new MgCoordinateXYM(x, y, lonLat->GetM());
-        if (!pCoordinate)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
     }
     else if(lonLat->GetDimension() == MgCoordinateDimension::XYZ)
     {
@@ -294,15 +290,11 @@
         ConvertPoint(CS_llchk, CS_ll3cs, lonLat->GetX(), lonLat->GetY(), lonLat->GetZ(), &x, &y, &z);
         // 3D transform + measure which is ignored
         pCoordinate = new MgCoordinateXYZM(x, y, z, lonLat->GetM());
-        if (!pCoordinate)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
     }
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
 
@@ -325,10 +317,6 @@
         ConvertPoint(CS_xychk, CS_cs2ll, coordinate->GetX(), coordinate->GetY(), 0., &dLongitude, &dLatitude, NULL);
         // 2D transform + measure which is ignored
         pCoordinate = new MgCoordinateXYM(dLongitude, dLatitude, coordinate->GetM());
-        if (!pCoordinate)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
     }
     else if(coordinate->GetDimension() == MgCoordinateDimension::XYZ)
     {
@@ -340,15 +328,11 @@
         ConvertPoint(CS_xychk, CS_cs3ll, coordinate->GetX(), coordinate->GetY(), coordinate->GetZ(), &dLongitude, &dLatitude, &dZDest);
         // 3D transform + measure which is ignored
         pCoordinate = new MgCoordinateXYZM(dLongitude, dLatitude, dZDest, coordinate->GetM());
-        if (!pCoordinate)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
     }
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertToLonLat")
 
@@ -404,7 +388,7 @@
 {
     if((NULL == coord1) || (NULL == coord2))
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.MeasureEuclideanDistance", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.MeasureEuclideanDistance", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     return MeasureEuclideanDistance(coord1->GetX(), coord1->GetY(), coord2->GetX(), coord2->GetY());
@@ -459,7 +443,7 @@
 {
     if((NULL == coord1) || (NULL == coord2))
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.MeasureGreatCircleDistance", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.MeasureGreatCircleDistance", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     return MeasureGreatCircleDistance(coord1->GetX(), coord1->GetY(), coord2->GetX(), coord2->GetY());
@@ -534,7 +518,7 @@
 {
     if((NULL == coord1) || (NULL == coord2))
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.GetAzimuth", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.GetAzimuth", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     return GetAzimuth(coord1->GetX(), coord1->GetY(), coord2->GetX(), coord2->GetY());
@@ -621,7 +605,7 @@
 {
     if(NULL == coord)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.GetCoordinate", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.GetCoordinate", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     return GetCoordinate(coord->GetX(), coord->GetY(), azimuth, distance);
@@ -736,15 +720,7 @@
 
     //Make an array of integers to hold the error codes.
     pErrs = new int[nNumErrs];
-    if (NULL == pErrs)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetErrors", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     pErrsInt32 = new INT32[nNumErrs];
-    if (NULL == pErrsInt32)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetErrors", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Get the errors
     CriticalClass.Enter();
@@ -755,11 +731,6 @@
     //Make a dword enumerator to hold the results
     pNewEnum = new CCoordinateSystemEnumInteger32;
 
-    if (NULL == pNewEnum.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetErrors", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy in the results.  Mentor wants a list of ints, MgCoordinateSystemEnumInteger32
     //wants a list of UNIT32, so I'll just cast it from one to
     //the other.  I can get away with this because a DWORD and an
@@ -817,10 +788,7 @@
 STRING CCoordinateSystem::GetUnits()
 {
     wchar_t* pUnit = Convert_Ascii_To_Wide(m_csprm.csdef.unit);
-    if (NULL == pUnit)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetUnits", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     STRING sUnit(pUnit);
     delete[] pUnit;
 
@@ -983,10 +951,7 @@
 
     MG_TRY()
     wchar_t* pName = Convert_Ascii_To_Wide(m_csprm.csdef.key_nm);
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetCsCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sName=pName;
     delete[] pName;
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.GetCsCode")
@@ -1017,10 +982,6 @@
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sCode.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.SetCsCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Try to make a legal name.  CS_nampp() legalizes the
     //string and returns 0 for success.  If the string can't
@@ -1063,10 +1024,6 @@
     MG_TRY()
 
     wchar_t* pProjection = Convert_Ascii_To_Wide(m_csprm.csdef.prj_knm);
-    if (NULL == pProjection)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetProjection", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     sProjection=pProjection;
     delete[] pProjection;
 
@@ -1113,7 +1070,7 @@
     if (!kpProj)
     {
         //cs_UNKWN_PROJ
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //if same as the existing projection, do nothing
@@ -1131,7 +1088,7 @@
     if (!pp)
     {
         //cs_UNKWN_PROJ
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetProjectionCode", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     m_csprm.prj_code = pp->code;
     m_csprm.prj_flags = pp->flags;
@@ -1209,10 +1166,7 @@
     }
 
     wchar_t* pDatum = Convert_Ascii_To_Wide(m_csprm.csdef.dat_knm);
-    if (NULL == pDatum)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetDatum", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sDatum=pDatum;
     delete[] pDatum;
 
@@ -1271,10 +1225,7 @@
     }
 
     wchar_t* pEllipsoid = Convert_Ascii_To_Wide(m_csprm.csdef.elp_knm);
-    if (NULL == pEllipsoid)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sEllipsoid=pEllipsoid;
     delete[] pEllipsoid;
     assert(NULL==m_pDatum);
@@ -1396,10 +1347,6 @@
     }
 
    pCategoryNames = new MgStringCollection();
-   if (!pCategoryNames)
-   {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetCategories", __LINE__, __WFILE__, NULL, L"", NULL);
-   }
 
     //list all the categories one by one
     for ( ; ; )
@@ -1510,7 +1457,7 @@
     assert(NULL != pCatalog);
     if (NULL == pCatalog)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.IsUsable", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.IsUsable", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //First, make sure it's valid in its own right; if it's
@@ -1545,10 +1492,7 @@
 
         //Build a wchar_t* from the datum name
         wchar_t* pStrDt = Convert_Ascii_To_Wide(m_csprm.csdef.dat_knm);
-        if (NULL == pStrDt)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.IsUsable", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
+
         STRING strDt(pStrDt);
         delete[] pStrDt;
 
@@ -1569,10 +1513,7 @@
 
         //Build a wchar_t* from the ellipsoid name
         wchar_t* pStrEl = Convert_Ascii_To_Wide(m_csprm.csdef.elp_knm);
-        if (NULL == pStrEl)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.IsUsable", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
+
         STRING strEl(pStrEl);
         delete[] pStrEl;
 
@@ -1595,7 +1536,7 @@
     assert(NULL != pDef);
     if (NULL == pDef)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.IsSameAs", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     int i;
@@ -1716,10 +1657,6 @@
     pNew = new CCoordinateSystem(m_pCatalog);
 
     //Make an object to be the copy
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Copy data members into the new object.  NOTE:  if new
     //data members are added to CCoordinateSystem, this will
@@ -1734,20 +1671,14 @@
     if (m_pDatum)
     {
         Ptr<MgCoordinateSystemDatum> pDtClone=m_pDatum->CreateClone();
-        if (NULL == pDtClone.p)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
+
         pNew->m_pDatum = pDtClone;
     }
 
     if (m_pEllipsoid)
     {
         Ptr<MgCoordinateSystemEllipsoid> pElClone=m_pEllipsoid->CreateClone();
-        if (NULL == pElClone.p)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystem.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
+ 
         pNew->m_pEllipsoid = pElClone;
     }
 
@@ -1768,10 +1699,7 @@
 
     MG_TRY()
     wchar_t* pDesc = Convert_Ascii_To_Wide(m_csprm.csdef.desc_nm);
-    if (NULL == pDesc)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetDescription", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sDesc=pDesc;
     delete[] pDesc;
 
@@ -1808,10 +1736,7 @@
     MG_TRY()
 
     wchar_t* pGroup = Convert_Ascii_To_Wide(m_csprm.csdef.group);
-    if (NULL == pGroup)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetGroup", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sGroup=pGroup;
     delete[] pGroup;
 
@@ -1846,10 +1771,7 @@
     MG_TRY()
 
     wchar_t* pSource = Convert_Ascii_To_Wide(m_csprm.csdef.source);
-    if (NULL == pSource)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetSource", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sSource=pSource;
     delete[] pSource;
 
@@ -1928,10 +1850,7 @@
     MG_TRY()
 
     wchar_t* pLoc = Convert_Ascii_To_Wide(m_csprm.csdef.locatn);
-    if (NULL == pLoc)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetLocation", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sLoc=pLoc;
     delete[] pLoc;
 
@@ -1968,10 +1887,7 @@
     MG_TRY()
 
     wchar_t* pCntrySt = Convert_Ascii_To_Wide(m_csprm.csdef.cntry_st);
-    if (NULL == pCntrySt)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetCountryOrState", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sCntrySt=pCntrySt;
     delete[] pCntrySt;
 
@@ -2056,7 +1972,7 @@
     //Make sure the parameter is in the valid range
     if ((nIndex < 1) || (nIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Make sure that this parameter is used by this projection
@@ -2064,7 +1980,7 @@
     if (MgCoordinateSystemProjectionCode::Unknown == prj)
     {
         //Projection type hasn't been properly initialized.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
     short prjCode = prj;
     //The following function call returns 1 if this
@@ -2078,7 +1994,7 @@
     if (1 != nResult)
     {
         //The parameter isn't used.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.GetProjectionParameter", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     //The parameter is used.  Return it.
@@ -2112,7 +2028,7 @@
     //Make sure the parameter is in the valid range
     if ((nIndex < 1) || (nIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Make sure this parameter is used by this projection
@@ -2120,7 +2036,7 @@
     if (MgCoordinateSystemProjectionCode::Unknown == prj)
     {
         //Projection type hasn't been properly initialized.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
     struct cs_Prjprm_ info;
     short prjCode = prj;
@@ -2147,7 +2063,7 @@
     if ((dValue < info.min_val) || (dValue > info.max_val))
     {
         //They've given us an illegal value!
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetProjectionParameter", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Okay, the value they've given us is legitimate, too.
@@ -2499,7 +2415,7 @@
 
     if ((sQuad < -4) || (sQuad > 4) || (0 == sQuad))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetQuadrant", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetQuadrant", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     m_csprm.csdef.quad = sQuad;
@@ -2549,10 +2465,6 @@
         throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetDatum", __LINE__, __WFILE__, NULL, L"", NULL);
     }
     char *pStr = Convert_Wide_To_Ascii(sDatum.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.SetDatum", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     memset(m_csprm.csdef.dat_knm, 0, sizeof(m_csprm.csdef.key_nm));
     memset(m_csprm.csdef.elp_knm, 0, sizeof(m_csprm.csdef.key_nm));
@@ -2610,7 +2522,7 @@
 
     if (!pDatum)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetDatumDefinition", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
     //if we check the protection, we can never setup any system since all systems
     //are built via void CCoordinateSystem::InitFromCatalog(const cs_Csdef_& csdef)
@@ -2763,7 +2675,7 @@
     if (!pEllipsoid)
     {
         //We were given an uninitialized datum.
-        throw new MgNullArgumentException(L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
     //if we check the protection, we can never setup any system since all systems
     //are built via void CCoordinateSystem::InitFromCatalog(const cs_Csdef_& csdef)
@@ -2919,7 +2831,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
 }
@@ -2948,7 +2860,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
 }
@@ -2967,10 +2879,7 @@
     double dLongitude=0., dLatitude=0.;
     ConvertPoint(CS_xychk, CS_cs2ll, dX, dY, 0., &dLongitude, &dLatitude, NULL);
     pCoordinate=new MgCoordinateXY(dLongitude, dLatitude);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertToLonLat")
     return pCoordinate.Detach();
 }
@@ -2983,10 +2892,7 @@
     double dLongitude=0., dLatitude=0., dZDest=0.;
     ConvertPoint(CS_xychk, CS_cs3ll, dX, dY, dZ, &dLongitude, &dLatitude, &dZDest);
     pCoordinate=new MgCoordinateXYZ(dLongitude, dLatitude, dZDest);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertToLonLat")
     return pCoordinate.Detach();
 }
@@ -3006,10 +2912,7 @@
     double dX=0., dY=0.;
     ConvertPoint(CS_llchk, CS_ll2cs, dLongitude, dLatitude, 0., &dX, &dY, NULL);
     pCoordinate=new MgCoordinateXY(dX, dY);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
     return pCoordinate.Detach();
 }
@@ -3022,10 +2925,7 @@
     double dX=0., dY=0., dZDest=0.;
     ConvertPoint(CS_llchk, CS_ll3cs, dLongitude, dLatitude, dZ, &dX, &dY, &dZDest);
     pCoordinate=new MgCoordinateXYZ(dX, dY, dZDest);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.ConvertFromLonLat")
     return pCoordinate.Detach();
 }
@@ -3079,27 +2979,23 @@
 
     if (NULL==pDest)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL);
     }
 
     if (!IsLegalString(sSrc.c_str(), nMaxSize))
     {
         //Can't set string, caller gave us an illegal value
-        throw new MgInvalidArgumentException(L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sSrc.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.SetString", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Copy it in
     memset(pDest, 0, nMaxSize);
@@ -3253,13 +3149,13 @@
     assert(NULL != pdDestCoord2);
     if (NULL == pdDestCoord1 || NULL == pdDestCoord2)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystem.ConvertPoint", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.ConvertPoint", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //Make sure we're initialized
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystem.ConvertPoint", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystem.ConvertPoint", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
     }
 
     //Do the conversion.
@@ -3354,10 +3250,7 @@
     CCoordinateSystemMeasure* pNew=NULL;
     MG_TRY()
     pNew=new CCoordinateSystemMeasure(this);
-    if (!pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystem.GetMeasure", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystem.GetMeasure")
     return pNew;
 }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCatalog.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCatalog.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCatalog.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -77,11 +77,6 @@
     m_pGpDict = new CCoordinateSystemGeodeticPathDictionary(this);
     m_pGxDict = new CCoordinateSystemGeodeticTransformDefDictionary(this);
 
-    if (!m_pCsDict || !m_pDtDict || !m_pElDict || !m_pCtDict || !m_pGpDict || !m_pGxDict)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.MgCoordinateSystemCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Set up Mentor global variables.  See CSDATA.C for explanation.
     cs_Unique = '\0';
     cs_Protect = 0;
@@ -247,19 +242,19 @@
 #endif
     if (sDir.empty())
     {
-        ACE_DEBUG((LM_DEBUG, "(%t) DefaultDir for the Coordinate System library has been set but is empty.\n"));
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", __LINE__, __WFILE__, NULL, L"", NULL);
+        fprintf(stderr, "DefaultDir for the Coordinate System library has been set but is empty.\n");
+        throw new MgApplicationException(L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     if (!MgFileUtil::IsDirectory(sDir.c_str()))
     {
         bResult = false;
-        ACE_DEBUG((LM_DEBUG, "(%t) DefaultDir: \"%W\" is not a directory! Install the Coordinate System library into this directory or set MENTOR_DICTIONARY_PATH to where they are currently installed.\n", sDir.c_str()));
+        fprintf(stderr, "DefaultDir: \"%ls\" is not a directory! Install the Coordinate System library into this directory or set MENTOR_DICTIONARY_PATH to where they are currently installed.\n", sDir.c_str());
     }
 
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCatalog.GetDefaultDictionaryDir", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
 
     //And return success.
@@ -289,7 +284,7 @@
 
     if (sDirPath.empty())
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCatalog.SetDictionaryDir", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCatalog.SetDictionaryDir", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
 #ifdef _WIN32
@@ -393,7 +388,7 @@
         || !m_pGxDict || m_pGxDict->GetFileName().empty())
     {
         //Directory hasn't been specified yet.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCatalog.AreDictionaryFilesWritable", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCatalog.AreDictionaryFilesWritable", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
     }
 
     STRING sPath=m_pElDict->GetPath();
@@ -524,23 +519,13 @@
     //need to get at data files to do certain datum shifts.
     if (m_sDir.empty())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemCatalog.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCatalog.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
     }
 
     Ptr<CCoordinateSystemGeodeticTransformation> pNew = new CCoordinateSystemGeodeticTransformation(this, pSource, pTarget);
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     pColl = new MgDisposableCollection;
 
-    if (NULL == pColl.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     pColl->Add(pNew);
 
     //And we're done!  Return success.
@@ -555,10 +540,7 @@
     CCoordinateSystemMathComparator *pNew=NULL;
     MG_TRY()
     pNew=new CCoordinateSystemMathComparator;
-    if (NULL == pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetMathComparator", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetMathComparator")
     //And we're done!  Return success.
     return pNew;
@@ -570,10 +552,7 @@
     CCoordinateSystemFormatConverter *pNew=NULL;
     MG_TRY()
     pNew=new CCoordinateSystemFormatConverter(this);
-    if (NULL == pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetFormatConverter", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetFormatConverter")
 
     //And we're done!  Return success.
@@ -586,10 +565,7 @@
     CCoordinateSystemProjectionInformation *pNew=NULL;
     MG_TRY()
     pNew=new CCoordinateSystemProjectionInformation();
-    if (NULL == pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetProjectionInformation", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetProjectionInformation")
 
     //And we're done!  Return success.
@@ -602,10 +578,7 @@
     CCoordinateSystemUnitInformation *pNew=NULL;
     MG_TRY()
     pNew=new CCoordinateSystemUnitInformation();
-    if (NULL == pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetUnitInformation", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetUnitInformation")
 
     //And we're done!  Return success.
@@ -618,10 +591,7 @@
     CCoordinateSystemDictionaryUtility *pNew=NULL;
     MG_TRY()
     pNew=new CCoordinateSystemDictionaryUtility(this);
-    if (NULL == pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCatalog.GetDictionaryUtility", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCatalog.GetDictionaryUtility")
 
     //And we're done!  Return success.

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategory.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategory.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategory.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -85,11 +85,11 @@
     //make sure the file is okay
     if (!pFile || -1==CS_ftell(pFile))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.SaveToFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.SaveToFstream", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     if (ferror(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.SaveToFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.SaveToFstream", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
     previousPosition = CS_ftell(pFile);    //in case of error
 
@@ -140,7 +140,7 @@
     if (0!=ferror(pFile) && -1!=previousPosition)
     {
         CS_fseek(pFile, previousPosition, SEEK_SET);
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.SaveToFstream", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.SaveToFstream", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL);
     }
     MG_THROW()
 }
@@ -168,11 +168,11 @@
     assert(pFile && CS_ftell(pFile)>=0);
     if (!pFile || -1==CS_ftell(pFile))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     if (ferror(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     previousPosition = CS_ftell(pFile);    //in case of error
 
@@ -192,7 +192,7 @@
         _ASSERT(0 == nRead); //otherwise something else is going on here...
 
         //we reached the end of the file
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     //copy the category name into our [m_categoryName] TNameStruct
@@ -203,7 +203,7 @@
     nRead=CS_fread(reinterpret_cast<char *>(&ulSize), sizeof(ulSize), 1, pFile);
     if (1!=nRead)
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     //Size in file.
@@ -211,12 +211,12 @@
     nRead=CS_fread(reinterpret_cast<char *>(&ulMinSize), sizeof(ulMinSize), 1, pFile);
     if (1!=nRead)
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
     assert(ulMinSize >= ulSize);
     if (ulMinSize < ulSize)
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     char keyNameBuffer[cs_KEYNM_DEF]  = { '\0' };
@@ -228,7 +228,7 @@
         nRead=CS_fread(keyNameBuffer, sizeof(char), expectedBufferCountRead, pFile);
         if (expectedBufferCountRead != nRead)
         {
-            throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
         }
 
         member = keyNameBuffer;
@@ -250,7 +250,7 @@
     }
     if (ferror(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     //We're done!  Return success.
@@ -260,7 +260,7 @@
     {
         CS_fseek(pFile, previousPosition, SEEK_SET);
         Clear();
-        throw new MgFileIoException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.LoadFromFstream", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemInternalException", NULL);
     }
     MG_THROW()
 }
@@ -276,7 +276,7 @@
     assert(NULL != pDef);
     if (!pDef)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemCategory.CopyFrom", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.CopyFrom", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     Clear();
@@ -287,10 +287,6 @@
 
     //Get an enumerator
     Ptr<MgCoordinateSystemEnum> pEnum=pDef->GetEnum();
-    if (!pEnum)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.CopyFrom", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Add the coordinate systems
     for ( ; ; )
@@ -309,10 +305,6 @@
 
     MG_TRY()
     wchar_t *pName = Convert_Ascii_To_Wide(m_categoryName.Name());
-    if (!pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.GetName", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     sName=pName;
     delete[] pName;
@@ -329,15 +321,11 @@
     MG_TRY()
     if (!IsLegalName(sName))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.SetName", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.SetName", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     char *pName = Convert_Wide_To_Ascii(sName.c_str());    //need to delete [] pName
-    if (!pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.SetName", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
+ 
     //assign the name to our internal [TNameStruct]
     m_categoryName = pName;
 
@@ -371,7 +359,7 @@
     //Null pointers are illegal
     if (NULL == kpName)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemCategory.IsLegalName", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.IsLegalName", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //String can't be empty or too long
@@ -423,7 +411,7 @@
 
     if (NULL == pDef)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemCategory.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.IsSameAs", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //Make sure it's a category def
@@ -501,11 +489,6 @@
     //Create a clone object
     pNew = new CCoordinateSystemCategory(m_pCatalog);
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy the category name
     pNew->m_categoryName = m_categoryName;
 
@@ -535,10 +518,7 @@
 
     MG_TRY()
     pNameEnum=new CCoordinateSystemEnumCoordinateSystemInCategory(m_pCatalog);
-    if (!pNameEnum)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     pNameEnum->Initialize(&m_listCoordinateSystemNames);
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCategory.GetEnum")
 
@@ -552,19 +532,12 @@
     MG_TRY()
 
     pCsColl=new MgStringCollection;
-    if (NULL == pCsColl)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.GetCoordinateSystems", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
+ 
     CSystemNameList::const_iterator iter;
     for (iter=m_listCoordinateSystemNames.begin(); iter!=m_listCoordinateSystemNames.end(); ++iter)
     {
         wchar_t *pName = Convert_Ascii_To_Wide((*iter).Name());    //need to delete [] pName
-        if (NULL == pName)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.GetCoordinateSystems", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
+
         pCsColl->Add(pName);
         delete[] pName;
     }
@@ -582,14 +555,11 @@
     MG_TRY()
     //Make sure it's a legal name
     char *pName = Convert_Wide_To_Ascii(sName.c_str());    //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     if (!IsLegalMentorName(pName))
     {
         delete [] pName;
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Make a new member out of it
@@ -601,7 +571,7 @@
     if (itList != m_listCoordinateSystemNames.end())
     {
         //duplicate!
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemCategoryDuplicateException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.AddCoordinateSystem", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemCategoryDuplicateException", NULL);
     }
 
     //Try to insert it in our list
@@ -622,14 +592,11 @@
 
     //Make sure it's a legal name
     char *pName = Convert_Wide_To_Ascii(sName.c_str());    //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.RemoveCoordinateSystem", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     if (!IsLegalMentorName(pName))
     {
         delete [] pName;
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategory.RemoveCoordinateSystem", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategory.RemoveCoordinateSystem", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Make a member out of it
@@ -657,10 +624,7 @@
     MG_TRY()
     //Make sure it's a legal name
     char *pName = Convert_Wide_To_Ascii(sName.c_str());    //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategory.HasCoordinateSystem", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     if (!IsLegalMentorName(pName))
     {
         delete [] pName;

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysCategoryDictionary.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -75,11 +75,6 @@
 
     pNewDef = new CCoordinateSystemCategory(m_pCatalog);
 
-    if (NULL == pNewDef.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.NewCategory", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCategoryDictionary.NewCategory")
 
     return pNewDef.Detach();
@@ -147,7 +142,7 @@
     CS_fseek(pFile, sizeof(klCategoryMagic), SEEK_SET);
     if (ferror(pFile))
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategoryDictionary.GenerateIndex", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.GenerateIndex", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     //Start reading records.
@@ -210,7 +205,7 @@
     if (!pTemp || ferror(pTemp))
     {
         //couldn't open file
-        throw new MgFileIoException(L"MgCoordinateSystemCategoryDictionary.RewriteFile", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoCategoryDictionaryException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.RewriteFile", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoCategoryDictionaryException", NULL);
     }
 
     //Copy the magic number
@@ -237,7 +232,7 @@
             CS_fclose(pTemp);
             CS_fclose(pFile);
             pFile=NULL;
-            throw new MgFileIoException(L"MgCoordinateSystemCategoryDictionary.RewriteFile", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.RewriteFile", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
         }
 
         //Is it the one we're replacing?
@@ -266,7 +261,7 @@
                 CS_fclose(pFile);
                 pFile=NULL;
                 CS_fclose(pTemp);
-                throw new MgFileIoException(L"MgCoordinateSystemCategoryDictionary.RewriteFile", __LINE__, __WFILE__, NULL, L"", NULL);
+                throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.RewriteFile", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
             }
         }
     }    //until we reach the end of the original file
@@ -276,10 +271,6 @@
     pFile=NULL;
     CS_fclose(pTemp);
     char* sz_msPath=Convert_Wide_To_Ascii(strPath.c_str());
-    if (!sz_msPath)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.RewriteFile", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //MgFileUtil::DeleteFile( MgUtil::MultiByteToWideChar(sz_msPath) );
     //MgFileUtil::RenameFile( tempName, MgUtil::MultiByteToWideChar(sz_msPath) );
@@ -323,7 +314,7 @@
         bWriting = true;
         break;
     default:
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
         break;
     }
 
@@ -340,7 +331,7 @@
         switch (reason)
         {
         case kFileInvalidEmptyString:
-            throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
             break;
         case kFileInvalidPath:
         case kFileInvalidDoesNotExist:
@@ -348,7 +339,7 @@
             {
             MgStringCollection arguments;
             arguments.Add(strPath);
-            throw new MgFileNotFoundException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, &arguments, L"", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, &arguments, L"FileNotFound", NULL);
             }
             break;
         case kFileInvalidCantWrite:
@@ -365,7 +356,7 @@
     INT32 lDummy;
     if (NULL==(pFile=OpenDictionaryFile(strPath.c_str(), szMode, lDummy, ValidCategoryMagic)))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Open", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //And we're done!  Return success.
@@ -397,7 +388,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(L"MgCoordinateSystemDictionary.SetFileName", __LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDictionary.SetFileName", __LINE__, __WFILE__, &arguments, L"FileIo", NULL);
     }
 
     if (!sFileName.empty())
@@ -462,26 +453,23 @@
     assert(NULL != pDefinition);
     if (NULL == pDefinition)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgCoordinateSystemCategory* pCategoryDef=dynamic_cast<MgCoordinateSystemCategory*>(pDefinition);
     if (!pCategoryDef)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     //Look for it in our index
     STRING str = pCategoryDef->GetName();
     if (str.empty())
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     char *pName = Convert_Wide_To_Ascii(str.c_str());    //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     CCategoryNameIndexMap::const_iterator iter = Index().find(CCategoryName(pName));
     delete [] pName;
 
@@ -489,7 +477,7 @@
     if (iter != Index().end())
     {
         //Yup.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL);
     }
 
     //Is it a valid def?
@@ -497,7 +485,7 @@
     if (!bValid)
     {
         //Invalid def!
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Add", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Build a CCoordinateSystemCategory out of it.
@@ -534,10 +522,7 @@
 
     //Look for it in our index
     pName = Convert_Wide_To_Ascii(sName.c_str());    //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.Remove", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     CCategoryNameIndexMap::const_iterator iter = Index().find(CCategoryName(pName));
 
     //Did we find it?
@@ -572,26 +557,23 @@
     assert(NULL != pDefinition);
     if (NULL == pDefinition)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgCoordinateSystemCategory* pCategoryDef=dynamic_cast<MgCoordinateSystemCategory*>(pDefinition);
     if (!pCategoryDef)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     //Look for it in our index
     STRING str = pCategoryDef->GetName();
     if (str.empty())
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     char *pName = Convert_Wide_To_Ascii(str.c_str());    //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     CCategoryNameIndexMap::const_iterator iter = Index().find(CCategoryName(pName));
     delete [] pName;
 
@@ -620,7 +602,7 @@
     size_t nRead=CS_fread(reinterpret_cast<char *>(&ulFileSize), sizeof(ulFileSize), 1, pFile);
     if (1!=nRead)
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Modify", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     //Can we do in-place replacement?
@@ -663,11 +645,6 @@
     //Look for it in our index
     pName = Convert_Wide_To_Ascii(sName.c_str());    //need to delete [] pName
 
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.GetCategory", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     CCategoryNameIndexMap::const_iterator iter = Index().find(CCategoryName(pName));
 
     //Did we find it?
@@ -682,11 +659,6 @@
     //Make a new object
     pNew = new CCoordinateSystemCategory(m_pCatalog);
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.GetCategory", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Get the definition out of the file.
     critical.Enter();
     pFile=Open(Read);
@@ -717,10 +689,7 @@
 
     //Look in our index
     char *pName = Convert_Wide_To_Ascii(sName.c_str());    //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.Has", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     CCategoryNameIndexMap::const_iterator iter = Index().find(CCategoryName(pName));
     delete [] pName;
     bHas=(iter != Index().end());
@@ -777,7 +746,7 @@
     {
         MgStringCollection whatArguments;
         whatArguments.Add(sNewName);
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, &whatArguments, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, &whatArguments, L"InvalidArgument", NULL);
     }
 
     //Make sure def with old name is present
@@ -798,7 +767,7 @@
     if (bHas)
     {
         //there's already a def with that name
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL);
     }
 
     INT32 lMagic;
@@ -821,7 +790,7 @@
     size_t nRead=CS_fread(reinterpret_cast<char *>(&ulFileSize), sizeof(ulFileSize), 1, pFile);
     if (1!=nRead)
     {
-        throw new MgFileIoException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     //Overwrite the def
@@ -840,7 +809,7 @@
     }
     catch (std::bad_alloc)
     {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCategoryDictionary.Rename", __LINE__, __WFILE__, NULL, L"BadAlloc", NULL);
     }
     CCategoryNameList::iterator iterList;
     for (iterList = List().begin(); iterList != List().end(); ++iterList)

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatum.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatum.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatum.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -89,7 +89,7 @@
 
     if (NULL == pEl.p)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.GetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumInitializationFailedException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.GetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumInitializationFailedException", NULL);
     }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatum.GetEllipsoidDefinition")
@@ -122,7 +122,7 @@
     //Make sure the specified datum is valid
     if (def.key_nm[0]=='\0')
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //init the datum defintion part
@@ -147,10 +147,7 @@
 
     //Get the ellipsoid name the datum uses
     wchar_t* pwszElName=Convert_Ascii_To_Wide(def.ell_knm);
-    if (!pwszElName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     STRING sElName(::ToLower(pwszElName));
     delete[] pwszElName;
     pwszElName = NULL;
@@ -166,7 +163,7 @@
             Ptr<MgDisposable> disposableCsObject = ellipsoidsIterator->second;
             MgCoordinateSystemEllipsoid* ellipsoidInfo = dynamic_cast<MgCoordinateSystemEllipsoid*>(disposableCsObject.p);
             if (NULL == ellipsoidInfo)
-                throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
+                throw new MgApplicationException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
             
             pEllipsoid = SAFE_ADDREF(ellipsoidInfo);
         }
@@ -179,7 +176,7 @@
         Ptr<MgCoordinateSystemEllipsoidDictionary> pElDict = m_pCatalog->GetEllipsoidDictionary();
         if (!pElDict)
         {
-            throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", NULL);
         }
 
         //load the ellipsoid defintion from the dictionary
@@ -188,7 +185,7 @@
     }
 
     if (NULL == pEllipsoid)
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidInDictionaryException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.InitFromCatalog", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidInDictionaryException", NULL);
 
     //Initialize from ellipsoid definitions we have
     SetEllipsoidDefinition(dynamic_cast<MgCoordinateSystemEllipsoid*>(pEllipsoid.p));
@@ -219,10 +216,7 @@
 
     MG_TRY()
     wchar_t* pName = Convert_Ascii_To_Wide(m_DtDef.key_nm);
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sCode=pName;
     delete[] pName;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatum.GetDtCode")
@@ -242,21 +236,17 @@
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
     }
 
     if (sCode.empty())
     {
         //null pointer is obviously not legal...
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sCode.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Try to make a legal name.  CS_nampp() legalizes the
     //string and returns 0 for success.  If the string can't
@@ -267,7 +257,7 @@
     {
         //illegal string
         delete [] pStr;
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetDtCode", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Copy into the definitions, dtdef and cs_datum_ must be in synch
@@ -348,7 +338,7 @@
     assert(NULL != pCatalog);
     if (NULL == pCatalog)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemDatum.IsUsable", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.IsUsable", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //First, make sure it's valid in its own right; if it's
@@ -366,15 +356,12 @@
     Ptr<MgCoordinateSystemEllipsoidDictionary> pElDict=pCatalog->GetEllipsoidDictionary();
     if (!pElDict)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.IsUsable", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.IsUsable", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumNoEllipsoidDictionaryException", NULL);
     }
 
     //Build a wchar_t* from the ellipsoid name
     wchar_t* pStrEl = Convert_Ascii_To_Wide(m_datum.ell_knm);
-    if (NULL == pStrEl)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.IsUsable", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     STRING sElName(pStrEl);
     delete[] pStrEl;
 
@@ -398,7 +385,7 @@
     assert(NULL != pDef);
     if (NULL == pDef)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemDatum.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.IsSameAs", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //Make sure it's a datum definition
@@ -412,7 +399,7 @@
     cs_Dtdef_ def;
     if (!BuildDtDefFromInterface(pDtDef, def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.IsSameAs", __LINE__, __WFILE__, NULL, L"", NULL);
     }
 
     //And compare with this one!
@@ -463,11 +450,6 @@
     //Make an object to be the copy
     pNew = new CCoordinateSystemDatum(m_pCatalog);
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy data members into the new object.  NOTE:  if new
     //data members are added to CCoordinateSystemDatum, this will
     //need to be updated.
@@ -501,10 +483,7 @@
 
     MG_TRY()
     wchar_t* pDesc = Convert_Ascii_To_Wide(m_datum.dt_name);
-    if (NULL == pDesc)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetDescription", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sDesc=pDesc;
     delete[] pDesc;
 
@@ -541,10 +520,7 @@
 
     MG_TRY()
     wchar_t *pGroup = Convert_Ascii_To_Wide(m_DtDef.group);
-    if (NULL == pGroup)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetGroup", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sGroup=pGroup;
     delete[] pGroup;
 
@@ -577,10 +553,7 @@
 
     MG_TRY()
     wchar_t *pSource = Convert_Ascii_To_Wide(m_DtDef.source);
-    if (NULL == pSource)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetSource", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sSource=pSource;
     delete[] pSource;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatum.GetSource")
@@ -660,10 +633,7 @@
 
     MG_TRY()
     wchar_t* pLoc = Convert_Ascii_To_Wide(m_DtDef.locatn);
-    if (NULL == pLoc)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetLocation", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sLoc=pLoc;
     delete[] pLoc;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatum.GetLocation")
@@ -697,10 +667,7 @@
 
     MG_TRY()
     wchar_t *pCountryOrState = Convert_Ascii_To_Wide(m_DtDef.cntry_st);
-    if (NULL == pCountryOrState)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetCountryOrState", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sCountryOrState=pCountryOrState;
     delete[] pCountryOrState;
 
@@ -735,10 +702,7 @@
 
     MG_TRY()
     wchar_t* pEllipsoid = Convert_Ascii_To_Wide(m_DtDef.ell_knm);
-    if (NULL == pEllipsoid)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sEllipsoid=pEllipsoid;
     delete[] pEllipsoid;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatum.GetEllipsoid")
@@ -758,21 +722,18 @@
     if (Protected())
     {
         //can't change a read-only object
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
     }
 
     //Make sure it's a legal datum name
     if (!IsLegalMentorName(sEllipsoid.c_str()))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Convert wchar_t* to C++ string
     char *pStr = Convert_Wide_To_Ascii(sEllipsoid.c_str()); //need to delete [] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     assert(strlen(pStr) < sizeof(m_DtDef.key_nm));
 
     //Set the ellipsoid name
@@ -842,7 +803,7 @@
     if (NULL == pEllipsoidDef)
     {
         //We were given an uninitialized datum.
-        throw new MgNullArgumentException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     STRING sEllipsoid=pEllipsoidDef->GetElCode();
@@ -850,15 +811,12 @@
     //Make sure it's a legal datum name
     if (!IsLegalMentorName(sEllipsoid.c_str()))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Convert wchar_t* to C++ string
     char *pStr = Convert_Wide_To_Ascii(sEllipsoid.c_str()); //need to delete [] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     assert(strlen(pStr) < sizeof(m_DtDef.key_nm));
 
     //Set the ellipsoid name
@@ -878,7 +836,7 @@
     bool bResult = BuildElDefFromInterface(pEllipsoidDef, eldef);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
 
     //Make sure the datum's specified ellipsoid matches the
@@ -891,7 +849,7 @@
         || (0 != CS_nampp(eldef.key_nm))
         || (0 != CS_stricmp(m_DtDef.ell_knm, eldef.key_nm)))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumMismatchException", NULL);
     }
 
     //Build a cs_Datum_ from the datum and ellipsoid definitions
@@ -900,7 +858,7 @@
     CriticalClass.Leave();
     if (NULL == pDatum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumInternalException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetEllipsoidDefinition", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumInternalException", NULL);
     }
 
     //Okay, everything succeeded.  Hang on to a copy of the
@@ -935,18 +893,8 @@
 
     Ptr<CCoordinateSystemGeodeticTransformation> pNew = new CCoordinateSystemGeodeticTransformation(m_pCatalog, this, pTarget);
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     pColl = new MgDisposableCollection;
 
-    if (NULL == pColl.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.GetGeodeticTransformations", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     pColl->Add(pNew);
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatum.GetGeodeticTransformations")
@@ -965,28 +913,24 @@
     assert(NULL != pDest);
     if (NULL==pDest)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     if (Protected())
     {
         //Can't modify a read-only object.
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
     }
 
     if (!IsLegalString(sSrc.c_str(), nMaxSize))
     {
         //Can't set string, caller gave us an illegal value
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sSrc.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatum.SetString", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
+ 
     //Copy it in
     memset(pDest, 0, nMaxSize);
     strncpy(pDest, pStr, nMaxSize);

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatumDictionary.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatumDictionary.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDatumDictionary.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -309,11 +309,6 @@
 
     pNewDef = new CCoordinateSystemDatum(m_pCatalog);
 
-    if (NULL == pNewDef.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatumDictionary.NewDatum", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDatumDictionary.NewDatum")
 
     return pNewDef.Detach();
@@ -343,7 +338,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(L"MgCoordinateSystemDatumDictionary.SetFileName", __LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemDatumDictionary.SetFileName", __LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL);
     }
 
     MentorDictionary::SetFileName(
@@ -598,10 +593,6 @@
 
     //Get the name to search for
     char *pName = Convert_Wide_To_Ascii(sName.c_str()); //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatumDictionary.Has", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     if (NULL != m_pmapSystemNameDescription)
     {
@@ -703,11 +694,6 @@
     //Make an enumerator object
     pNew = new CCoordinateSystemEnumDatum;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDatumDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     MG_CATCH(L"MgCoordinateSystemDatumDictionary.GetEnum")
 
     if (pFile)

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionary.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionary.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionary.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -328,11 +328,6 @@
 
     pNewDef = new CCoordinateSystem(m_pCatalog);
 
-    if (NULL == pNewDef.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.NewCoordinateSystem", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     MG_CATCH_AND_THROW(L"MgCoordinateSystemDictionary.NewCoordinateSystem")
 
     return pNewDef.Detach();
@@ -551,11 +546,6 @@
     //Get the name to search for
     pName = Convert_Wide_To_Ascii(sName.c_str()); //need to delete [] pName
 
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.GetCoordinateSystem", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Look in the dictionary
     pDef = csdef(pName);
 
@@ -627,10 +617,6 @@
     MG_TRY()
     //Get the name to search for
     char *pName = Convert_Wide_To_Ascii(sName.c_str()); //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.Has", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     if (NULL != m_pmapSystemNameDescription)
     {
@@ -776,11 +762,6 @@
     //Make an enumerator object
     pNew = new CCoordinateSystemEnum;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     if (0!=CS_fclose(pFile))
     {
         throw new MgFileIoException(L"MgCoordinateSystemDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", NULL);

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryBase.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryBase.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryBase.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -27,7 +27,7 @@
     : dictMagicNumber(0) /* no yet initialized - will be read in [SetFileName] */, dictionaryItems(NULL)
 {
     if (NULL == pCatalog)
-        throw new MgNullArgumentException(L"CCoordinateSystemDictionaryBase.ctor()", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemDictionaryBase.ctor()", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
 
     this->catalog = SAFE_ADDREF(pCatalog); // 'Ptr = ' does not increment the ref counter
     this->fileName = defaultFileName; //template default parameter
@@ -139,7 +139,7 @@
 
     if(NULL != pFile && (0 != CS_fclose(pFile)))
     {
-        throw new MgFileIoException(L"CCoordinateSystemDictionaryBase.GetSize", __LINE__, __WFILE__, NULL, NULL, NULL);
+        throw new MgApplicationException(L"CCoordinateSystemDictionaryBase.GetSize", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     MG_THROW()
@@ -153,11 +153,11 @@
 {
     //we won't take ownership of [pDefinition]; i.e. it can be deleted by the caller after we're done here
     if (NULL == pDefinition)
-        throw new MgNullArgumentException(L"CCoordinateSystemDictionaryBase.Add", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemDictionaryBase.Add", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
 
     T* pDictionaryDef = dynamic_cast<T*>(pDefinition);
     if (!pDictionaryDef)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemDictionaryBase.Add", __LINE__, __WFILE__, NULL, L"CCoordinateSystemDictionaryBase", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemDictionaryBase.Add", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
 
     MG_TRY()
 
@@ -196,11 +196,11 @@
 void DICTIONARY_BASE_TEMPLATE_METHOD::Modify(MgGuardDisposable *pDefinition)
 {
     if (NULL == pDefinition)
-        throw new MgNullArgumentException(L"CCoordinateSystemDictionaryBase.Modify", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemDictionaryBase.Modify", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
 
     T* pDictionaryDef = dynamic_cast<T*>(pDefinition);
     if (!pDictionaryDef)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemDictionaryBase.Modify", __LINE__, __WFILE__, NULL, L"CCoordinateSystemDictionaryBase", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemDictionaryBase.Modify", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
 
     MG_TRY()
 
@@ -250,8 +250,6 @@
     }
 
     pDefinition = this->NewItem(); //no AddRef; release if needed
-    if (NULL == pDefinition.p) //ABA ???
-        throw new MgOutOfMemoryException(L"CCoordinateSystemDictionaryBase.Get", __LINE__, __WFILE__, NULL, L"", NULL);
 
     //we've created the Mg instance, we got the CS_Map definition; now let the Mg instance initialize itself from the
     //struct;
@@ -283,7 +281,7 @@
 
         return NULL != definition;
     }
-    catch(MgCoordinateSystemLoadFailedException* loadFailedException)
+    catch(MgException* loadFailedException)
     {
         loadFailedException->Release();
         return false;
@@ -333,7 +331,7 @@
             definitionAccess->readAllDefinitions);
 
         if (NULL == allDictionaryEntries) //whatever happend here - the dictionay file seems to be invalid
-            throw new MgCoordinateSystemLoadFailedException(L"CCoordinateSystemDictionaryBase.GetEnumImp", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"CCoordinateSystemDictionaryBase.GetEnumImp", __LINE__, __WFILE__, NULL, L"CoordinateSystemLoadFailed", NULL);
     }
     else
     {
@@ -351,7 +349,7 @@
         && NULL == mgException.p)
         //if there hasn't yet an exception occurred we now have one
         //if there was one already we (unfortunately) do now swallow the MgFileIoException
-        mgException = new MgFileIoException(L"CCoordinateSystemDictionaryBase.GetEnumImp", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", NULL);
+        mgException = new MgApplicationException(L"CCoordinateSystemDictionaryBase.GetEnumImp", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", NULL);
 
     MG_THROW()
 

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysDictionaryUtility.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -84,10 +84,6 @@
     MG_TRY()
 
     char *pDict = Convert_Wide_To_Ascii(kpDict);    //need to delete [] pDict;
-    if (NULL == pDict)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemDictionaryUtility.CreateDictionaryFile", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Make sure the file doesn't already exist
     csFILE *pFile=NULL;

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoid.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoid.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoid.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -76,10 +76,6 @@
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sSrc.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.SetString", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Copy it in
     memset(pDest, 0, nMaxSize);
@@ -118,10 +114,7 @@
     MG_TRY()
 
     wchar_t *pName = Convert_Ascii_To_Wide(m_def.key_nm);
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetElCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     sName=pName;
     delete[] pName;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEllipsoid.GetElCode")
@@ -149,11 +142,7 @@
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sCode.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.SetElCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
+ 
     //Try to make a legal name.  CS_nampp() legalizes the
     //string and returns 0 for success.  If the string can't
     //be made legal, it returns -1.
@@ -295,11 +284,6 @@
     //Make an object to be the copy
     pDef = new CCoordinateSystemEllipsoid(m_pCatalog);
 
-    if (NULL == pDef.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy data members into the new object.  NOTE:  if new
     //data members are added to CCoordinateSystemEllipsoid, this will
     //need to be updated.
@@ -327,10 +311,6 @@
 
     MG_TRY()
     wchar_t *pDesc = Convert_Ascii_To_Wide(m_def.name);
-    if (NULL == pDesc)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetDescription", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     sDesc=pDesc;
     delete[] pDesc;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEllipsoid.GetDescription")
@@ -365,10 +345,6 @@
 
     MG_TRY()
     wchar_t *pGroup = Convert_Ascii_To_Wide(m_def.group);
-    if (NULL == pGroup)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetGroup", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     sGroup=pGroup;
     delete[] pGroup;
 
@@ -402,10 +378,6 @@
 
     MG_TRY()
     wchar_t *pSource = Convert_Ascii_To_Wide(m_def.source);
-    if (NULL == pSource)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoid.GetSource", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     STRING sSource(pSource);
     delete[] pSource;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEllipsoid.GetSource")

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEllipsoidDictionary.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -249,11 +249,6 @@
 
     pNewDef = new CCoordinateSystemEllipsoid(m_pCatalog);
 
-    if (NULL == pNewDef.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoidDictionary.NewEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEllipsoidDictionary.NewEllipsoid")
 
     return pNewDef.Detach();
@@ -528,10 +523,6 @@
 
     //Get the name to search for
     char *pName = Convert_Wide_To_Ascii(sName.c_str()); //need to delete [] pName
-    if (NULL == pName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoidDictionary.Has", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     if (NULL != m_pmapSystemNameDescription)
     {
@@ -597,10 +588,6 @@
     //Make an enumerator object
     pNew = new CCoordinateSystemEnumEllipsoid;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEllipsoidDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     if (0!=CS_fclose(pFile))
     {
         throw new MgFileIoException(L"MgCoordinateSystemEllipsoidDictionary.GetEnum", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryCloseFailedException", NULL);

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnum.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnum.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnum.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -101,10 +101,6 @@
 
     MG_TRY()
     pOutput=new MgDisposableCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //optimization:
     //if the caller intends to read all information at once, that is...
@@ -133,10 +129,6 @@
         }
         const char *kpName = (*m_iter).first.Name();
         wchar_t* pStr = Convert_Ascii_To_Wide(kpName);
-        if (NULL == pStr)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
 
         STRING str(pStr);
         delete[] pStr;
@@ -170,10 +162,6 @@
     Ptr<MgStringCollection> pOutput;
     MG_TRY()
     pOutput=new MgStringCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     for (; m_iter != m_pmapSystemNameDescription->end(); ++m_iter)
     {
         if (pOutput->GetCount() == ulCount)
@@ -187,10 +175,6 @@
             continue;
         }
         wchar_t *pwName = Convert_Ascii_To_Wide(kpName);
-        if (NULL == pwName)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         pOutput->Add(pwName);
         delete[] pwName;
     }
@@ -205,10 +189,6 @@
     Ptr<MgStringCollection> pOutput;
     MG_TRY()
     pOutput=new MgStringCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     for (; m_iter != m_pmapSystemNameDescription->end(); ++m_iter)
     {
         if (pOutput->GetCount() == ulCount)
@@ -222,10 +202,6 @@
         }
         const char *kpDecsription = (*m_iter).second.Name();
         wchar_t *pwDecsription = Convert_Ascii_To_Wide(kpDecsription);
-        if (NULL == pwDecsription)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         pOutput->Add(pwDecsription);
         delete[] pwDecsription;
     }
@@ -300,10 +276,6 @@
 
     //Get a def from the set for the Filter to work with
     wchar_t* pStr = Convert_Ascii_To_Wide(kpName);
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     STRING str(pStr);
     delete[] pStr;
     Ptr<MgGuardDisposable> pDef = m_pDict->Get(str);
@@ -363,11 +335,6 @@
     //Make an object to be the copy
     pNew = new CCoordinateSystemEnum;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy data members into the new object.  NOTE:  if new
     //data members are added this will
     //need to be updated.

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCategory.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCategory.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCategory.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -103,10 +103,6 @@
 
     //Get a def from the set for the filter to work with
     wchar_t* pStr = Convert_Ascii_To_Wide(kpName);
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     STRING str(pStr);
     delete[] pStr;
     Ptr<MgGuardDisposable> pDef = m_pDict->Get(str);
@@ -159,10 +155,6 @@
 
     MG_TRY()
     pOutput=new MgDisposableCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     wchar_t* pStr;
 
@@ -177,10 +169,6 @@
         //get the category definition for the next name in the list
         const char *kpName = (*(m_iter)).Name();
         pStr = Convert_Ascii_To_Wide(kpName);
-        if (NULL == pStr)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         STRING str(pStr);
         delete[] pStr;
         Ptr<MgGuardDisposable> pDef = m_pDict->Get(str);
@@ -215,10 +203,6 @@
     Ptr<MgStringCollection> pOutput;
     MG_TRY()
     pOutput=new MgStringCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     for (; m_iter != m_pCategoryNameList->end(); ++m_iter)
     {
@@ -235,10 +219,6 @@
         }
 
         wchar_t *pwName = Convert_Ascii_To_Wide(kpName);
-        if (NULL == pwName)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         pOutput->Add(pwName);
         delete[] pwName;
     }
@@ -307,11 +287,6 @@
     //Make a new object
     pNew = new CCoordinateSystemEnumCategory;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy it from this one
     pNew->m_pDict = m_pDict;
     pNew->m_pCategoryNameList = m_pCategoryNameList;

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumCoordinateSystemInCategory.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -85,10 +85,6 @@
 
     MG_TRY()
     pOutput=new MgDisposableCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     if (!m_pCatalog)
     {
@@ -114,10 +110,6 @@
 
         assert(IsLegalMentorName(kpName));
         pstr = Convert_Ascii_To_Wide(kpName);
-        if (NULL == pstr)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         STRING strCsName(pstr);
         delete[] pstr;
 
@@ -150,10 +142,6 @@
     Ptr<MgStringCollection> pOutput;
     MG_TRY()
     pOutput=new MgStringCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     wchar_t* pstr;
     for (; m_iter != m_kpListCoordinateSystemNames->end(); ++m_iter)
     {
@@ -171,10 +159,6 @@
 
         assert(IsLegalMentorName(kpName));
         pstr = Convert_Ascii_To_Wide(kpName);
-        if (NULL == pstr)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextName", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         pOutput->Add(pstr);
         delete[] pstr;
     }
@@ -189,10 +173,6 @@
     Ptr<MgStringCollection> pOutput;
     MG_TRY()
     pOutput=new MgStringCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     if (!m_pCatalog)
     {
         throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);
@@ -216,10 +196,6 @@
 
         assert(IsLegalMentorName(kpName));
         pstr = Convert_Ascii_To_Wide(kpName);
-        if (NULL == pstr)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.NextDescription", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         STRING strCsName(pstr);
         delete[] pstr;
 
@@ -274,7 +250,7 @@
 
     if (ulSkipCount != ulSkipped)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemEnum.Skip", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemEnum.Skip", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEnum.Skip")
@@ -299,15 +275,11 @@
     assert(NULL != kpName);
     if (!kpName)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //Get a def from the set for the Filter to work with
     wchar_t* pStr = Convert_Ascii_To_Wide(kpName);
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     bIsFiltered=IsFilteredOut(pStr);
     delete[] pStr;
     MG_CATCH_AND_THROW(L"MgCoordinateSystemEnum.IsFilteredOut")
@@ -326,7 +298,7 @@
     assert(NULL != kpName);
     if (!kpName)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     //If a Filter hasn't been specified, just return true.
@@ -374,7 +346,7 @@
     assert(NULL != pDef);
     if (!pDef)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemEnum.IsFilteredOut", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     for (size_t i=0; i<m_vectFilter.size(); i++)
@@ -404,11 +376,6 @@
     //Make a new object
     pNew = new CCoordinateSystemEnumCoordinateSystemInCategory(m_pCatalog);
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy it from this one
     pNew->m_iter = m_iter;
     pNew->m_kpListCoordinateSystemNames = m_kpListCoordinateSystemNames;

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumDatum.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumDatum.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumDatum.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -46,11 +46,6 @@
     //Make an object to be the copy
     pNew = new CCoordinateSystemEnumDatum;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy data members into the new object.  NOTE:  if new
     //data members are added this will
     //need to be updated.

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumEllipsoid.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -46,11 +46,6 @@
     //Make an object to be the copy
     pNew = new CCoordinateSystemEnumEllipsoid;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnum.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy data members into the new object.  NOTE:  if new
     //data members are added this will
     //need to be updated.

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumInteger32.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumInteger32.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysEnumInteger32.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -71,10 +71,6 @@
 
     //Allocate an array to hold the values
     m_pnValues = new INT32[ulSize];
-    if (NULL == m_pnValues)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.SetList", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Copy them in and return success
     memcpy(m_pnValues, pnValues, ulSize * sizeof(INT32));
@@ -112,10 +108,6 @@
 
     MG_TRY()
     pOutput=new MgIntCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     for (; m_ulPos < m_ulSize; m_ulPos++)
     {
@@ -144,10 +136,6 @@
 
     MG_TRY()
     pOutput=new MgStringCollection;
-    if (!pOutput)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.Next", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     for (; m_ulPos < m_ulSize; m_ulPos++)
     {
@@ -251,11 +239,6 @@
     //Make an object to be the copy
     pNew = new CCoordinateSystemEnumInteger32;
 
-    if (NULL == pNew.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemEnumInteger32.CreateClone", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     //Copy data members into the new object.  NOTE:  if new
     //data members are added this will
     //need to be updated.

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysFormatConverter.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysFormatConverter.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysFormatConverter.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -59,18 +59,18 @@
 
     if (pSource==NULL)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
     if (wktFlvrUnknown==GetWktFlavor(nWktFlavor))
     {
         //invalid argument
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     bool bResult = BuildDefsFromInterface(pSource, pCsDef, pDtDef, pElDef);
     if (!bResult)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
 
     if (ProjectionIsNerthType (pCsDef->prj_knm))
@@ -85,10 +85,6 @@
         if (0==CScs2WktEx(csWktBufr,sizeof(csWktBufr),GetWktFlavor(nWktFlavor),pCsDef, pDtDef, pElDef,cs_WKTFLG_MAPNAMES))
         {
             wchar_t* pwszWkt=Convert_Ascii_To_Wide(csWktBufr);
-            if (!pwszWkt)
-            {
-                throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.DefinitionToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
-            }
             sWkt=pwszWkt;
             delete[] pwszWkt;
         }
@@ -159,23 +155,15 @@
 
             //Construct our object
             Ptr<CCoordinateSystem> pNew = new CCoordinateSystem(m_pCatalog);
-            if (NULL == pNew.p)
+            if (!pNew->InitArbitrary(csprm))
             {
-                throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
+                throw new MgApplicationException(L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemInitializationFailed", NULL);
             }
-            else if (!pNew->InitArbitrary(csprm))
-            {
-                throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
-            }
             return pNew.Detach();
         }
     }
 
     pszWkt = Convert_Wide_To_Ascii(sWkt.c_str());
-    if (NULL == pszWkt)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.WktToDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     struct cs_Csdef_ csDef;
     struct cs_Dtdef_ dtDef;
@@ -487,10 +475,6 @@
     else if (MgCoordinateSystemCodeFormat::Mentor==nFormatSource)
     {
         char *pszCsSource = Convert_Wide_To_Ascii(sCodeSource.c_str());
-        if (!pszCsSource)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         strName=pszCsSource;
         delete[] pszCsSource;
         ReformatOldArbitraryName(strName);
@@ -511,10 +495,6 @@
 
     //is it an arbitrary system, one that uses NERTH projection?
     wchar_t* wszMsiName=Convert_Ascii_To_Wide(szMsiName.c_str());
-    if (!wszMsiName)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     STRING strMsiName(wszMsiName);
     delete[] wszMsiName;
     Ptr<MgCoordinateSystem> pCsCoordinateSystemDef=GetCoordinateSystem(strMsiName);
@@ -536,10 +516,6 @@
         if (0==CS_cs2Wkt(csWktBufr,sizeof(csWktBufr),szMsiName.c_str(),GetWktFlavor(nWktFlavor)))
         {
             wchar_t* wszWkt=Convert_Ascii_To_Wide(csWktBufr);
-            if (!wszWkt)
-            {
-                throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
-            }
 
             sWkt=wszWkt;
             delete[] wszWkt;
@@ -581,10 +557,6 @@
     struct cs_Csdef_ csDef;
 
     pszWkt = Convert_Wide_To_Ascii(sWkt.c_str());
-    if (NULL == pszWkt)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.WktToCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //numbers in WKT string always use a dot a separator but the locale might say otherwise
     CCsNumericDotLocale dotLocale;
@@ -744,10 +716,6 @@
     }
 
     pszCsSource = Convert_Wide_To_Ascii(sCsSource.c_str());
-    if (NULL == pszCsSource)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.DefinitionToCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //need to check if the system is in our dictionary
     bool bIsCoordinateSystem=IsCoordinateSystem(pszCsSource, NULL);
@@ -806,10 +774,6 @@
     MG_TRY()
 
     pszCsSource = Convert_Wide_To_Ascii(sCodeSource.c_str());
-    if (NULL == pszCsSource)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     std::string szMsiName;
 
@@ -860,10 +824,6 @@
         assert(!szMsiName.empty());
 
         wchar_t* wszMsiName=Convert_Ascii_To_Wide(szMsiName.c_str());
-        if (!wszMsiName)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         STRING sMsiName(wszMsiName);
         delete[] wszMsiName;
         pCsDestination=GetCoordinateSystem(sMsiName);
@@ -893,10 +853,6 @@
     MG_TRY()
 
     pszCsSource = Convert_Wide_To_Ascii(sCodeSource.c_str());
-    if (NULL == pszCsSource)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //if input is EPSG
     if (MgCoordinateSystemCodeFormat::Epsg==nFormatSource)
@@ -932,10 +888,7 @@
                     if (bIsCoordinateSystem)
                     {
                         wchar_t *pwszCsDestination=Convert_Ascii_To_Wide(szMsiName.c_str());
-                        if (!pwszCsDestination)
-                        {
-                            throw new MgOutOfMemoryException(L"MgCoordinateSystemFormatConverter.CodeToCode", __LINE__, __WFILE__, NULL, L"", NULL);
-                        }
+     
                         sCsCodeDestination=pwszCsDestination;
                         delete[] pwszCsDestination;
                     }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticAnalyticalTransformDefParams.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -35,7 +35,7 @@
 {
     this->geocentricTransformParams = (csGeocentricXformParams*) CS_malc(sizeof(csGeocentricXformParams));
     if (NULL == this->geocentricTransformParams)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.Ctor", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.Ctor", __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
 
     *this->geocentricTransformParams = params;
 }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticInterpolationTransformDefParams.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -56,7 +56,7 @@
 
     this->gridFileParams = (csGridFileXformParams*) CS_malc(sizeof(csGridFileXformParams));
     if (NULL == this->gridFileParams)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticInterpolationTransformDefParams.Reset", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticInterpolationTransformDefParams.Reset", __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
 
     memset(this->gridFileParams, 0, sizeof(csGridFileXformParams));
 }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticMultipleRegressionTransformDefParams.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -57,7 +57,7 @@
 
     this->mulRegParams = (csMultipleRegressionXformParams*) CS_malc(sizeof(csMultipleRegressionXformParams));
     if (NULL == this->mulRegParams)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.Reset", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.Reset", __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
 
     memset(this->mulRegParams, 0, sizeof(csMultipleRegressionXformParams));
 }
@@ -107,7 +107,7 @@
         break;
 
     default:
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.SetTransformationMethod", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticMultipleRegressionTransformDefParams.SetTransformationMethod", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     this->transformationMethod = mulRegTransformationMethod;

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPath.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPath.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPath.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -34,7 +34,7 @@
     : pathDefinition(NULL), catalog(SAFE_ADDREF(pCatalog))
 {
     if (NULL == pCatalog)
-        throw new MgNullArgumentException(L"CCoordinateSystemGeodeticPath.ctor", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticPath.ctor", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
 }
 
 CCoordinateSystemGeodeticPath::~CCoordinateSystemGeodeticPath()
@@ -62,7 +62,7 @@
     this->pathDefinition = (cs_GeodeticPath_*)CS_malc(sizeof(cs_GeodeticPath_));
 
     if (NULL == this->pathDefinition)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticPath.Initialize", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticPath.Initialize", __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
 
     memset ((void*)this->pathDefinition, 0, sizeof(cs_GeodeticPath_));
 }
@@ -155,7 +155,7 @@
 
     const INT32 pathElementCount = pathElements->GetCount();
     if (0 == pathElementCount || pathElementCount > csPATH_MAXXFRM)
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticPath.SetPathElements", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticPath.SetPathElements", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
 
     cs_GeodeticPathElement_* validElements = new cs_GeodeticPathElement_[pathElementCount];
 
@@ -169,7 +169,7 @@
         Ptr<MgDisposable> collectionItem = pathElements->GetItem(i);
         MgCoordinateSystemGeodeticPathElement* pathElement = dynamic_cast<MgCoordinateSystemGeodeticPathElement*>(collectionItem.p);
         if (NULL == pathElement)
-            throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticPath.SetPathElements", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"CCoordinateSystemGeodeticPath.SetPathElements", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
 
         cs_GeodeticPathElement_& pathElementDef = validElements[i];
 
@@ -215,7 +215,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     UINT8 nVersion=pStreamOut[0];
@@ -230,7 +230,7 @@
         if (pathDefinition == NULL)
         {
             this->pathDefinition = previousPathPtr;
-            throw new MgOutOfMemoryException (L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException (L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
         }
         memcpy(pathDefinition, pStreamOut, sizeof(cs_GeodeticPath_));
         pStreamOut = pStreamOut + sizeof(cs_GeodeticPath_);
@@ -240,7 +240,7 @@
         {
             CS_free (this->pathDefinition);
             this->pathDefinition = previousPathPtr;
-            throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemGeodeticPath.SerializeFrom", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
         }
         CS_free (previousPathPtr);
     }
@@ -258,7 +258,7 @@
     assert(NULL != pStream);
     if (!pStream)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticPath.SerializeTo", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticPath.SerializeTo", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //save the version

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticPathElement.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -59,7 +59,7 @@
 {
     cs_GeodeticPathElement_* tempPathElement = (cs_GeodeticPathElement_*) CS_malc(sizeof(cs_GeodeticPathElement_));
     if (NULL == tempPathElement)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticPathElement.Reset", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticPathElement.Reset", __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
 
     MG_TRY()
 

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticStandaloneTransformDefParams.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -76,7 +76,7 @@
         break;
 
     default:
-        throw new MgInvalidArgumentException(L"CCoordinateSystemGeodeticStandaloneDefParams.SetTransformationMethod", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGeodeticStandaloneDefParams.SetTransformationMethod", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     this->m_nStandaloneMethodCode = standaloneMethodCode;

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -82,8 +82,6 @@
 
     //try creating a new [cs_GeodeticTransform_] instance before we wipe out our own stuff
     cs_GeodeticTransform_* newEmptyDef = (cs_GeodeticTransform_*)CS_malc(sizeof(cs_GeodeticTransform_));
-    if (NULL == newEmptyDef) //uses CS_malc which returns NULL in case allocation fails
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticTransformDef.Initialize", __LINE__, __WFILE__, NULL, L"", NULL);
 
     MG_TRY()
 
@@ -398,8 +396,6 @@
 
         //Read the def from the stream
         allocatedBlock = (cs_GeodeticTransform_*)CS_malc(sizeof(cs_GeodeticTransform_));
-        if (NULL == allocatedBlock)
-            throw new MgOutOfMemoryException (L"MgCoordinateSystemGeodeticTransformDef.SerializeFrom", __LINE__, __WFILE__, NULL, L"", NULL);
 
         this->transformDefinition = allocatedBlock;
 

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformDefDictionary.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -84,7 +84,7 @@
     {
         return static_cast<MgCoordinateSystemGeodeticTransformDef*>(this->m_pDictionary->Get(transformationName));
     }
-    catch(MgCoordinateSystemLoadFailedException* loadFailedException)
+    catch(MgException* loadFailedException)
     {
         //catch only the [MgCoordinateSystemLoadFailedException] and release it right away
         loadFailedException->Release();

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformGridFile.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -35,8 +35,6 @@
     : gridFileDesc(NULL), isProtected(isProtected)
 {
     this->gridFileDesc = (csGeodeticXfromParmsFile_*)CS_malc(sizeof(csGeodeticXfromParmsFile_));
-    if (NULL == this->gridFileDesc)
-        throw new MgOutOfMemoryException(L"CCoordinateSystemGeodeticAnalyticalTransformDefParams.ctor", __LINE__, __WFILE__, NULL, L"", NULL);
 
     ::memset(this->gridFileDesc, 0, sizeof(csGeodeticXfromParmsFile_));
     if (NULL != fileFormatParam)

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGeodeticTransformation.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -278,10 +278,6 @@
     }
 
     pCoord=new MgCoordinateXY(dLongitude, dLatitude);
-    if (!pCoord)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemGeodeticTransformation.Shift")
     return pCoord.Detach();
 }
@@ -324,10 +320,6 @@
     }
 
     pCoord=new MgCoordinateXYZ(dLongitude, dLatitude, dZ);
-    if (!pCoord)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemGeodeticTransformation.Shift", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemGeodeticTransformation.Shift")
     return pCoord.Detach();
@@ -604,7 +596,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationX", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationX", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     dResult = def.rot_X;
@@ -622,7 +614,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationY", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationY", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     dResult = def.rot_Y;
@@ -640,7 +632,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationZ", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformRotationZ", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     dResult = def.rot_Z;
@@ -658,7 +650,7 @@
     cs_Dtdef_ def;
     if (!GetDefinitionForGeodeticTransformationParameter(def))
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformBwScale", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.GetBursaWolfeTransformBwScale", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     dResult = def.bwscale;
@@ -684,26 +676,26 @@
 
     if (!m_pDtSource || !m_pDtTarget)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"", NULL);
     }
     //if not WGS84 for the target system, bye bye!
     if (m_pDtTarget->GetDtCode()!=kpWGS84Datum)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
     }
 
     CCoordinateSystemDatum* pDatumImp=dynamic_cast<CCoordinateSystemDatum*>(m_pDtSource);
     assert(pDatumImp);
     if (!pDatumImp)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
 
     //Make sure this object isn't read-only
     if (m_pDtSource->IsProtected())
     {
         //can't change a read-only object
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDatumProtectedException", NULL);
     }
 
     if (!IsLegalDatumRotation(dRotationX) ||
@@ -712,7 +704,7 @@
         !::IsLegalBwScale(dBwScale))
     {
         //Caller gave us an illegal value.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.SetBursaWolfeTransform", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     pDatumImp->m_DtDef.rot_X = pDatumImp->m_datum.rot_X = dRotationX;
@@ -791,7 +783,7 @@
     if (!IsLegalGeodeticTransformationMethod(nGeodeticTransformationMethod))
     {
         //Not one of the known datum conversion techniques.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGeodeticTransformation.SetGeodeticTransformationMethod", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     pDatumImp->m_DtDef.to84_via = pDatumImp->m_datum.to84_via = nGeodeticTransformationMethod;

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGrids.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGrids.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysGrids.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -182,8 +182,8 @@
     codeOk = GetUnitInfo(unitCode,&lclUnitType,NULL);
     if (!codeOk || unitType != lclUnitType)
     {
-        throw new MgInvalidCoordinateSystemUnitsException(L"MgCoordinateSystemGridSpecification.SetUnits",
-                                                          __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemGridSpecification.SetUnits",
+                                                          __LINE__, __WFILE__, NULL, L"InvalidCoordinateSystemUnits", NULL);
     }
 
     m_UnitCode = unitCode;
@@ -425,18 +425,7 @@
         nwPnt = factory.CreateCoordinateXY(southwest->GetX(),northeast->GetY());
         clPnt = factory.CreateCoordinateXY(southwest->GetX(),southwest->GetY());
 
-        if (!swPnt|| !swPnt || !nePnt || !nwPnt ||!clPnt)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemGridBoundary.SetBoundaryExtents",
-                                             __LINE__, __WFILE__, NULL, L"", NULL);
-        }
-
         collection = new MgCoordinateCollection();
-        if (collection == NULL)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemGridBoundary.SetBoundaryExtents",
-                                             __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         collection->Add (swPnt);
         collection->Add (sePnt);
         collection->Add (nePnt);
@@ -444,11 +433,6 @@
         collection->Add (clPnt);
 
         Ptr<MgLinearRing> ring = factory.CreateLinearRing (collection);
-        if (ring == 0)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemGridBoundary.SetBoundaryExtents",
-                                             __LINE__, __WFILE__, NULL, L"", NULL);
-        }
         m_GridBoundary = factory.CreatePolygon (ring,NULL);
     MG_CATCH_AND_THROW(L"MgCoordinateSystemGridBoundary.SetBoundaryExtents")
 }
@@ -982,14 +966,14 @@
 void CCoordinateSystemGridLineCollection::SetItem (INT32 index,MgCoordinateSystemGridLine* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridLineCollection.SetItem", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGridLineCollection.SetItem", __LINE__, __WFILE__, NULL, L"GridDensity", NULL);
 
     m_GridLineCollection->SetItem (index,value);
 }
 void CCoordinateSystemGridLineCollection::Add (MgCoordinateSystemGridLine* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridLineCollection.Add", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGridLineCollection.Add", __LINE__, __WFILE__, NULL, L"GridDensity", NULL);
 
     // The MgDIsposableCollection object does the "SAFE_ADDREF" operation.
     m_GridLineCollection->Add (value);
@@ -1056,14 +1040,14 @@
 void CCoordinateSystemGridRegionCollection::SetItem (INT32 index, MgCoordinateSystemGridRegion* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridRegionCollection.SetItem", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGridRegionCollection.SetItem", __LINE__, __WFILE__, NULL, L"GridDensity", NULL);
 
     m_GridRegionCollection->SetItem (index,value);
 }
 void CCoordinateSystemGridRegionCollection::Add (MgCoordinateSystemGridRegion* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridRegionCollection.Add", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGridRegionCollection.Add", __LINE__, __WFILE__, NULL, L"GridDensity", NULL);
 
     m_GridRegionCollection->Add (value);
 }
@@ -1132,14 +1116,14 @@
 void CCoordinateSystemGridTickCollection::SetItem (INT32 index, MgCoordinateSystemGridTick* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridTickCollection.SetItem", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGridTickCollection.SetItem", __LINE__, __WFILE__, NULL, L"GridDensity", NULL);
 
     m_GridTickCollection->SetItem (index,value);
 }
 void CCoordinateSystemGridTickCollection::Add (MgCoordinateSystemGridTick* value)
 {
     if (GetAvailableMemory() < m_MemoryThreshold)
-        throw new MgGridDensityException(L"CCoordinateSystemGridTickCollection.Add", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemGridTickCollection.Add", __LINE__, __WFILE__, NULL, L"GridDensity", NULL);
 
     m_GridTickCollection->Add (value);
 }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMacro.h
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMacro.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMacro.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -26,17 +26,17 @@
 
 #ifdef CS_MAP_DEF_VARIABLE
     #define VERIFY_INITIALIZED(x)   if (NULL == CS_MAP_DEF_VARIABLE) \
-        throw new MgInvalidOperationException(x, __LINE__, __WFILE__, NULL, L"", NULL)
+        throw new MgApplicationException(x, __LINE__, __WFILE__, NULL, L"InvalidOperation", NULL)
 #else
     #define VERIFY_INITIALIZED(x)
 #endif
 
 #define VERIFY_NOT_PROTECTED(x) if (this->IsProtected()) \
-    throw new MgCoordinateSystemInitializationFailedException(x, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL);
+    throw new MgApplicationException(x, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL);
 
 #define ENSURE_NOT_NULL(param,method) \
     if (NULL == param) \
-        throw new MgNullArgumentException(method, __LINE__, __WFILE__, NULL, L"", NULL)
+        throw new MgApplicationException(method, __LINE__, __WFILE__, NULL, L"NullArgument", NULL)
 
 #define DEFINE_GET_STRING(x,y) STRING x::Get##y()
 #define DEFINE_SET_STRING(x,y) void x::Set##y(CREFSTRING propertyValue)
@@ -51,7 +51,7 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName)); \
         if (this->IsProtected()) \
-            throw new MgCoordinateSystemInitializationFailedException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
+            throw new MgApplicationException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
         \
         MentorSetString(propertyValue, charBuffer /* target buffer */, sizeof(charBuffer)); \
     }
@@ -72,7 +72,7 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName)); \
         if (this->IsProtected()) \
-            throw new MgCoordinateSystemInitializationFailedException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
+            throw new MgApplicationException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
         \
         target = propertyValue;\
     }
@@ -82,7 +82,7 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName)); \
         if (index < 0 || index > maxIdx) \
-            throw new MgArgumentOutOfRangeException(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
+            throw new MgApplicationException(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), __LINE__, __WFILE__, NULL, L"ArgumentOutOfRange", NULL); \
         \
         return target[index]; \
     } \
@@ -90,10 +90,10 @@
     { \
         VERIFY_INITIALIZED(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName)); \
         if (this->IsProtected()) \
-            throw new MgCoordinateSystemInitializationFailedException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
+            throw new MgApplicationException(MAKE_QUALIFIED_MEMBER_STRING(className,Set##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
         \
         if (index < 0 || index > maxIdx) \
-            throw new MgArgumentOutOfRangeException(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), __LINE__, __WFILE__, NULL, L"MgCoordinateSystemProtectedException", NULL); \
+            throw new MgApplicationException(MAKE_QUALIFIED_MEMBER_STRING(className,Get##propertyName), __LINE__, __WFILE__, NULL, L"ArgumentOutOfRange", NULL); \
         \
         target[index] = propertyValue;\
     }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMeasure.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMeasure.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMeasure.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -207,10 +207,6 @@
 {
     MgEnvelope* pNew=NULL;
     pNew=new MgEnvelope(m_pCoordSys->GetMinX(), m_pCoordSys->GetMinY(), m_pCoordSys->GetMaxX(), m_pCoordSys->GetMaxY());
-    if (NULL == pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemMeasure.GetEnvelope", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     return pNew;
 }
 

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMgrs.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMgrs.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysMgrs.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -146,19 +146,6 @@
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sEllipsoidCode.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        if (m_bExceptionsOn)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemMgrs.InitFromEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
-        else
-        {
-            m_nLastError=MgCoordinateSystemErrorCode::OutOfMemory;
-            m_pCsMgrs=NULL;
-            return;
-        }
-    }
 
     // Initialize the critical section class
     SmartCriticalClass critical(true);
@@ -187,19 +174,6 @@
 
     //Convert to a C++ string, for Mentor's sake
     char *pStr = Convert_Wide_To_Ascii(sDatumCode.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        if (m_bExceptionsOn)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemMgrs.InitFromDatum", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
-        else
-        {
-            m_nLastError=MgCoordinateSystemErrorCode::OutOfMemory;
-            m_pCsMgrs=NULL;
-            return;
-        }
-    }
 
     // Initialize the critical section class
     SmartCriticalClass critical(true);
@@ -274,22 +248,7 @@
     if (MgCoordinateSystemErrorCode::Ok==nResult)
     {
         MgCoordinate* pLonLat=new MgCoordinateXY(dLongitude, dLatitude);
-        if (NULL==pLonLat)
-        {
-            if (m_bExceptionsOn)
-            {
-                throw new MgOutOfMemoryException(L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-            }
-            else
-            {
-                m_nLastError=MgCoordinateSystemErrorCode::OutOfMemory;
-                return NULL;
-            }
-        }
-        else
-        {
-            return pLonLat;
-        }
+        return pLonLat;
     }
 
     //if exception mode is on and excetion is thrown internally we exit anyway
@@ -740,18 +699,6 @@
     {
         //success, return the MGRS string
         wchar_t* pMgrs = Convert_Ascii_To_Wide(szMgrs);
-        if (NULL == pMgrs)
-        {
-            if (m_bExceptionsOn)
-            {
-                throw new MgOutOfMemoryException(L"MgCoordinateSystemMgrs.ConvertFromLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-            }
-            else
-            {
-                m_nLastError=MgCoordinateSystemErrorCode::OutOfMemory;
-                return m_nLastError;
-            }
-        }
         sMgrs=pMgrs;
         delete[] pMgrs;
     }
@@ -863,18 +810,6 @@
 
     //Convert to a char*
     char *pMgrs = Convert_Wide_To_Ascii(sMgrs.c_str()); //need to delete[] pStr
-    if (NULL == pMgrs)
-    {
-        if (m_bExceptionsOn)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemMgrs.ConvertToLonLat", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
-        else
-        {
-            m_nLastError=MgCoordinateSystemErrorCode::OutOfMemory;
-            return m_nLastError;
-        }
-    }
 
     double latLng [2];
     int nResult=CScalcLlFromMgrsEx (m_pCsMgrs, latLng, pMgrs, grdSqrPosition);

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysProjectionInformation.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysProjectionInformation.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysProjectionInformation.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -137,11 +137,6 @@
 
     pNewEnum = new CCoordinateSystemEnumInteger32;
 
-    if (NULL == pNewEnum.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemProjectionInformation.GetEnumProjections", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     pNewEnum->SetList(kProjections, klNumProjections);
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemProjectionInformation.GetEnumProjections")
@@ -160,7 +155,7 @@
     MG_TRY()
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterCount", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemProjectionInformation.GetParameterCount", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     // for each possible parameter.
     int parmIdx = 0;
@@ -186,13 +181,13 @@
     MG_TRY()
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.IsUsingParameter", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemProjectionInformation.IsUsingParameter", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterCount", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemProjectionInformation.GetParameterCount", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     int nResult = CS_prjprm(NULL, nProjectionCode, ulIndex-1);
@@ -258,12 +253,12 @@
     MG_TRY()
     if (MgCoordinateSystemProjectionCode::Unknown == nProjectionCode)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     assert((ulIndex>=1) && (ulIndex<=knCsNumParams));
     if ((ulIndex < 1) || (ulIndex > knCsNumParams))
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Get information about the parameter
@@ -276,12 +271,12 @@
         break;
     case 0:
         //The projection does not use this parameter.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemMismatchException", NULL);
         break;
     case -1:
     default:
         //Not a valid projection.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemProjectionInformation.GetParameterMin", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
         break;
     }
 
@@ -563,10 +558,6 @@
     }
 
     wchar_t* pszTag=Convert_Ascii_To_Wide(StringFromProjection(nProjectionCode));
-    if (NULL == pszTag)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemProjectionInformation.GetTagString", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     STRING str(pszTag);
     delete[] pszTag;
 

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysTransform.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysTransform.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysTransform.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -192,10 +192,7 @@
        Note that user will own this point and need to delete/release it,
        whatever it is you do with MgCoordinate objects. */
     pCoordinate = new MgCoordinateXY(dCoords [0], dCoords [1]);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.Transform")
     return pCoordinate;
 }
@@ -259,10 +256,6 @@
     }
 
     pCoordinate = new MgCoordinateXYM(dCoords [0], dCoords [1], lclM);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.TransformM", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.TransformM")
     return pCoordinate;
@@ -325,10 +318,6 @@
     }
 
     pCoordinate = new MgCoordinateXYZ(dCoords [0], dCoords [1], dCoords [2]);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.Transform")
     return pCoordinate;
@@ -394,10 +383,7 @@
     }
 
     pCoordinate = new MgCoordinateXYZM(dCoords [0], dCoords [1], dCoords [2], lclM);
-    if (!pCoordinate)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemTransform.TransformM", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.TransformM")
     return pCoordinate;
 }
@@ -424,7 +410,7 @@
 
     if(NULL == coordinate)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.TransformCoordinate", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.TransformCoordinate", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     m_nTransformStatus = TransformOk;           // until we know different
@@ -526,7 +512,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.TransformCoordinate", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.TransformCoordinate", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     if (status != TransformOk)
     {
@@ -554,7 +540,7 @@
 
     if(NULL == coordinate)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
     // Need to determine type of coordinate to transform
     if(coordinate->GetDimension() == MgCoordinateDimension::XY)
@@ -580,7 +566,7 @@
     else
     {
         // What dimension is this?
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemTransform.Transform")
 
@@ -642,7 +628,7 @@
 
     if(NULL == envelope)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     // Extract the two defining corners of this envelope.
@@ -817,7 +803,7 @@
 
     if (NULL == pSource || NULL == pTarget)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     bool bValid;
@@ -826,14 +812,14 @@
     bValid = pSource->IsValid();
     if (!bValid)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Make sure the destination coordinate system is valid
     bValid = pTarget->IsValid();
     if (!bValid)
     {
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.SetSourceAndTarget", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Build Mentor structs out of the source and destination
@@ -1653,17 +1639,17 @@
     assert(NULL != xyz);
     if (NULL == xyz)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
     assert(pointCount > 0);
     if (0 >= pointCount)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
     assert(IsInitialized());
     if (!IsInitialized())
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.Transform", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
     }
 
     // Optimization
@@ -1706,7 +1692,7 @@
     }
     if (TransformTotalFailure <= status)
     {
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL);
     }
     return;
 }
@@ -1951,8 +1937,8 @@
         else
         {
             // Invalid argument value.
-            throw new MgInvalidArgumentException(L"MgCoordinateSystemTransform.PositionOfValue",
-                                                 __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemTransform.PositionOfValue",
+                                                 __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
         }
 
         if (minValue > maxValue)
@@ -2291,7 +2277,7 @@
     if (status == TransformTotalFailure)
     {
         m_nTransformStatus = TransformTotalFailure;
-        throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoConversionDone", NULL);
     }
     else if (status == TransformDatumShiftWarning)
     {
@@ -2301,7 +2287,7 @@
         }
         if (!m_bIgnoreDatumShiftWarning)
         {
-            throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionWarningException", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionWarningException", NULL);
         }
     }
     else if (status != TransformOk)
@@ -2312,7 +2298,7 @@
         }
         if(!m_bIgnoreOutsideDomainWarning)
         {
-            throw new MgCoordinateSystemConversionFailedException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL);
+            throw new MgApplicationException(L"MgCoordinateSystemTransform.InterpretStatus", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemConversionExtentException", NULL);
         }
     }
 }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUnitInformation.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUnitInformation.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUnitInformation.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -144,14 +144,14 @@
     {
         MgStringCollection arguments;
         arguments.Add(L""); // dummy argument
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemUnitInformation.GetScale", __LINE__, __WFILE__, &arguments, L"MgCoordinateSystemUnknownUnit", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemUnitInformation.GetScale", __LINE__, __WFILE__, &arguments, L"MgCoordinateSystemUnknownUnit", NULL);
     }
 
     if (desiredUnitType != unitType)
     {
         MgStringCollection arguments;
         arguments.Add(L""); // dummy argument
-        throw new MgCoordinateSystemLoadFailedException(L"MgCoordinateSystemUnitInformation.GetScale", __LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotLinearUnit", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemUnitInformation.GetScale", __LINE__, __WFILE__, &arguments, L"MgCoordinateSystemNotLinearUnit", NULL);
     }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemUnitInformation.GetScale")
 
@@ -170,11 +170,6 @@
 
     pNewEnum = new CCoordinateSystemEnumInteger32;
 
-    if (NULL == pNewEnum.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemUnitInformation.GetEnumLinearUnits", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     pNewEnum->SetList(kLinearUnits, klNumLinearUnits);
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemUnitInformation.GetEnumLinearUnits")
@@ -194,11 +189,6 @@
 
     pNewEnum = new CCoordinateSystemEnumInteger32;
 
-    if (NULL == pNewEnum.p)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemUnitInformation.GetEnumAngularUnits", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     pNewEnum->SetList(kAngularUnits, klNumAngularUnits);
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemUnitInformation.GetEnumAngularUnits")
@@ -251,10 +241,6 @@
 STRING CCoordinateSystemUnitInformation::GetTagString(INT32 unit)
 {
     wchar_t* pszTag = Convert_Ascii_To_Wide(StringFromUnit(unit));
-    if (NULL == pszTag)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemUnitInformation.GetTagString", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
     STRING str(pszTag);
     delete[] pszTag;
 
@@ -277,7 +263,7 @@
     if (NULL == kpTag)
     {
         //Unknown unit type.
-        throw new MgInvalidArgumentException(L"MgCoordinateSystemUnitInformation.GetAbbreviation", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemUnitInformation.GetAbbreviation", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Look it up in Mentor's table

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUtil.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUtil.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysUtil.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -73,14 +73,14 @@
     case kFileIsValid:
         break;
     case kFileInvalidEmptyString:
-        throw new MgInvalidArgumentException(wszMethodName, __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(wszMethodName, __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
         break;
     case kFileInvalidNotADir:
     case kFileInvalidIsADir:
         {
         MgStringCollection arguments;
         arguments.Add(sPathName);
-        throw new MgFileIoException(wszMethodName, __LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL);
+        throw new MgApplicationException(wszMethodName, __LINE__, __WFILE__, &arguments, L"InvalidArgument", NULL);
         }
         break;
     case kFileInvalidPath:
@@ -88,16 +88,16 @@
         {
         MgStringCollection arguments;
         arguments.Add(sPathName);
-        throw new MgFileIoException(wszMethodName, __LINE__, __WFILE__, &arguments, L"MgFileNotFoundException", NULL);
+        throw new MgApplicationException(wszMethodName, __LINE__, __WFILE__, &arguments, L"FileNotFound", NULL);
         }
         break;
     case kFileInvalidCantRead:
     case kFileInvalidCantWrite:
-        throw new MgFileIoException(wszMethodName, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemCatalogFileLockedException", NULL);
+        throw new MgApplicationException(wszMethodName, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemCatalogFileLockedException", NULL);
         break;
     default:
         assert(0);
-        throw new MgUnclassifiedException(wszMethodName, __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(wszMethodName, __LINE__, __WFILE__, NULL, L"", NULL);
         break;
     }
 }

Modified: sandbox/adsk/vik/Common/CoordinateSystem/CoordSysWktFailureCache.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/CoordSysWktFailureCache.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/CoordSysWktFailureCache.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -93,8 +93,8 @@
 {
     if (key.empty() || NULL == mgException)
     {
-        throw new MgNullArgumentException(L"CCoordinateSystemWktFailureCache.Set",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemWktFailureCache.Set",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgLock lock(m_mutex);
@@ -123,8 +123,8 @@
 
     if (key.empty())
     {
-        throw new MgNullArgumentException(L"CCoordinateSystemWktFailureCache.Has",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemWktFailureCache.Has",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgLock lock(m_mutex);
@@ -153,8 +153,8 @@
 {
     if (key.empty())
     {
-        throw new MgNullArgumentException(L"CCoordinateSystemWktFailureCache.Get",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"CCoordinateSystemWktFailureCache.Get",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgLock lock(m_mutex);

Modified: sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -60,7 +60,7 @@
         bWriting = true;
         break;
     default:
-        throw new MgInvalidArgumentException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
         break;
     }
 
@@ -76,7 +76,7 @@
         switch (reason)
         {
         case kFileInvalidEmptyString:
-            throw new MgInvalidArgumentException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
             break;
         case kFileInvalidPath:
         case kFileInvalidDoesNotExist:
@@ -84,18 +84,18 @@
             {
             MgStringCollection arguments;
             arguments.Add(kpPath);
-            throw new MgFileNotFoundException(L"MentorDictionary.Open", __LINE__, __WFILE__, &arguments, L"", NULL);
+            throw new MgApplicationException(L"MentorDictionary.Open", __LINE__, __WFILE__, &arguments, L"FileNotFound", NULL);
             }
             break;
         case kFileInvalidCantWrite:
             {
             MgStringCollection arguments;
             arguments.Add(kpPath);
-            throw new MgCoordinateSystemLoadFailedException(L"MentorDictionary.Open", __LINE__, __WFILE__, &arguments, L"MgCoordinateSystemDictionaryReadOnlyException", NULL);
+            throw new MgApplicationException(L"MentorDictionary.Open", __LINE__, __WFILE__, &arguments, L"MgCoordinateSystemDictionaryReadOnlyException", NULL);
             }
             break;
         default:
-            throw new MgUnclassifiedException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"", NULL);
             break;
         }
         //return;
@@ -106,7 +106,7 @@
     GetFileModes(nOpenMode, szMode);
     if (NULL==(pFile=OpenDictionaryFile(kpPath, szMode, lMagic, ValidMagic)))
     {
-        throw new MgFileIoException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryOpenFailedException", NULL);
+        throw new MgApplicationException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryOpenFailedException", NULL);
     }
 
     //If the Mentor version is anything other than current, we're not allowed
@@ -116,7 +116,7 @@
         //Sorry, old version.  Write access not allowed.
         CS_fclose(pFile);
         pFile=NULL;
-        throw new MgInvalidArgumentException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryNoWriteToOldException", NULL);
+        throw new MgApplicationException(L"MentorDictionary.Open", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryNoWriteToOldException", NULL);
     }
 
     MG_CATCH_AND_THROW(L"MentorDictionary.Open")
@@ -157,7 +157,7 @@
         if (sDirectory.empty())
         {
             //Directory hasn't been specified yet.
-            throw new MgCoordinateSystemInitializationFailedException(kpMethodName, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
+            throw new MgApplicationException(kpMethodName, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNotReadyException", NULL);
         }
 
         STRING sPath = sDirectory + sFileName;
@@ -177,7 +177,7 @@
         //Try to open the dictionary file
         if (!GetMagicFromDictionaryFile(sPath.c_str(), lMagic, ValidMagic))
         {
-            throw new MgFileIoException(kpMethodName, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryOpenFailedException", NULL);
+            throw new MgApplicationException(kpMethodName, __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDictionaryOpenFailedException", NULL);
         }
     }//if dictionary is specified
 

Modified: sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.h
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/MentorDictionary.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -63,7 +63,7 @@
             return false;
 
         //i.e. nResult < 0
-        throw new MgFileIoException(L"MentorDictionary.GetNextEntry", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MentorDictionary.GetNextEntry", __LINE__, __WFILE__, NULL, L"FileIo", NULL);
     }
 
     //iterates through all entries return a vector of definitions in the same order as they've been returned by CsMap
@@ -90,7 +90,7 @@
 
             return allDictEntries.release();
         }
-        catch(MgFileIoException* ioException)
+        catch(MgApplicationException* ioException)
         {
             ioException->Release();
         }
@@ -326,13 +326,13 @@
         assert(NULL != kpDef);
         if (NULL == kpDef)
         {
-            throw new MgNullArgumentException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
         }
 
         //Make sure the def they've given us is valid
         if (NULL != isValid && !CALL_MEMBER_FN(kpDef, isValid)())
         {
-            throw new MgInvalidArgumentException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
         }
 
         //Build a definition from the interface
@@ -374,7 +374,7 @@
         if (bActuallyExists && !bAlreadyExists)
         {
             //It already exists, but it's not supposed to.
-            throw new MgInvalidArgumentException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL);
+            throw new MgApplicationException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemDuplicateException", NULL);
         }
         else if (!bActuallyExists && bAlreadyExists)
         {
@@ -414,19 +414,12 @@
             assert(!bAlreadyExists);
             if (NULL != pmapSystemNameDescription)
             {
-                try
-                {
-                    pmapSystemNameDescription->insert(
-                        CSystemNameDescriptionPair(
-                            CSystemName(keyName),
-                            CSystemDescription(description(def))
-                        )
-                    );
-                }
-                catch (std::bad_alloc)
-                {
-                    throw new MgOutOfMemoryException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);
-                }
+                pmapSystemNameDescription->insert(
+                    CSystemNameDescriptionPair(
+                        CSystemName(keyName),
+                        CSystemDescription(description(def))
+                    )
+                );
             }    //if summary is present
             break;
         case 1:
@@ -458,27 +451,21 @@
                     //The name changed (case changed only).  We need
                     //to delete the item and re-insert it.
                     assert(0 == CS_stricmp(keyName, (*iter).first.Name()));
-                    try
-                    {
-                        pmapSystemNameDescription->erase(iter);
-                        pmapSystemNameDescription->insert(
-                            CSystemNameDescriptionPair(
-                                CSystemName(keyName),
-                                CSystemDescription(description(def))
-                            )
-                        );
-                    }
-                    catch (std::bad_alloc)
-                    {
-                        throw new MgOutOfMemoryException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);
-                    }
+
+                    pmapSystemNameDescription->erase(iter);
+                    pmapSystemNameDescription->insert(
+                        CSystemNameDescriptionPair(
+                            CSystemName(keyName),
+                            CSystemDescription(description(def))
+                        )
+                    );
                 }    //if the key name changed case
             }    //if a summary exists
             break;
         default:
             //This should never happen.
             assert(0);
-            throw new MgUnclassifiedException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MentorDictionary.UpdateDef", __LINE__, __WFILE__, NULL, L"", NULL);
         }    //for each possible result of the update
     }
 
@@ -509,10 +496,7 @@
     {
         //Make sure the specified definition is present
         char *pName = Convert_Wide_To_Ascii(kpName);    //need to delete [] pName;
-        if (NULL == pName)
-        {
-            throw new MgOutOfMemoryException(L"MentorDictionary.RemoveDef", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
+
         //Check our summary first, if present
         CSystemNameDescriptionMap::iterator iter;
         if (NULL != pmapSystemNameDescription)

Modified: sandbox/adsk/vik/Common/CoordinateSystem/MentorUtil.cpp
===================================================================
--- sandbox/adsk/vik/Common/CoordinateSystem/MentorUtil.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/CoordinateSystem/MentorUtil.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1418,14 +1418,14 @@
                            const wchar_t* context)
 {
     if (NULL == MagicNumberCallback || NULL == FileNameTarget)
-        throw new MgNullArgumentException(L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
 
     if (sFileName.empty() || dictionaryPath.empty())
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
 
-        throw new MgArgumentOutOfRangeException(L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, NULL, L"ArgumentOutOfRange", NULL);
     }
 
     char* szCs = NULL;
@@ -1439,7 +1439,7 @@
     {
         MgStringCollection arguments;
         arguments.Add(sFileName);
-        throw new MgFileIoException(/*context */ L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, &arguments, L"MgInvalidArgumentException", NULL);
+        throw new MgApplicationException(/*context */ L"MentorUtil.SetDictionaryFileName", __LINE__, __WFILE__, &arguments, L"FileIo", NULL);
     }
 
     STRING fileNameSet;
@@ -1642,8 +1642,6 @@
     MG_TRY()
 
     pString = Convert_Ascii_To_Wide(mentorString);
-    if (NULL == pString) //ABA: this cannot be null, can it?
-        throw new MgOutOfMemoryException(L"MentorUtil.ReadString", __LINE__, __WFILE__, NULL, L"", NULL);
 
     MG_CATCH(L"MentorUtil.ReadString")
 
@@ -1667,21 +1665,17 @@
 
     if (NULL==pDest)
     {
-        throw new MgNullArgumentException(L"MentorSetString", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MentorSetString", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     if (!IsLegalString(sSrc.c_str(), nMaxSize))
     {
         //Can't set string, caller gave us an illegal value
-        throw new MgInvalidArgumentException(L"MentorSetString", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MentorSetString", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     //Convert to a C++ string, for Mentor's sake
     pStr = Convert_Wide_To_Ascii(sSrc.c_str()); //need to delete[] pStr
-    if (NULL == pStr)
-    {
-        throw new MgOutOfMemoryException(L"MentorSetString", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
 
     //Copy it in
     memset(pDest, 0, nMaxSize);

Modified: sandbox/adsk/vik/Common/Foundation/Data/NamedCollection.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Data/NamedCollection.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Data/NamedCollection.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -112,7 +112,7 @@
 {
     MgNamedSerializable* item = FindItem(name);
     if (!item)
-        throw new MgObjectNotFoundException(L"GetItem", __LINE__, __WFILE__, NULL, L"", NULL); // EXC::Create(Exception::NLSGetMessage(NLSID(38_ITEMNOTFOUND),name));
+        throw new MgApplicationException(L"GetItem", __LINE__, __WFILE__, NULL, L"ObjectNotFound", NULL); // EXC::Create(Exception::NLSGetMessage(NLSID(38_ITEMNOTFOUND),name));
 
     return item;
 }
@@ -383,7 +383,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(L"MgNamedCollection.IndexOf",
+        throw new MgApplicationException(L"MgNamedCollection.IndexOf",
             __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL); // EXC::Create(Exception::NLSGetMessage(NLSID(2_BADPARAMETER)));
     }
 
@@ -493,7 +493,7 @@
             foundItem2 = GetItem(index);
 
         if ((foundItem1 != NULL) && (foundItem1.p != foundItem2.p))
-            throw new MgDuplicateObjectException(L"CheckDuplicate", __LINE__, __WFILE__, NULL, L"", NULL); // EXC::Create(Exception::NLSGetMessage(NLSID(45_ITEMINCOLLECTION),(String*) item->GetName()));
+            throw new MgApplicationException(L"CheckDuplicate", __LINE__, __WFILE__, NULL, L"DuplicateObject", NULL); 
     }
 }
 

Modified: sandbox/adsk/vik/Common/Foundation/Data/NullableProperty.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Data/NullableProperty.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Data/NullableProperty.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -70,8 +70,8 @@
         MgStringCollection arguments;
         arguments.Add(this->GetName());
 
-        throw new MgNullPropertyValueException(L"MgNullableProperty.CheckNull",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgNullableProperty.CheckNull",
+            __LINE__, __WFILE__, &arguments, L"NullPropertyValue", NULL);
     }
 }
 

Modified: sandbox/adsk/vik/Common/Foundation/Data/Property.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Data/Property.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Data/Property.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -70,7 +70,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(L"MgProperty.SetName",
+        throw new MgApplicationException(L"MgProperty.SetName",
             __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
     }
 

Modified: sandbox/adsk/vik/Common/Foundation/Data/PropertyDefinition.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Data/PropertyDefinition.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Data/PropertyDefinition.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -52,7 +52,7 @@
 
     if (propType.empty())
     {
-        throw new MgInvalidPropertyTypeException(L"MgPropertyDefinition.MgPropertyDefinition", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgPropertyDefinition.MgPropertyDefinition", __LINE__, __WFILE__, NULL, L"InvalidPropertyType", NULL);
     }
 
     m_propertyType = type;

Modified: sandbox/adsk/vik/Common/Foundation/Data/StringCollection.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Data/StringCollection.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Data/StringCollection.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -351,7 +351,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgIndexOutOfRangeException(L"MgStringCollection.ValidateIndex",
+        throw new MgApplicationException(L"MgStringCollection.ValidateIndex",
             __LINE__, __WFILE__, &arguments, L"MgInvalidValueTooBig", NULL);
     }
     else if (index < 0)
@@ -363,7 +363,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgIndexOutOfRangeException(L"MgStringCollection.ValidateIndex",
+        throw new MgApplicationException(L"MgStringCollection.ValidateIndex",
             __LINE__, __WFILE__, &arguments, L"MgInvalidValueTooSmall", NULL);
     }
 }

Modified: sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -18,7 +18,7 @@
 #include "stdafx.h"
 #include "Foundation.h"
 
-IMPLEMENT_EXCEPTION_ABSTRACT(MgApplicationException)
+IMPLEMENT_EXCEPTION_DEFAULTS(MgApplicationException, MgException)
 
 ///////////////////////////////////////////////////////////////////////////////
 /// \brief

Modified: sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ApplicationException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -39,8 +39,6 @@
     ///
     virtual ~MgApplicationException() throw();
 
-protected:
-
     ///////////////////////////////////////////////////////////////////////////
     /// \brief
     /// Construct a MgApplicationException object.
@@ -64,7 +62,7 @@
 
 INTERNAL_API:
 
-    DECLARE_EXCEPTION_ABSTRACT(MgApplicationException)
+    DECLARE_EXCEPTION_DEFAULTS(MgApplicationException)
 
 CLASS_ID:
 

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgArgumentOutOfRangeException, MgOutOfRangeException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgArgumentOutOfRangeException object.
-///
-MgArgumentOutOfRangeException::MgArgumentOutOfRangeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgOutOfRangeException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgArgumentOutOfRangeException::~MgArgumentOutOfRangeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ArgumentOutOfRangeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_ARGUMENT_OUT_OF_RANGE_EXCEPTION_H_
-#define MG_ARGUMENT_OUT_OF_RANGE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the value of an argument is
-/// outside the allowable range of values as defined by the invoked method.
-///
-class MG_FOUNDATION_API MgArgumentOutOfRangeException : public MgOutOfRangeException
-{
-    DECLARE_CLASSNAME(MgArgumentOutOfRangeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgArgumentOutOfRangeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgArgumentOutOfRangeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgArgumentOutOfRangeException object.
-    ///
-    virtual ~MgArgumentOutOfRangeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgArgumentOutOfRangeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgArgumentOutOfRangeException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgClassNotFoundException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgClassNotFoundException object.
-///
-MgClassNotFoundException::MgClassNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgClassNotFoundException::~MgClassNotFoundException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ClassNotFoundException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CLASS_NOT_FOUND_EXCEPTION_H_
-#define MG_CLASS_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to create an invalid class.
-///
-class MG_FOUNDATION_API MgClassNotFoundException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgClassNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgClassNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgClassNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgClassNotFoundException object.
-    ///
-    virtual ~MgClassNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgClassNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgClassNotFoundException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgConfigurationException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgConfigurationException object.
-///
-MgConfigurationException::MgConfigurationException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgConfigurationException::~MgConfigurationException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,72 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CONFIGURATION_EXCEPTION_H_
-#define MG_CONFIGURATION_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs in a configuration file, possibly due to invalid parameters
-/// or a missing file.
-///
-class MG_FOUNDATION_API MgConfigurationException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgConfigurationException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgConfigurationException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgConfigurationException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgConfigurationException object.
-    ///
-    virtual ~MgConfigurationException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgConfigurationException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgConfigurationException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,50 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgConfigurationLoadFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgConfigurationLoadFailedException object.
-///
-MgConfigurationLoadFailedException::MgConfigurationLoadFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgConfigurationLoadFailedException::~MgConfigurationLoadFailedException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Retrieve the formatted exception message for the specified locale.
-///
-STRING MgConfigurationLoadFailedException::GetExceptionMessage(CREFSTRING locale) throw()
-{
-    return MgException::GetExceptionMessage(locale, MgResources::FailedToLoadConfigurationFile);
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationLoadFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,83 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CONFIGURATION_LOAD_FAILED_EXCEPTION_H_
-#define MG_CONFIGURATION_LOAD_FAILED_EXCEPTION_H_
-
-/// \cond INTERNAL
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a configuration file cannot be loaded.
-///
-class MG_FOUNDATION_API MgConfigurationLoadFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgConfigurationLoadFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgConfigurationLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgConfigurationLoadFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgConfigurationLoadFailedException object.
-    ///
-    virtual ~MgConfigurationLoadFailedException() throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Retrieve the formatted exception message for the specified locale.
-    ///
-    /// \param locale
-    /// The locale identifier to format the details text.
-    /// Locale codes are 2 letters language codes defined by ISO 639-1.
-    /// Please refer to  http://www.loc.gov/standards/iso639-2/englangn.html
-    ///
-    /// \return
-    /// Formatted exception message
-    ///
-    virtual STRING GetExceptionMessage(CREFSTRING locale) throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgConfigurationLoadFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgConfigurationLoadFailedException;
-};
-/// \endcond
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgConfigurationSaveFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgConfigurationSaveFailedException object.
-///
-MgConfigurationSaveFailedException::MgConfigurationSaveFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgConfigurationSaveFailedException::~MgConfigurationSaveFailedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ConfigurationSaveFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_CONFIGURATION_SAVE_FAILED_EXCEPTION_H_
-#define MG_CONFIGURATION_SAVE_FAILED_EXCEPTION_H_
-
-/// \cond INTERNAL
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a configuration file cannot be saved.
-///
-class MG_FOUNDATION_API MgConfigurationSaveFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgConfigurationSaveFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgConfigurationLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgConfigurationSaveFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgConfigurationSaveFailedException object.
-    ///
-    virtual ~MgConfigurationSaveFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgConfigurationSaveFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgConfigurationSaveFailedException;
-};
-/// \endcond
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDateTimeException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDateTimeException object.
-///
-MgDateTimeException::MgDateTimeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDateTimeException object.
-///
-MgDateTimeException::~MgDateTimeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DateTimeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DATE_TIME_EXCEPTION_H_
-#define MG_DATE_TIME_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs in a date/time routine.
-///
-class MG_FOUNDATION_API MgDateTimeException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDateTimeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDateTimeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    /// \param thirdPartyMessage
-    /// Exception message from the third party component
-    ///
-    MgDateTimeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDateTimeException object.
-    ///
-    virtual ~MgDateTimeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDateTimeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDateTimeException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDecryptionException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDecryptionException object.
-///
-MgDecryptionException::MgDecryptionException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDecryptionException object.
-///
-MgDecryptionException::~MgDecryptionException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DecryptionException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DECRYPTION_EXCEPTION_H_
-#define MG_DECRYPTION_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a decryption error occurs.
-///
-class MG_FOUNDATION_API MgDecryptionException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDecryptionException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDecryptionException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    /// \param thirdPartyMessage
-    /// Exception message from the third party component
-    ///
-    MgDecryptionException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDecryptionException object.
-    ///
-    virtual ~MgDecryptionException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDecryptionException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDecryptionException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDirectoryNotFoundException, MgFileIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDirectoryNotFoundException object.
-///
-MgDirectoryNotFoundException::MgDirectoryNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgFileIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDirectoryNotFoundException::~MgDirectoryNotFoundException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DirectoryNotFoundException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DIRECTORY_NOT_FOUND_EXCEPTION_H_
-#define MG_DIRECTORY_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a directory cannot be found.
-///
-class MG_FOUNDATION_API MgDirectoryNotFoundException : public MgFileIoException
-{
-    DECLARE_CLASSNAME(MgDirectoryNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDirectoryNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    /// \param arguments
-    /// Collection of arguments associated with the exception
-    ///
-    MgDirectoryNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDirectoryNotFoundException object.
-    ///
-    virtual ~MgDirectoryNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDirectoryNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDirectoryNotFoundException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDivideByZeroException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDivideByZeroException object.
-///
-MgDivideByZeroException::MgDivideByZeroException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDivideByZeroException::~MgDivideByZeroException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DivideByZeroException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DIVIDE_BY_ZERO_EXCEPTION_H_
-#define MG_DIVIDE_BY_ZERO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when there is an attempt to divide an integral or decimal value by zero.
-///
-class MG_FOUNDATION_API MgDivideByZeroException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgDivideByZeroException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDivideByZeroException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgDivideByZeroException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDivideByZeroException object.
-    ///
-    virtual ~MgDivideByZeroException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDivideByZeroException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDivideByZeroException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DomainException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DomainException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DomainException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDomainException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDomainException object.
-///
-MgDomainException::MgDomainException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDomainException::~MgDomainException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DomainException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DomainException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DomainException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,73 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DOMAIN_EXCEPTION_H_
-#define MG_DOMAIN_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a value is used outside of its domain of definition.
-///
-/// \remarks
-/// For example, computing arccosine on a value whose absolute value is
-/// greater than one would raise a domain exception.
-///
-class MG_FOUNDATION_API MgDomainException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgDomainException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDomainException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgDomainException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDomainException object.
-    ///
-    virtual ~MgDomainException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDomainException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDomainException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDuplicateDirectoryException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDuplicateDirectoryException object.
-///
-MgDuplicateDirectoryException::MgDuplicateDirectoryException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDuplicateDirectoryException object.
-///
-MgDuplicateDirectoryException::~MgDuplicateDirectoryException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DuplicateDirectoryException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DUPLICATE_DIRECTORY_EXCEPTION_H_
-#define MG_DUPLICATE_DIRECTORY_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to create a directory that already exists.
-///
-class MG_FOUNDATION_API MgDuplicateDirectoryException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDuplicateDirectoryException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDuplicateDirectoryException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgDuplicateDirectoryException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDuplicateDirectoryException object.
-    ///
-    virtual ~MgDuplicateDirectoryException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDuplicateDirectoryException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDuplicateDirectoryException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDuplicateFileException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDuplicateFileException object.
-///
-MgDuplicateFileException::MgDuplicateFileException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgDuplicateFileException object.
-///
-MgDuplicateFileException::~MgDuplicateFileException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DuplicateFileException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_DUPLICATE_FILE_EXCEPTION_H_
-#define MG_DUPLICATE_FILE_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to create a file that already exists.
-///
-class MG_FOUNDATION_API MgDuplicateFileException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgDuplicateFileException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDuplicateFileException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgDuplicateFileException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgDuplicateFileException object.
-    ///
-    virtual ~MgDuplicateFileException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDuplicateFileException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDuplicateFileException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgDuplicateObjectException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgDuplicateNameException object.
-///
-MgDuplicateObjectException::MgDuplicateObjectException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgDuplicateObjectException::~MgDuplicateObjectException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/DuplicateObjectException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_DUPLICATE_OBJECT_EXCEPTION_H_
-#define MG_DUPLICATE_OBJECT_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a duplicate object is found.
-///
-class MG_FOUNDATION_API MgDuplicateObjectException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgDuplicateObjectException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgDuplicateObjectException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgDuplicateObjectException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDuplicateObjectException object.
-    ///
-    virtual ~MgDuplicateObjectException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgDuplicateObjectException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgDuplicateObjectException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgEncryptionException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgEncryptionException object.
-///
-MgEncryptionException::MgEncryptionException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgEncryptionException object.
-///
-MgEncryptionException::~MgEncryptionException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/EncryptionException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_ENCRYPTION_EXCEPTION_H_
-#define MG_ENCRYPTION_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an encryption error is encountered.
-///
-class MG_FOUNDATION_API MgEncryptionException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgEncryptionException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgEncryptionException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgEncryptionException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgEncryptionException object.
-    ///
-    virtual ~MgEncryptionException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgEncryptionException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgEncryptionException;
-};
-
-#endif

Modified: sandbox/adsk/vik/Common/Foundation/Exception/ExceptionDefs.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ExceptionDefs.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ExceptionDefs.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -60,13 +60,13 @@
         mgException = e;                                                      \
         mgException->AddStackTraceInfo(methodName, mgStackParams, __LINE__, __WFILE__);      \
     }                                                                         \
-    catch (exception& e)                                                      \
+    catch (exception& )                                                      \
     {                                                                         \
-        mgException = MgSystemException::Create(e, methodName, __LINE__, __WFILE__); \
+        mgException = new MgApplicationException(methodName, __LINE__, __WFILE__, NULL, L"STL Exception", NULL); \
     }                                                                         \
     catch (...)                                                               \
     {                                                                         \
-        mgException = new MgUnclassifiedException(methodName, __LINE__, __WFILE__, NULL, L"", NULL); \
+        mgException = new MgApplicationException(methodName, __LINE__, __WFILE__, NULL, L"", NULL); \
     }                                                                         \
 
 #define MG_THROW()                                                            \

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgFileIoException, MgIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgFileIoException object.
-///
-MgFileIoException::MgFileIoException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgFileIoException::~MgFileIoException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/FileIoException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_FILE_IO_EXCEPTION_H_
-#define MG_FILE_IO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a file I/O error occurs.
-///
-class MG_FOUNDATION_API MgFileIoException : public MgIoException
-{
-    DECLARE_CLASSNAME(MgFileIoException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgFileIoException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgFileIoException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgFileIoException object.
-    ///
-    virtual ~MgFileIoException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgFileIoException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgFileIoException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgFileNotFoundException, MgFileIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgFileNotFoundException object.
-///
-MgFileNotFoundException::MgFileNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgFileIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgFileNotFoundException::~MgFileNotFoundException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/FileNotFoundException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_FILE_NOT_FOUND_EXCEPTION_H_
-#define MG_FILE_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to access a file that cannot be found.
-///
-class MG_FOUNDATION_API MgFileNotFoundException : public MgFileIoException
-{
-    DECLARE_CLASSNAME(MgFileNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgFileNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgFileNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgFileNotFoundException object.
-    ///
-    virtual ~MgFileNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgFileNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgFileNotFoundException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgGridDensityException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgGridDensityException object.
-///
-MgGridDensityException::MgGridDensityException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgGridDensityException object.
-///
-MgGridDensityException::~MgGridDensityException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/GridDensityException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_GRID_DENSITY_EXCEPTION_H_
-#define MG_GRID_DENSITY_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs in a date/time routine.
-///
-class MG_FOUNDATION_API MgGridDensityException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgGridDensityException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgGridDensityException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    /// \param thirdPartyMessage
-    /// Exception message from the third party component
-    ///
-    MgGridDensityException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgGridDensityException object.
-    ///
-    virtual ~MgGridDensityException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgGridDensityException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgGridDensityException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgIndexOutOfRangeException, MgOutOfRangeException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgIndexOutOfRangeException object.
-///
-MgIndexOutOfRangeException::MgIndexOutOfRangeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgOutOfRangeException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgIndexOutOfRangeException::~MgIndexOutOfRangeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/IndexOutOfRangeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INDEX_OUT_OF_RANGE_EXCEPTION_H_
-#define MG_INDEX_OUT_OF_RANGE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to
-/// access an element of an array with an index that is
-/// outside the bounds of the array.
-///
-class MG_FOUNDATION_API MgIndexOutOfRangeException : public MgOutOfRangeException
-{
-    DECLARE_CLASSNAME(MgIndexOutOfRangeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgIndexOutOfRangeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgIndexOutOfRangeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgIndexOutOfRangeException object.
-    ///
-    virtual ~MgIndexOutOfRangeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgIndexOutOfRangeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgIndexOutOfRangeException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,102 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidArgumentException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidArgumentException object.
-///
-MgInvalidArgumentException::MgInvalidArgumentException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidArgumentException::~MgInvalidArgumentException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-///<summary>
-/// Retrieve the formatted exception message for the specified locale.
-/// <param name="nLocale">The locale identifier to format the message text.</param>
-///
-///
-STRING MgInvalidArgumentException::GetExceptionMessage(CREFSTRING locale) throw()
-{
-    //
-    // Format:
-    //
-    //  { Description on WHAT the exception is }
-    //  [ Reason on WHY the exception occurs ]
-    //
-    // Example:
-    //
-    //  Invalid argument(s):
-    //      [1] = 2005-12-08T15:30
-    //  The XML date time is invalid because not all of the fields were found.
-    //
-
-    MG_TRY()
-
-    // Note that for any empty string argument, MgResources::BlankArgument
-    // must be used to prevent MgProperty::SetName (via MgStringCollection::Add)
-    // from infinitely throwing the MgInvalidArgumentException.
-
-    if (m_message.empty())
-    {
-        m_message = FormatMessage(locale, MgResources::Resource_Exception_Section,
-            GetClassName(), NULL);
-
-        const INT32 numArgsPerLine = 2;
-        const INT32 size = m_whatArguments.GetCount();
-        assert(0 == (size % numArgsPerLine));
-
-        for (INT32 i = 1; i < size; i += numArgsPerLine)
-        {
-            STRING argIndex = m_whatArguments.GetItem(i-1);
-            STRING argValue = m_whatArguments.GetItem(i);
-
-            m_message += L"\n\t[";
-            m_message += argIndex;
-            m_message += L"] = \"";
-            m_message += argValue;
-            m_message += L"\"";
-        }
-
-        if (!m_whyMessageId.empty())
-        {
-            m_message += L"\n";
-            m_message += FormatMessage(locale, MgResources::ErrorDescription,
-                m_whyMessageId, &m_whyArguments);
-        }
-    }
-
-    MG_CATCH_AND_RELEASE()
-
-    return m_message;
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidArgumentException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,83 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_ARGUMENT_EXCEPTION_H_
-#define MG_INVALID_ARGUMENT_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-////////////////////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a method is called with an invalid argument.
-///
-class MG_FOUNDATION_API MgInvalidArgumentException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidArgumentException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidArgumentException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidArgumentException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidArgumentException object.
-    ///
-    virtual ~MgInvalidArgumentException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidArgumentException)
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Retrieve the formatted exception message for the specified locale.
-    ///
-    /// \param locale
-    /// The locale identifier to format the details text.
-    /// Locale codes are 2 letters language codes defined by ISO 639-1.
-    /// Please refer to  http://www.loc.gov/standards/iso639-2/englangn.html
-    ///
-    /// \return
-    /// Formatted exception message
-    ///
-    virtual STRING GetExceptionMessage(CREFSTRING locale) throw();
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidArgumentException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCastException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCastException object.
-///
-MgInvalidCastException::MgInvalidCastException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCastException::~MgInvalidCastException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidCastException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_CAST_EXCEPTION_H_
-#define MG_INVALID_CAST_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting an invalid type cast or explicit conversion.
-///
-class MG_FOUNDATION_API MgInvalidCastException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidCastException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCastException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidCastException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCastException object.
-    ///
-    virtual ~MgInvalidCastException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCastException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidCastException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidMimeTypeException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidMimeTypeException object.
-///
-MgInvalidMimeTypeException::MgInvalidMimeTypeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgInvalidMimeTypeException object.
-///
-MgInvalidMimeTypeException::~MgInvalidMimeTypeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidMimeTypeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MGINVALIDMIMETYPEEXCEPTION_H_
-#define MGINVALIDMIMETYPEEXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an invalid mime type is detected.
-///
-class MG_FOUNDATION_API MgInvalidMimeTypeException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidMimeTypeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidMimeTypeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidMimeTypeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgInvalidMimeTypeException object.
-    ///
-    virtual ~MgInvalidMimeTypeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidMimeTypeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidMimeTypeException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidOperationException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidOperationException object.
-///
-MgInvalidOperationException::MgInvalidOperationException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidOperationException::~MgInvalidOperationException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidOperationException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_OPERATION_EXCEPTION_H_
-#define MG_INVALID_OPERATION_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a method call is invalid for the object's current state.
-///
-class MG_FOUNDATION_API MgInvalidOperationException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidOperationException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidOperationException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidOperationException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidOperationException object.
-    ///
-    virtual ~MgInvalidOperationException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidOperationException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidOperationException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidPropertyTypeException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidPropertyTypeException object.
-///
-MgInvalidPropertyTypeException::MgInvalidPropertyTypeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidPropertyTypeException::~MgInvalidPropertyTypeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidPropertyTypeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_PROPERTY_TYPE_EXCEPTION_H_
-#define MG_INVALID_PROPERTY_TYPE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an invalid property type is used.
-///
-class MG_FOUNDATION_API MgInvalidPropertyTypeException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgInvalidPropertyTypeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidPropertyTypeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidPropertyTypeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidPropertyTypeException object.
-    ///
-    virtual ~MgInvalidPropertyTypeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidPropertyTypeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidPropertyTypeException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidStreamHeaderException, MgStreamIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidStreamHeaderException object.
-///
-MgInvalidStreamHeaderException::MgInvalidStreamHeaderException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgStreamIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidStreamHeaderException::~MgInvalidStreamHeaderException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/InvalidStreamHeaderException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_STREAM_HEADER_EXCEPTION_H_
-#define MG_INVALID_STREAM_HEADER_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a stream header is invalid.
-///
-class MG_FOUNDATION_API MgInvalidStreamHeaderException : public MgStreamIoException
-{
-    DECLARE_CLASSNAME(MgInvalidStreamHeaderException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidStreamHeaderException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidStreamHeaderException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidStreamHeaderException object.
-    ///
-    virtual ~MgInvalidStreamHeaderException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidStreamHeaderException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgInvalidStreamHeaderException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/IoException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/IoException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/IoException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgIoException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgIoException object.
-///
-MgIoException::MgIoException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgIoException::~MgIoException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/IoException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/IoException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/IoException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_IO_EXCEPTION_H_
-#define MG_IO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an I/O error occurs.
-///
-class MG_FOUNDATION_API MgIoException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgIoException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgIoException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgIoException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgIoException object.
-    ///
-    virtual ~MgIoException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgIoException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgIoException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/LengthException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/LengthException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/LengthException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgLengthException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidArgumentException object.
-///
-MgLengthException::MgLengthException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgLengthException::~MgLengthException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/LengthException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/LengthException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/LengthException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,68 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_LENGTH_EXCEPTION_H_
-#define MG_LENGTH_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a length of some item does not match the expected length.
-class MG_FOUNDATION_API MgLengthException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgLengthException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgLengthException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgLengthException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgDomainException object.
-    ///
-    virtual ~MgLengthException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgLengthException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgLengthException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/LogicException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/LogicException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/LogicException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgLogicException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgLogicException object.
-///
-MgLogicException::MgLogicException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgLogicException::~MgLogicException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/LogicException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/LogicException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/LogicException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_LOGIC_EXCEPTION_H_
-#define MG_LOGIC_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown to report errors presumably detectable
-/// before the program executes, such as violations of logical preconditions.
-///
-class MG_FOUNDATION_API MgLogicException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgLogicException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgLogicException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgLogicException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgLogicException object.
-    ///
-    virtual ~MgLogicException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgLogicException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgLogicException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNotFiniteNumberException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNotFiniteNumberException object.
-///
-MgNotFiniteNumberException::MgNotFiniteNumberException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNotFiniteNumberException::~MgNotFiniteNumberException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NotFiniteNumberException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NOT_FINITE_NUMBER_EXCEPTION_H_
-#define MG_NOT_FINITE_NUMBER_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a floating-point value is positive infinity,
-/// negative infinity, or Not-a-Number (NaN).
-///
-class MG_FOUNDATION_API MgNotFiniteNumberException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNotFiniteNumberException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNotFiniteNumberException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgNotFiniteNumberException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNotFiniteNumberException object.
-    ///
-    virtual ~MgNotFiniteNumberException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNotFiniteNumberException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNotFiniteNumberException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNotImplementedException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNotImplementedException object.
-///
-MgNotImplementedException::MgNotImplementedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNotImplementedException::~MgNotImplementedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NotImplementedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NOT_IMPLEMENTED_EXCEPTION_H_
-#define MG_NOT_IMPLEMENTED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an operation that has not been implemented yet is invoked.
-///
-class MG_FOUNDATION_API MgNotImplementedException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNotImplementedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNotImplementedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgNotImplementedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNotImplementedException object.
-    ///
-    virtual ~MgNotImplementedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNotImplementedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNotImplementedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNullArgumentException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNullArgumentException object.
-///
-MgNullArgumentException::MgNullArgumentException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNullArgumentException::~MgNullArgumentException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NullArgumentException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NULL_ARGUMENT_EXCEPTION_H_
-#define MG_NULL_ARGUMENT_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a null argument is passed to a method
-/// that expects a non-null value.
-///
-class MG_FOUNDATION_API MgNullArgumentException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNullArgumentException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNullArgumentException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgNullArgumentException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNullArgumentException object.
-    ///
-    virtual ~MgNullArgumentException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNullArgumentException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNullArgumentException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNullPropertyValueException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNullPropertyValueException object.
-///
-MgNullPropertyValueException::MgNullPropertyValueException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNullPropertyValueException::~MgNullPropertyValueException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NullPropertyValueException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NULL_PROPERTY_VALUE_EXCEPTION_H_
-#define MG_NULL_PROPERTY_VALUE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a property value is null.
-///
-class MG_FOUNDATION_API MgNullPropertyValueException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgNullPropertyValueException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNullPropertyValueException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgNullPropertyValueException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNullPropertyValueException object.
-    ///
-    virtual ~MgNullPropertyValueException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNullPropertyValueException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNullPropertyValueException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgNullReferenceException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgNullReferenceException object.
-///
-MgNullReferenceException::MgNullReferenceException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgNullReferenceException::~MgNullReferenceException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/NullReferenceException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_NULL_REFERENCE_EXCEPTION_H_
-#define MG_NULL_REFERENCE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when there is an attempt to dereference a null object reference.
-///
-class MG_FOUNDATION_API MgNullReferenceException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgNullReferenceException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgNullReferenceException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgNullReferenceException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgNullReferenceException object.
-    ///
-    virtual ~MgNullReferenceException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgNullReferenceException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgNullReferenceException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgObjectNotFoundException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgObjectNotFoundException object.
-///
-MgObjectNotFoundException::MgObjectNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgObjectNotFoundException::~MgObjectNotFoundException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ObjectNotFoundException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OBJECT_NOT_FOUND_EXCEPTION_H_
-#define MG_OBJECT_NOT_FOUND_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when attempting to access an object
-/// that cannot be found.
-///
-class MG_FOUNDATION_API MgObjectNotFoundException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgObjectNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgObjectNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgObjectNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgObjectNotFoundException object.
-    ///
-    virtual ~MgObjectNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgObjectNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgObjectNotFoundException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgOutOfMemoryException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgOutOfMemoryException object.
-///
-MgOutOfMemoryException::MgOutOfMemoryException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgOutOfMemoryException::~MgOutOfMemoryException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/OutOfMemoryException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OUT_OF_MEMORY_EXCEPTION_H_
-#define MG_OUT_OF_MEMORY_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when required memory cannot be allocated.
-///
-class MG_FOUNDATION_API MgOutOfMemoryException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgOutOfMemoryException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgOutOfMemoryException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgOutOfMemoryException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgOutOfMemoryException object.
-    ///
-    virtual ~MgOutOfMemoryException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgOutOfMemoryException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgOutOfMemoryException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgOutOfRangeException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgOutOfRangeException object.
-///
-MgOutOfRangeException::MgOutOfRangeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgOutOfRangeException::~MgOutOfRangeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/OutOfRangeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,75 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OUT_OF_RANGE_EXCEPTION_H_
-#define MG_OUT_OF_RANGE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a parameter value passed to a method
-/// is not in the valid range specified by its documentation.
-///
-/// \remarks
-/// This exception is generally thrown by the collection classes when the
-/// index passed to a method is less than zero, or greater or equal to the
-/// number of elements in the collection.
-///
-class MG_FOUNDATION_API MgOutOfRangeException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgOutOfRangeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgOutOfRangeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgOutOfRangeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgOutOfRangeException object.
-    ///
-    virtual ~MgOutOfRangeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgOutOfRangeException)
-
-CLASS_ID:
-    static const INT32 m_cls_id = Foundation_Exception_MgOutOfRangeException;
-
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgOverflowException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgOverflowException object.
-///
-MgOverflowException::MgOverflowException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgOverflowException::~MgOverflowException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/OverflowException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,70 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_OVERFLOW_EXCEPTION_H_
-#define MG_OVERFLOW_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an arithmetic, casting, or conversion
-/// operation in a checked context results in an overflow.
-///
-class MG_FOUNDATION_API MgOverflowException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgOverflowException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgOverflowException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgOverflowException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgOverflowException object.
-    ///
-    virtual ~MgOverflowException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgOverflowException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgOverflowException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgPlatformNotSupportedException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgPlatformNotSupportedException object.
-///
-MgPlatformNotSupportedException::MgPlatformNotSupportedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgPlatformNotSupportedException::~MgPlatformNotSupportedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/PlatformNotSupportedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_PLATFORM_NOT_SUPPORTED_EXCEPTION_H_
-#define MG_PLATFORM_NOT_SUPPORTED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a feature does not run on a particular platform.
-///
-class MG_FOUNDATION_API MgPlatformNotSupportedException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgPlatformNotSupportedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgPlatformNotSupportedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgPlatformNotSupportedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgPlatformNotSupportedException object.
-    ///
-    virtual ~MgPlatformNotSupportedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgPlatformNotSupportedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgPlatformNotSupportedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgResourceTagNotFoundException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgResourceTagNotFoundException object.
-///
-MgResourceTagNotFoundException::MgResourceTagNotFoundException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the MgResourceTagNotFoundException object.
-///
-MgResourceTagNotFoundException::~MgResourceTagNotFoundException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ResourceTagNotFoundException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,65 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_RESOURCE_TAG_NOT_FOUND_EXCEPTION_H_
-#define MG_RESOURCE_TAG_NOT_FOUND_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a resource tag is not found.
-///
-class MG_FOUNDATION_API MgResourceTagNotFoundException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgResourceTagNotFoundException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgResourceTagNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param arguments
-    /// Collection of arguments associated with the exception.
-    ///
-    MgResourceTagNotFoundException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destruct the MgResourceTagNotFoundException object.
-    ///
-    virtual ~MgResourceTagNotFoundException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgResourceTagNotFoundException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgResourceTagNotFoundException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgResourcesException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgResourcesException object.
-///
-MgResourcesException::MgResourcesException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgResourcesException::~MgResourcesException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ResourcesException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_RESOURCES_EXCEPTION_H_
-#define MG_RESOURCES_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs with the resources.
-///
-class MG_FOUNDATION_API MgResourcesException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgResourcesException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgFileNotFoundException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgResourcesException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgResourcesException object.
-    ///
-    virtual ~MgResourcesException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgResourcesException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgResourcesException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,50 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgResourcesLoadFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgResourcesLoadFailedException object.
-///
-MgResourcesLoadFailedException::MgResourcesLoadFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgResourcesLoadFailedException::~MgResourcesLoadFailedException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Retrieve the formatted exception message for the specified locale.
-///
-STRING MgResourcesLoadFailedException::GetExceptionMessage(CREFSTRING locale) throw()
-{
-    return MgException::GetExceptionMessage(locale, MgResources::FailedToLoadResourcesFile);
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ResourcesLoadFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,86 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_RESOURCES_LOADFAILED_EXCEPTION_H_
-#define MG_RESOURCES_LOADFAILED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs loading resources.
-/// \remarks
-/// Resources may fail to load if the file itself is not found or if there is
-/// a syntax error in the file.
-///
-class MG_FOUNDATION_API MgResourcesLoadFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgResourcesLoadFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgResourcesLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgResourcesLoadFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgResourcesException object.
-    ///
-    virtual ~MgResourcesLoadFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgResourcesLoadFailedException)
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Retrieve the formatted exception message for the specified locale.
-    ///
-    /// \param locale
-    /// The locale identifier to format the details text.
-    /// Locale codes are 2 letters language codes defined by ISO 639-1.
-    /// Please refer to  http://www.loc.gov/standards/iso639-2/englangn.html
-    ///
-    /// \return
-    /// Formatted exception message
-    ///
-    virtual STRING GetExceptionMessage(CREFSTRING locale) throw();
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgResourcesLoadFailedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgRuntimeException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgRuntimeException object.
-///
-MgRuntimeException::MgRuntimeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgRuntimeException::~MgRuntimeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/RuntimeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,74 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_RUNTIME_EXCEPTION_H_
-#define MG_RUNTIME_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an internal runtime error occurs.
-///
-/// \remarks
-/// Examples include a missing or invalid object type id or a failure on file input/output.
-/// This exception generally does not reflect an error in the application's
-/// logic but instead denotes an unexpected runtime situation.
-///
-class MG_FOUNDATION_API MgRuntimeException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgRuntimeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgRuntimeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgRuntimeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgRuntimeException object.
-    ///
-    virtual ~MgRuntimeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgRuntimeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgRuntimeException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgStreamIoException, MgIoException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgStreamIoException object.
-///
-MgStreamIoException::MgStreamIoException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgIoException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgStreamIoException::~MgStreamIoException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/StreamIoException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_STREAM_IO_EXCEPTION_H_
-#define MG_STREAM_IO_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when low-level stream I/O problems occur
-/// during communication between server and web-tier.
-///
-class MG_FOUNDATION_API MgStreamIoException : public MgIoException
-{
-    DECLARE_CLASSNAME(MgStreamIoException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgStreamIoException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgStreamIoException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgStreamIoException object.
-    ///
-    virtual ~MgStreamIoException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgStreamIoException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgStreamIoException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/SystemException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/SystemException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/SystemException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,145 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-#include <exception>
-// The following three headers are needed to compile under Linux.
-#include <stdexcept>
-#include <typeinfo>
-#include <iostream>
-
-using namespace std;
-
-IMPLEMENT_EXCEPTION_ABSTRACT(MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-///<summary>
-/// Construct a MgSystemException object.
-///
-MgSystemException::MgSystemException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgSystemException::~MgSystemException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-///<summary>
-/// Create a MgException from mapping a standard CPP exception to a MgException.
-///</summary>
-///
-MgException* MgSystemException::Create(exception& stdLibException,
-    CREFSTRING methodName, INT32 lineNumber, CREFSTRING fileName) throw()
-{
-    // The following string conversion is used to detect whether or not
-    // the given error message is unicode compliant.
-    // Without this check, the server will not be able to serialize
-    // this exception object correctly.
-
-    STRING messageId;
-    MgStringCollection arguments;
-    bool unicodeCompliant = false;
-
-    MG_TRY()
-
-    STRING wcStr;
-
-    MgUtil::MultiByteToWideChar(stdLibException.what(), wcStr);
-    arguments.Add(wcStr);
-
-    unicodeCompliant = true;
-
-    MG_CATCH_AND_RELEASE()
-
-    if (unicodeCompliant)
-    {
-        messageId = L"MgFormatInnerExceptionMessage";
-    }
-    else
-    {
-        messageId = L"MgFailedToRetrieveSystemExceptionMesage";
-        arguments.Clear();
-    }
-
-    // Use typeid to determine the specific standard library exception type.
-    // An equivalent MgException* is returned.
-    // If typeid cannot determine the specific standard library exception type
-    // a new MgUnclassifiedException is returned.
-#if WANT_ACE
-    if (typeid(stdLibException) == typeid(std::domain_error))
-    {
-        return new MgDomainException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(invalid_argument))
-    {
-        return new MgInvalidArgumentException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(length_error))
-    {
-        return new MgLengthException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(overflow_error))
-    {
-        return new MgOverflowException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(out_of_range)
-          || typeid(stdLibException) == typeid(range_error))
-    {
-        return new MgOutOfRangeException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(underflow_error))
-    {
-        return new MgUnderflowException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(bad_alloc))
-    {
-        return new MgOutOfMemoryException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(bad_cast))
-    {
-        return new MgInvalidCastException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(logic_error))
-    {
-        return new MgLogicException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else if (typeid(stdLibException) == typeid(bad_exception)
-          || typeid(stdLibException) == typeid(bad_typeid)
-          || typeid(stdLibException) == typeid(ios_base::failure)
-          || typeid(stdLibException) == typeid(runtime_error))
-    {
-        return new MgRuntimeException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-    else
-    {
-        return new MgUnclassifiedException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-    }
-#else
-    return new MgRuntimeException(methodName, lineNumber, fileName, NULL, messageId, &arguments);
-#endif
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/SystemException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/SystemException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/SystemException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,78 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_SYSTEM_EXCEPTION_H_
-#define MG_SYSTEM_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-////////////////////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Base class for all exceptions representing a system error.
-///
-class MG_FOUNDATION_API MgSystemException : public MgException
-{
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgSystemException object.
-    ///
-    virtual ~MgSystemException() throw();
-
-INTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Create a MgException from mapping a standard CPP exception to a MgException.
-    ///
-    static MgException* Create(exception& stdLibException,
-        CREFSTRING methodName, INT32 lineNumber, CREFSTRING fileName) throw();
-
-protected:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgSystemException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgSystemException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_ABSTRACT(MgSystemException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgSystemException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgTemporaryFileNotAvailableException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgTemporaryFileNotAvailableException object.
-///
-MgTemporaryFileNotAvailableException::MgTemporaryFileNotAvailableException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgTemporaryFileNotAvailableException::~MgTemporaryFileNotAvailableException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/TemporaryFileNotAvailableException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_TEMPORARY_FILE_NOT_AVAILABLE_EXCEPTION_H_
-#define MG_TEMPORARY_FILE_NOT_AVAILABLE_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a temporary file is not available.
-///
-class MG_FOUNDATION_API MgTemporaryFileNotAvailableException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgTemporaryFileNotAvailableException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgTemporaryFileNotAvailableException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgTemporaryFileNotAvailableException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgTemporaryFileNotAvailableException object
-    ///
-    virtual ~MgTemporaryFileNotAvailableException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgTemporaryFileNotAvailableException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgTemporaryFileNotAvailableException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,85 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_ABSTRACT(MgThirdPartyException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgThirdPartyException object.
-///
-MgThirdPartyException::MgThirdPartyException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments),
-    m_errorCode(0)
-{
-    // The following string conversion is used to detect whether or not
-    // the given error message is unicode compliant.
-    // Without this check, the server will not be able to serialize
-    // this exception object correctly.
-
-    bool unicodeCompliant = false;
-
-    MG_TRY()
-
-    string mbStr;
-
-    for (INT32 i = 0; i < m_whyArguments.GetCount(); ++i)
-    {
-        MgUtil::WideCharToMultiByte(m_whyArguments.GetItem(i), mbStr);
-    }
-
-    unicodeCompliant = true;
-
-    MG_CATCH_AND_RELEASE()
-
-    if (!unicodeCompliant)
-    {
-        m_whyMessageId = L"MgFailedToRetrieveThirdPartyExceptionMesage";
-        m_whyArguments.Clear();
-    }
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgThirdPartyException::~MgThirdPartyException() throw()
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Get the error code.
-///
-INT32 MgThirdPartyException::GetErrorCode() throw()
-{
-    return m_errorCode;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Set the error code.
-///
-void MgThirdPartyException::SetErrorCode(INT32 errorCode) throw()
-{
-    m_errorCode = errorCode;
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/ThirdPartyException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,83 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_THIRD_PARTY_EXCEPTION_H_
-#define MG_THIRD_PARTY_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Base class for third party exceptions.
-///
-/// \remarks
-/// Third party exceptions are thrown from components such as FDO
-/// that are used by \ProdName but are not part of
-/// \ProdName itself.
-///
-class MG_FOUNDATION_API MgThirdPartyException : public MgException
-{
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgThirdPartyException object.
-    ///
-    virtual ~MgThirdPartyException() throw();
-
-INTERNAL_API:
-
-    INT32 GetErrorCode() throw();
-    void SetErrorCode(INT32 errorCode) throw();
-
-protected:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgThirdPartyException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgThirdPartyException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_ABSTRACT(MgThirdPartyException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgThirdPartyException;
-
-private:
-
-    INT32 m_errorCode;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgUnclassifiedException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgUnclassifiedException object.
-///
-MgUnclassifiedException::MgUnclassifiedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgUnclassifiedException::~MgUnclassifiedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/UnclassifiedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,72 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_UNCLASSIFIED_EXCEPTION_H_
-#define MG_UNCLASSIFIED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the server or web-tier does not know the
-/// cause of the actual problem.
-///
-class MG_FOUNDATION_API MgUnclassifiedException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgUnclassifiedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgUnclassifiedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgUnclassifiedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgUnclassifiedException object.
-    ///
-    virtual ~MgUnclassifiedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgUnclassifiedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgUnclassifiedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgUnderflowException, MgSystemException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgUnderflowException object.
-///
-MgUnderflowException::MgUnderflowException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgSystemException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgUnderflowException::~MgUnderflowException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/UnderflowException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_UNDERFLOW_EXCEPTION_H_
-#define MG_UNDERFLOW_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an arithmetic underflow occurs.
-///
-class MG_FOUNDATION_API MgUnderflowException : public MgSystemException
-{
-    DECLARE_CLASSNAME(MgUnderflowException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgUnderflowException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgUnderflowException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgUnderflowException object.
-    ///
-    virtual ~MgUnderflowException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgUnderflowException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgUnderflowException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/XmlException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/XmlException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/XmlException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgXmlException, MgThirdPartyException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgXmlException object.
-///
-MgXmlException::MgXmlException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgThirdPartyException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgXmlException::~MgXmlException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/XmlException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/XmlException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/XmlException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_XML_EXCEPTION_H_
-#define MG_XML_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs while processing XML.
-///
-class MG_FOUNDATION_API MgXmlException : public MgThirdPartyException
-{
-    DECLARE_CLASSNAME(MgXmlException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgXmlException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgXmlException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgXmlException object.
-    ///
-    virtual ~MgXmlException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgXmlException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgXmlException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "Foundation.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgXmlParserException, MgThirdPartyException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgXmlParserException object.
-///
-MgXmlParserException::MgXmlParserException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgThirdPartyException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgXmlParserException::~MgXmlParserException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Exception/XmlParserException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,71 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_XML_PARSER_EXCEPTION_H_
-#define MG_XML_PARSER_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-#include "Foundation.h"
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Wrapper for exceptions thrown from the Xerces XML parser.
-///
-class MG_FOUNDATION_API MgXmlParserException : public MgThirdPartyException
-{
-    DECLARE_CLASSNAME(MgXmlParserException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgXmlParserException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgXmlParserException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgXmlParserException object.
-    ///
-    virtual ~MgXmlParserException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgXmlParserException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Foundation_Exception_MgXmlParserException;
-};
-
-#endif

Modified: sandbox/adsk/vik/Common/Foundation/Foundation.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Foundation.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Foundation.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -80,6 +80,73 @@
 #include "System/ByteSourceImpl.h"
 #include "Data/ByteSource.h"
 #include "Data/ByteSink.h"
+
+#include "Exception/ClassNotFoundException.h"
+#include "Exception/ConfigurationException.h"
+#include "Exception/ConfigurationLoadFailedException.h"
+#include "Exception/ConfigurationSaveFailedException.h"
+#include "Exception/DateTimeException.h"
+#include "Exception/DecryptionException.h"
+#include "Exception/DirectoryNotFoundException.h"
+#include "Exception/DivideByZeroException.h"
+#include "Exception/DomainException.h"
+#include "Exception/DuplicateDirectoryException.h"
+#include "Exception/DuplicateFileException.h"
+#include "Exception/DuplicateObjectException.h"
+#include "Exception/EncryptionException.h"
+#include "Exception/FileNotFoundException.h"
+#include "Exception/GridDensityException.h"
+#include "Exception/IndexOutOfRangeException.h"
+#include "Exception/InvalidArgumentException.h"
+#include "Exception/InvalidCastException.h"
+#include "Exception/InvalidMimeTypeException.h"
+#include "Exception/InvalidOperationException.h"
+#include "Exception/InvalidPropertyTypeException.h"
+#include "Exception/InvalidStreamHeaderException.h"
+#include "Exception/LengthException.h"
+#include "Exception/LogicException.h"
+#include "Exception/NotFiniteNumberException.h"
+#include "Exception/NotImplementedException.h"
+#include "Exception/NullArgumentException.h"
+#include "Exception/NullPropertyValueException.h"
+#include "Exception/NullReferenceException.h"
+#include "Exception/ObjectNotFoundException.h"
+#include "Exception/OutOfMemoryException.h"
+#include "Exception/OverflowException.h"
+#include "Exception/PlatformNotSupportedException.h"
+#include "Exception/ResourcesException.h"
+#include "Exception/ResourcesLoadFailedException.h"
+#include "Exception/ResourceTagNotFoundException.h"
+#include "Exception/RuntimeException.h"
+#include "Exception/TemporaryFileNotAvailableException.h"
+#include "Exception/ThirdPartyException.h"
+#include "Exception/UnclassifiedException.h"
+#include "Exception/UnderflowException.h"
+#include "Exception/XmlException.h"
+#include "Exception/XmlParserException.h"
+#include "Exception/SystemException.h"
+#include "Exception/OutOfRangeException.h"
+#include "Exception/IoException.h"
+#include "Exception/FileIoException.h"
+#include "Exception/StreamIoException.h"
+#include "Exception/ArgumentOutOfRangeException.h"
+
+#include "System/PacketStructure.h"
+#include "System/StreamData.h"
+#include "System/PacketParser.h"
+#include "System/StreamHeader.h"
+#include "System/StreamHelper.h"
+#include "System/AceStreamHelper.h"
+#include "System/MemoryStreamHelper.h"
+#include "System/StreamReader.h"
+#include "System/StreamWriter.h"
+#include "System/Stream.h"
+#include "System/StreamParser.h"
+
+#include "System/ByteSourceFileImpl.h"
+#include "System/ByteSourceMemoryImpl.h"
+
+
 #else //WANT_ACE
 
 #include <assert.h>
@@ -99,22 +166,9 @@
 #include "System/GuardDisposable.h"
 #include "System/Serializable.h"
 #include "System/NamedSerializable.h"
-#include "Data/Byte.h"
 #include "Data/MimeType.h"
 #include "Data/ByteReader.h"
 
-#include "System/PacketStructure.h"
-#include "System/StreamData.h"
-#include "System/PacketParser.h"
-#include "System/StreamHeader.h"
-#include "System/StreamHelper.h"
-#include "System/AceStreamHelper.h"
-#include "System/MemoryStreamHelper.h"
-#include "System/StreamReader.h"
-#include "System/StreamWriter.h"
-#include "System/Stream.h"
-#include "System/StreamParser.h"
-
 #include "System/FoundationUnicodeString.h"
 #include "Data/Collection.h"
 #include "System/DisposableCollection.h"
@@ -141,63 +195,10 @@
 // Base exception classes and defines
 #include "Exception/ExceptionDefs.h"
 #include "Exception/Exception.h"
-#include "Exception/SystemException.h"
-#include "Exception/OutOfRangeException.h"
-#include "Exception/IoException.h"
-#include "Exception/FileIoException.h"
-#include "Exception/StreamIoException.h"
-
 #include "Exception/ApplicationException.h"
-#include "Exception/ArgumentOutOfRangeException.h"
-#include "Exception/ClassNotFoundException.h"
-#include "Exception/ConfigurationException.h"
-#include "Exception/ConfigurationLoadFailedException.h"
-#include "Exception/ConfigurationSaveFailedException.h"
-#include "Exception/DateTimeException.h"
-#include "Exception/DecryptionException.h"
-#include "Exception/DirectoryNotFoundException.h"
-#include "Exception/DivideByZeroException.h"
-#include "Exception/DomainException.h"
-#include "Exception/DuplicateDirectoryException.h"
-#include "Exception/DuplicateFileException.h"
-#include "Exception/DuplicateObjectException.h"
-#include "Exception/EncryptionException.h"
-#include "Exception/FileNotFoundException.h"
-#include "Exception/GridDensityException.h"
-#include "Exception/IndexOutOfRangeException.h"
-#include "Exception/InvalidArgumentException.h"
-#include "Exception/InvalidCastException.h"
-#include "Exception/InvalidMimeTypeException.h"
-#include "Exception/InvalidOperationException.h"
-#include "Exception/InvalidPropertyTypeException.h"
-#include "Exception/InvalidStreamHeaderException.h"
-#include "Exception/LengthException.h"
-#include "Exception/LogicException.h"
-#include "Exception/NotFiniteNumberException.h"
-#include "Exception/NotImplementedException.h"
-#include "Exception/NullArgumentException.h"
-#include "Exception/NullPropertyValueException.h"
-#include "Exception/NullReferenceException.h"
-#include "Exception/ObjectNotFoundException.h"
-#include "Exception/OutOfMemoryException.h"
-#include "Exception/OverflowException.h"
-#include "Exception/PlatformNotSupportedException.h"
-#include "Exception/ResourcesException.h"
-#include "Exception/ResourcesLoadFailedException.h"
-#include "Exception/ResourceTagNotFoundException.h"
-#include "Exception/RuntimeException.h"
-#include "Exception/TemporaryFileNotAvailableException.h"
-#include "Exception/ThirdPartyException.h"
-#include "Exception/UnclassifiedException.h"
-#include "Exception/UnderflowException.h"
-#include "Exception/XmlException.h"
-#include "Exception/XmlParserException.h"
 #include "System/Mutex.h"
 
 
-#include "System/ByteSourceFileImpl.h"
-#include "System/ByteSourceMemoryImpl.h"
-
 #if WANT_ACE
 #if !defined (ACE_HAS_WCHAR)
 #error Please define ACE_HAS_WCHAR

Modified: sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj	2011-12-08 05:13:34 UTC (rev 6304)
@@ -195,12 +195,6 @@
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClCompile Include="Exception\ApplicationException.cpp" />
-    <ClCompile Include="Exception\ArgumentOutOfRangeException.cpp" />
-    <ClCompile Include="Exception\ClassNotFoundException.cpp" />
-    <ClCompile Include="Exception\DirectoryNotFoundException.cpp" />
-    <ClCompile Include="Exception\DuplicateDirectoryException.cpp" />
-    <ClCompile Include="Exception\DuplicateFileException.cpp" />
-    <ClCompile Include="Exception\DuplicateObjectException.cpp" />
     <ClCompile Include="Exception\Exception.cpp">
       <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
       <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
@@ -211,44 +205,8 @@
       <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.obj</ObjectFileName>
       <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
     </ClCompile>
-    <ClCompile Include="Exception\FileIoException.cpp" />
-    <ClCompile Include="Exception\FileNotFoundException.cpp" />
-    <ClCompile Include="Exception\GridDensityException.cpp" />
-    <ClCompile Include="Exception\IndexOutOfRangeException.cpp" />
-    <ClCompile Include="Exception\InvalidArgumentException.cpp" />
-    <ClCompile Include="Exception\InvalidOperationException.cpp" />
-    <ClCompile Include="Exception\InvalidPropertyTypeException.cpp" />
-    <ClCompile Include="Exception\IoException.cpp" />
-    <ClCompile Include="Exception\LogicException.cpp" />
-    <ClCompile Include="Exception\NotFiniteNumberException.cpp" />
-    <ClCompile Include="Exception\NotImplementedException.cpp" />
-    <ClCompile Include="Exception\NullArgumentException.cpp" />
-    <ClCompile Include="Exception\NullPropertyValueException.cpp" />
-    <ClCompile Include="Exception\NullReferenceException.cpp" />
-    <ClCompile Include="Exception\ObjectNotFoundException.cpp" />
-    <ClCompile Include="Exception\OutOfMemoryException.cpp" />
-    <ClCompile Include="Exception\OutOfRangeException.cpp" />
-    <ClCompile Include="Exception\OverflowException.cpp" />
-    <ClCompile Include="Exception\ResourcesException.cpp" />
-    <ClCompile Include="Exception\ResourcesLoadFailedException.cpp" />
-    <ClCompile Include="Exception\RuntimeException.cpp">
-      <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
-      <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
-      <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename)1.obj</ObjectFileName>
-      <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
-      <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
-      <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
-      <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.obj</ObjectFileName>
-      <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
-    </ClCompile>
-    <ClCompile Include="Exception\SystemException.cpp" />
-    <ClCompile Include="Exception\TemporaryFileNotAvailableException.cpp" />
-    <ClCompile Include="Exception\UnclassifiedException.cpp" />
     <ClCompile Include="Data\BatchPropertyCollection.cpp" />
-    <ClCompile Include="Data\Byte.cpp" />
-    <ClCompile Include="Data\ByteSource.cpp" />
     <ClCompile Include="Data\Collection.cpp" />
-    <ClCompile Include="Data\DateTime.cpp" />
     <ClCompile Include="Data\MimeType.cpp" />
     <ClCompile Include="Data\NamedCollection.cpp" />
     <ClCompile Include="Data\NullableProperty.cpp" />
@@ -284,43 +242,10 @@
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="Exception\ApplicationException.h" />
-    <ClInclude Include="Exception\ArgumentOutOfRangeException.h" />
-    <ClInclude Include="Exception\ClassNotFoundException.h" />
-    <ClInclude Include="Exception\DirectoryNotFoundException.h" />
-    <ClInclude Include="Exception\DuplicateDirectoryException.h" />
-    <ClInclude Include="Exception\DuplicateFileException.h" />
-    <ClInclude Include="Exception\DuplicateObjectException.h" />
     <ClInclude Include="Exception\Exception.h" />
     <ClInclude Include="Exception\ExceptionDefs.h" />
-    <ClInclude Include="Exception\FileIoException.h" />
-    <ClInclude Include="Exception\FileNotFoundException.h" />
-    <ClInclude Include="Exception\GridDensityException.h" />
-    <ClInclude Include="Exception\IndexOutOfRangeException.h" />
-    <ClInclude Include="Exception\InvalidArgumentException.h" />
-    <ClInclude Include="Exception\InvalidOperationException.h" />
-    <ClInclude Include="Exception\InvalidPropertyTypeException.h" />
-    <ClInclude Include="Exception\IoException.h" />
-    <ClInclude Include="Exception\LogicException.h" />
-    <ClInclude Include="Exception\NotFiniteNumberException.h" />
-    <ClInclude Include="Exception\NotImplementedException.h" />
-    <ClInclude Include="Exception\NullArgumentException.h" />
-    <ClInclude Include="Exception\NullPropertyValueException.h" />
-    <ClInclude Include="Exception\NullReferenceException.h" />
-    <ClInclude Include="Exception\ObjectNotFoundException.h" />
-    <ClInclude Include="Exception\OutOfMemoryException.h" />
-    <ClInclude Include="Exception\OutOfRangeException.h" />
-    <ClInclude Include="Exception\OverflowException.h" />
-    <ClInclude Include="Exception\ResourcesException.h" />
-    <ClInclude Include="Exception\ResourcesLoadFailedException.h" />
-    <ClInclude Include="Exception\RuntimeException.h" />
-    <ClInclude Include="Exception\SystemException.h" />
-    <ClInclude Include="Exception\TemporaryFileNotAvailableException.h" />
-    <ClInclude Include="Exception\UnclassifiedException.h" />
     <ClInclude Include="Data\BatchPropertyCollection.h" />
-    <ClInclude Include="Data\Byte.h" />
-    <ClInclude Include="Data\ByteSource.h" />
     <ClInclude Include="Data\Collection.h" />
-    <ClInclude Include="Data\DateTime.h" />
     <ClInclude Include="Data\FeaturePropertyType.h" />
     <ClInclude Include="Data\MimeType.h" />
     <ClInclude Include="Data\NamedCollection.h" />

Modified: sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj.filters
===================================================================
--- sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj.filters	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/Foundation.vcxproj.filters	2011-12-08 05:13:34 UTC (rev 6304)
@@ -15,108 +15,15 @@
     <ClCompile Include="Exception\ApplicationException.cpp">
       <Filter>Exception</Filter>
     </ClCompile>
-    <ClCompile Include="Exception\ArgumentOutOfRangeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ClassNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DirectoryNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateDirectoryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateFileException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\DuplicateObjectException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Exception\Exception.cpp">
       <Filter>Exception</Filter>
     </ClCompile>
-    <ClCompile Include="Exception\FileIoException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\FileNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\GridDensityException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\IndexOutOfRangeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidArgumentException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidOperationException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidPropertyTypeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\IoException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\LogicException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NotImplementedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NullArgumentException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NullPropertyValueException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NullReferenceException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ObjectNotFoundException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\OutOfMemoryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\OutOfRangeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ResourcesException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\ResourcesLoadFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\RuntimeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\SystemException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\TemporaryFileNotAvailableException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\UnclassifiedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Data\BatchPropertyCollection.cpp">
       <Filter>Data</Filter>
     </ClCompile>
-    <ClCompile Include="Data\Byte.cpp">
-      <Filter>Data</Filter>
-    </ClCompile>
-    <ClCompile Include="Data\ByteSource.cpp">
-      <Filter>Data</Filter>
-    </ClCompile>
     <ClCompile Include="Data\Collection.cpp">
       <Filter>Data</Filter>
     </ClCompile>
-    <ClCompile Include="Data\DateTime.cpp">
-      <Filter>Data</Filter>
-    </ClCompile>
     <ClCompile Include="Data\MimeType.cpp">
       <Filter>Data</Filter>
     </ClCompile>
@@ -181,122 +88,23 @@
       <Filter>System</Filter>
     </ClCompile>
     <ClCompile Include="stdafx.cpp" />
-    <ClCompile Include="Exception\OverflowException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\NotFiniteNumberException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="Exception\ApplicationException.h">
       <Filter>Exception</Filter>
     </ClInclude>
-    <ClInclude Include="Exception\ArgumentOutOfRangeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ClassNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DirectoryNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateDirectoryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateFileException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\DuplicateObjectException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Exception\Exception.h">
       <Filter>Exception</Filter>
     </ClInclude>
     <ClInclude Include="Exception\ExceptionDefs.h">
       <Filter>Exception</Filter>
     </ClInclude>
-    <ClInclude Include="Exception\FileIoException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\FileNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\GridDensityException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\IndexOutOfRangeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidArgumentException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidOperationException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidPropertyTypeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\IoException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\LogicException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NotImplementedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NullArgumentException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NullPropertyValueException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NullReferenceException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ObjectNotFoundException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\OutOfMemoryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\OutOfRangeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ResourcesException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\ResourcesLoadFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\RuntimeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\SystemException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\TemporaryFileNotAvailableException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\UnclassifiedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Data\BatchPropertyCollection.h">
       <Filter>Data</Filter>
     </ClInclude>
-    <ClInclude Include="Data\Byte.h">
-      <Filter>Data</Filter>
-    </ClInclude>
-    <ClInclude Include="Data\ByteSource.h">
-      <Filter>Data</Filter>
-    </ClInclude>
     <ClInclude Include="Data\Collection.h">
       <Filter>Data</Filter>
     </ClInclude>
-    <ClInclude Include="Data\DateTime.h">
-      <Filter>Data</Filter>
-    </ClInclude>
     <ClInclude Include="Data\FeaturePropertyType.h">
       <Filter>Data</Filter>
     </ClInclude>
@@ -411,12 +219,6 @@
       <Filter>System</Filter>
     </ClInclude>
     <ClInclude Include="stdafx.h" />
-    <ClInclude Include="Exception\OverflowException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\NotFiniteNumberException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ResourceCompile Include="Foundation.rc" />

Modified: sandbox/adsk/vik/Common/Foundation/System/Disposable.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/System/Disposable.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/System/Disposable.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -65,7 +65,7 @@
         ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in MgDisposable::Addref(). Class Name: %W. Called with Reference Count = 0.\n"), GetClassName().c_str()));
 #endif
 
-        throw new MgLogicException(L"MgDisposable.AddRef", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgDisposable.AddRef", __LINE__, __WFILE__, NULL, L"Logic", NULL);
     }
 
     return ++m_refCount;
@@ -98,7 +98,7 @@
             ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in MgDisposable::Release(). Class Name: %W. Called with Reference Count <= 0.\n"), GetClassName().c_str()));
 #endif
 
-            throw new MgLogicException(L"MgDisposable.Release", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgDisposable.Release", __LINE__, __WFILE__, NULL, L"Logic", NULL);
         }
 
         --m_refCount;

Modified: sandbox/adsk/vik/Common/Foundation/System/DisposableCollection.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/System/DisposableCollection.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/System/DisposableCollection.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -79,7 +79,7 @@
 MgDisposable* MgDisposableCollection::GetItem(INT32 index) const
 {
     if (index >= m_size || index < 0)
-        throw new MgIndexOutOfRangeException(L"GetItem",__LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"GetItem",__LINE__, __WFILE__, NULL, L"IndexOutOfRange", NULL);
     // EXC::Create(Exception::NLSGetMessage(_NLSID(_5_INDEXOUTOFBOUNDS)));
 
     return SAFE_ADDREF(m_list[index]);
@@ -102,7 +102,7 @@
         m_list[index] = SAFE_ADDREF(value);
     }
     else
-        throw new MgIndexOutOfRangeException(L"SetItem", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"SetItem", __LINE__, __WFILE__, NULL, L"IndexOutOfRange", NULL);
     // EXC::Create(GisException::NLSGetMessage(GIS_NLSID(GIS_5_INDEXOUTOFBOUNDS)));
 }
 
@@ -148,7 +148,7 @@
         m_size++;
     }
     else
-        throw new MgIndexOutOfRangeException(L"Insert", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"Insert", __LINE__, __WFILE__, NULL, L"IndexOutOfRange", NULL);
     // EXC::Create(GisException::NLSGetMessage(GIS_NLSID(GIS_5_INDEXOUTOFBOUNDS)));
 }
 
@@ -222,7 +222,7 @@
         m_list[--m_size] = NULL;
     }
     else
-        throw new MgIndexOutOfRangeException(L"RemoveAt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"RemoveAt", __LINE__, __WFILE__, NULL, L"IndexOutOfRange", NULL);
 }
 
 
@@ -282,7 +282,7 @@
 /// </returns>
 MgByteReader* MgDisposableCollection::ToXml()
 {
-    throw new MgNotImplementedException(L"MgDisposableCollection.ToXml", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgApplicationException(L"MgDisposableCollection.ToXml", __LINE__, __WFILE__, NULL, L"NotImplemented", NULL);
 
     return NULL;
 }
@@ -296,7 +296,7 @@
 /// <returns>Returns nothing.</returns>
 void MgDisposableCollection::Serialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgDisposableCollection.Serialize", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgApplicationException(L"MgDisposableCollection.Serialize", __LINE__, __WFILE__, NULL, L"NotImplemented", NULL);
 }
 
 
@@ -308,7 +308,7 @@
 /// <returns>Returns nothing.</returns>
 void MgDisposableCollection::Deserialize(MgStream* stream)
 {
-    throw new MgNotImplementedException(L"MgDisposableCollection.Deserialize", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgApplicationException(L"MgDisposableCollection.Deserialize", __LINE__, __WFILE__, NULL, L"NotImplemented", NULL);
 }
 
 

Modified: sandbox/adsk/vik/Common/Foundation/System/FileUtil.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/System/FileUtil.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/System/FileUtil.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -77,7 +77,7 @@
         arguments.Add(L"1");
         arguments.Add(MgResources::BlankArgument);
 
-        throw new MgInvalidArgumentException(
+        throw new MgApplicationException(
             L"MgFileUtil.ValidateFileName",
             __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
     }
@@ -91,7 +91,7 @@
         MgStringCollection whyArguments;
         whyArguments.Add(sm_reservedCharacters);
 
-        throw new MgInvalidArgumentException(
+        throw new MgApplicationException(
             L"MgFileUtil.ValidateFileName",
             __LINE__, __WFILE__, &arguments, L"MgStringContainsReservedCharacters", &whyArguments);
     }
@@ -102,9 +102,9 @@
         arguments.Add(L"1");
         arguments.Add(fileName);
 
-        throw new MgInvalidArgumentException(
+        throw new MgApplicationException(
             L"MgFileUtil.ValidateFileName",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+            __LINE__, __WFILE__, &arguments, L"InvalidArgument", NULL);
     }
 
     MG_CATCH_AND_THROW(L"MgFileUtil.ValidateFileName")
@@ -152,8 +152,8 @@
 {
     if (pathname.empty() || extension.empty())
     {
-        throw new MgNullArgumentException(L"MgFileUtil.EndsWithExtension",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.EndsWithExtension",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     bool result = false;
@@ -221,8 +221,8 @@
 
     if (pathname.empty())
     {
-        throw new MgNullArgumentException(L"MgFileUtil.GetFileStatus",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.GetFileStatus",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     STRING path = pathname;
@@ -247,8 +247,8 @@
         MgStringCollection arguments;
         arguments.Add(pathname);
 
-        throw new MgFileIoException(L"MgFileUtil.GetFileStatus",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.GetFileStatus",
+            __LINE__, __WFILE__, &arguments, L"FileIo", NULL);
     }
 
     MG_CATCH_AND_THROW(L"MgFileUtil.GetFileStatus")
@@ -400,8 +400,8 @@
             MgStringCollection arguments;
             arguments.Add(path);
 
-            throw new MgDuplicateDirectoryException(L"MgFileUtil.CreateDirectory",
-                __LINE__, __WFILE__, &arguments, L"", NULL);
+            throw new MgApplicationException(L"MgFileUtil.CreateDirectory",
+                __LINE__, __WFILE__, &arguments, L"DuplicateDirectory", NULL);
         }
 
         return;
@@ -469,8 +469,8 @@
             case ENOENT:
             case EACCES:
             default:
-                throw new MgFileIoException(L"MgFileUtil.MkDir",
-                    __LINE__, __WFILE__, &arguments, L"", NULL);
+                throw new MgApplicationException(L"MgFileUtil.MkDir",
+                    __LINE__, __WFILE__, &arguments, L"FileIo", NULL);
                 break;
         }
     }
@@ -862,8 +862,8 @@
         MgStringCollection arguments;
         arguments.Add(path);
 
-        throw new MgFileIoException(L"MgFileUtil.ChangeDirectory",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.ChangeDirectory",
+            __LINE__, __WFILE__, &arguments, L"FileIo", NULL);
     }
 
 #ifdef _WIN32
@@ -875,8 +875,8 @@
         MgStringCollection arguments;
         arguments.Add(path);
 
-        throw new MgDirectoryNotFoundException(L"MgFileUtil.ChangeDirectory",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.ChangeDirectory",
+            __LINE__, __WFILE__, &arguments, L"DirectoryNotFound", NULL);
     }
 
     currDir = MG_TCHAR_TO_WCHAR(buffer);
@@ -929,8 +929,8 @@
             MgStringCollection arguments;
             arguments.Add(pathname);
 
-            throw new MgFileNotFoundException(L"MgFileUtil.DeleteFile",
-                __LINE__, __WFILE__, &arguments, L"", NULL);
+            throw new MgApplicationException(L"MgFileUtil.DeleteFile",
+                __LINE__, __WFILE__, &arguments, L"FileNotFound", NULL);
         }
 
         return;
@@ -953,8 +953,8 @@
             case ENOENT: // PathnameExists is more reliable. It gets called above, so this error should not be detected.
             case EACCES:
             default:
-                throw new MgFileIoException(L"MgFileUtil.DeleteFile",
-                    __LINE__, __WFILE__, &arguments, L"", NULL);
+                throw new MgApplicationException(L"MgFileUtil.DeleteFile",
+                    __LINE__, __WFILE__, &arguments, L"FileIo", NULL);
                 break;
         }
     }
@@ -983,8 +983,8 @@
 
     if (path.empty() || oldFileName.empty() || newFileName.empty())
     {
-        throw new MgNullArgumentException(L"MgFileUtil.RenameFile",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.RenameFile",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     STRING oldPathname = path;
@@ -1019,8 +1019,8 @@
 
     if (oldPathname.empty() || newPathname.empty())
     {
-        throw new MgNullArgumentException(L"MgFileUtil.RenameFile",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.RenameFile",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     if (_wcsicmp(oldPathname.c_str(), newPathname.c_str()) == 0)
@@ -1028,8 +1028,8 @@
         MgStringCollection arguments;
         arguments.Add(newPathname);
 
-        throw new MgDuplicateFileException(L"MgFileUtil.RenameFile",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.RenameFile",
+            __LINE__, __WFILE__, &arguments, L"DuplicateFile", NULL);
     }
 
     MgLock lock(sm_mutex);
@@ -1043,8 +1043,8 @@
         MgStringCollection arguments;
         arguments.Add(newPathname);
 
-        throw new MgDuplicateFileException(L"MgFileUtil.RenameFile",
-            __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.RenameFile",
+            __LINE__, __WFILE__, &arguments, L"DuplicateFile", NULL);
     }
 
 #ifdef _WIN32
@@ -1062,8 +1062,8 @@
         {
             case ENOENT: // File or path specified by oldname not found.
                 arguments.Add(oldPathname);
-                throw new MgFileNotFoundException(L"MgFileUtil.RenameFile",
-                    __LINE__, __WFILE__, &arguments, L"", NULL);
+                throw new MgApplicationException(L"MgFileUtil.RenameFile",
+                    __LINE__, __WFILE__, &arguments, L"FileNotFound", NULL);
                 break;
 
             case EINVAL: // Name contains invalid characters.
@@ -1077,7 +1077,7 @@
                 MgStringCollection whyArguments;
                 whyArguments.Add(L"");
 
-                throw new MgInvalidArgumentException(L"MgFileUtil.RenameFile",
+                throw new MgApplicationException(L"MgFileUtil.RenameFile",
                     __LINE__, __WFILE__, &arguments, L"MgStringContainsReservedCharacters", &whyArguments);
             }
                 break;
@@ -1088,8 +1088,8 @@
                          // different path.
             default:
                 arguments.Add(newPathname);
-                throw new MgFileIoException(L"MgFileUtil.RenameFile",
-                    __LINE__, __WFILE__, &arguments, L"", NULL);
+                throw new MgApplicationException(L"MgFileUtil.RenameFile",
+                    __LINE__, __WFILE__, &arguments, L"FileIo", NULL);
                 break;
         }
     }
@@ -1155,8 +1155,8 @@
 
         if (0 == tempFileName)
         {
-            throw new MgTemporaryFileNotAvailableException(
-                L"MgFileUtil.GenerateTempFileName", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(
+                L"MgFileUtil.GenerateTempFileName", __LINE__, __WFILE__, NULL, L"TemporaryFileNotAvailable", NULL);
         }
 
         string tempStr = tempFileName;
@@ -1252,8 +1252,8 @@
 
     if (pathname.empty())
     {
-        throw new MgNullArgumentException(L"MgFileUtil.IsFileInUse",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgFileUtil.IsFileInUse",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgLock lock(sm_mutex);

Modified: sandbox/adsk/vik/Common/Foundation/System/GuardDisposable.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/System/GuardDisposable.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/System/GuardDisposable.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -41,7 +41,7 @@
         ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in MgGuardDisposable::Addref(). Class Name: %W. Called with Reference Count = 0.\n"), GetClassName().c_str()));
 #endif
 
-        throw new MgLogicException(L"MgGuardDisposable.AddRef", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgGuardDisposable.AddRef", __LINE__, __WFILE__, NULL, L"Logic", NULL);
     }
 
     return ++m_refCount;
@@ -62,7 +62,7 @@
             ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%t) ************ Error in MgGuardDisposable::Release(). Class Name: %W. Called with Reference Count <= 0.\n"), GetClassName().c_str()));
 #endif
 
-            throw new MgLogicException(L"MgGuardDisposable.Release", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"MgGuardDisposable.Release", __LINE__, __WFILE__, NULL, L"Logic", NULL);
         }
 
         --m_refCount;

Modified: sandbox/adsk/vik/Common/Foundation/System/Util.cpp
===================================================================
--- sandbox/adsk/vik/Common/Foundation/System/Util.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/System/Util.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -203,7 +203,7 @@
         arguments.Add(L"1");
         arguments.Add(wcStr);
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgApplicationException(L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 }
@@ -242,7 +242,7 @@
         arguments.Add(L"1");
         arguments.Add((NULL == wcBuf) ? L"" : wcBuf);
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgApplicationException(L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 
@@ -308,7 +308,7 @@
         arguments.Add(L"1");
         arguments.Add(L"const string&");
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgApplicationException(L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 }
@@ -347,7 +347,7 @@
         arguments.Add(L"1");
         arguments.Add(L"const char*");
 
-        throw new MgInvalidArgumentException(L"MgUtil.WideCharToMultiByte",
+        throw new MgApplicationException(L"MgUtil.WideCharToMultiByte",
             __LINE__, __WFILE__, &arguments, L"MgInvalidStringConversion", NULL);
     }
 
@@ -506,7 +506,7 @@
             MgStringCollection whyArguments;
             whyArguments.Add(reservedChars);
 
-            throw new MgInvalidArgumentException(L"CheckReseveredCharater",
+            throw new MgApplicationException(L"CheckReseveredCharater",
                 __LINE__,  __WFILE__, &arguments, L"MgStringContainsReservedCharacters", &whyArguments);
         }
     }
@@ -552,7 +552,7 @@
             arguments.Add(L"1");
             arguments.Add(str);
 
-            throw new MgInvalidArgumentException(L"MgUtil.CheckBeginEnd",
+            throw new MgApplicationException(L"MgUtil.CheckBeginEnd",
                 __LINE__,  __WFILE__, &arguments, L"MgInvalidStringTrim", NULL);
         }
     }
@@ -592,8 +592,8 @@
 {
     if (NULL == oldValue || NULL == newValue)
     {
-        throw new MgNullArgumentException(L"MgUtil.ReplaceString",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgUtil.ReplaceString",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     STRING newStr = str.c_str();
@@ -765,8 +765,8 @@
 
     if (0 == str)
     {
-        throw new MgOutOfMemoryException(L"MgUtil.GenerateUuid",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgUtil.GenerateUuid",
+            __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
     }
 
     uuid = str->c_str();

Modified: sandbox/adsk/vik/Common/Foundation/System/Util.h
===================================================================
--- sandbox/adsk/vik/Common/Foundation/System/Util.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Foundation/System/Util.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -591,15 +591,15 @@
 #define CHECKNULL(pointer, methodname)      \
 if (pointer == NULL)     \
 {                        \
-    throw new MgNullReferenceException(methodname, \
-                                       __LINE__, __WFILE__, NULL, L"", NULL); \
+    throw new MgApplicationException(methodname, \
+                                       __LINE__, __WFILE__, NULL, L"NullReference", NULL); \
 }
 
 #define CHECKARGUMENTNULL(pointer, methodname)      \
 if (pointer == NULL)     \
 {                        \
-    throw new MgNullArgumentException(methodname, \
-                                       __LINE__, __WFILE__, NULL, L"", NULL); \
+    throw new MgApplicationException(methodname, \
+                                       __LINE__, __WFILE__, NULL, L"NullArgument", NULL); \
 }
 
 #define MG_CHECK_RANGE(value, min, max, methodName)                           \
@@ -607,8 +607,8 @@
     {                                                                         \
         if (NULL != methodName)                                               \
         {                                                                     \
-            throw new MgArgumentOutOfRangeException(                          \
-                methodName, __LINE__, __WFILE__, NULL, L"", NULL);            \
+            throw new MgApplicationException(                          \
+                methodName, __LINE__, __WFILE__, NULL, L"ArgumentOutOfRange", NULL);            \
         }                                                                     \
         else if (value < min)                                                 \
         {                                                                     \

Modified: sandbox/adsk/vik/Common/Geometry/ArcSegment.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/ArcSegment.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/ArcSegment.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -125,6 +125,7 @@
     return m_cls_id;
 }
 
+#if WANT_ACE
 //////////////////////////////////////////////////////////////////
 // Serialize data to a stream
 //
@@ -144,6 +145,7 @@
     //components are deserialized by the containing geometries
     throw new MgNotImplementedException(L"MgArcSegment.Deserialize", __LINE__, __WFILE__, NULL, L"", NULL);
 }
+#endif
 
 //////////////////////////////////////////////////////////////////
 // Calculate the envelope for this geometry

Modified: sandbox/adsk/vik/Common/Geometry/ArcSegment.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/ArcSegment.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/ArcSegment.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -205,6 +205,7 @@
     ///
     virtual INT32 GetClassId();
 
+#if WANT_ACE
     //////////////////////////////////////////////////////////////////
     /// \brief
     /// Serialize data to TCP/IP stream
@@ -222,6 +223,7 @@
     /// Stream
     ///
     virtual void Deserialize(MgStream* stream);
+#endif
 
     ///////////////////////////////////////////////////////////////////////////
     /// \brief

Modified: sandbox/adsk/vik/Common/Geometry/Buffer/MgBuffer.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Buffer/MgBuffer.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Buffer/MgBuffer.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -181,7 +181,7 @@
                 arguments.Add(L"2");
                 arguments.Add(buffer);
 
-                throw new MgInvalidArgumentException(L"MgBuffer.BufferGeometry",
+                throw new MgApplicationException(L"MgBuffer.BufferGeometry",
                     __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryType", NULL);
             }
         }

Modified: sandbox/adsk/vik/Common/Geometry/Buffer/oobject.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Buffer/oobject.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Buffer/oobject.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -53,13 +53,7 @@
 {
     void *memPtr = ::malloc(nBytes);
 
-    if (!memPtr)
-    {
-        throw new MgOutOfMemoryException(L"OpsObject.AllocMem", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     return memPtr;
-
 } // end: AllocMem()
 
 
@@ -94,7 +88,7 @@
     void *newMemPtr = ::realloc(memPtr, nBytes);
     if (!newMemPtr && nBytes != 0)
     {
-        throw new MgOutOfMemoryException(L"OpsObject.ReallocMem", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"OpsObject.ReallocMem", __LINE__, __WFILE__, NULL, L"OutOfMemory", NULL);
     }
     return newMemPtr;
 

Modified: sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemCache.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemCache.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemCache.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -90,8 +90,8 @@
 {
     if (key.empty() || NULL == value)
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemCache.Set",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCache.Set",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgLock lock(m_mutex);
@@ -118,8 +118,8 @@
 {
     if (key.empty())
     {
-        throw new MgNullArgumentException(L"MgCoordinateSystemCache.Get",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemCache.Get",
+            __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     MgLock lock(m_mutex);

Modified: sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/CoordinateSystem/CoordinateSystemFactory.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -80,11 +80,6 @@
         }
     }
 
-    if (!sm_pCatalog)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.MgCoordinateSystemFactory", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.MgCoordinateSystemFactory")
 }
 
@@ -109,9 +104,9 @@
 
     if (NULL == sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(
+        throw new MgApplicationException(
             L"MgCoordinateSystemFactory.Create",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+            __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
 
     MgCoordinateSystemCache* coordinateSystemCache = MgCoordinateSystemCache::GetInstance();
@@ -147,9 +142,9 @@
 
     if (NULL == sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(
+        throw new MgApplicationException(
             L"MgCoordinateSystemFactory.CreateFromCode",
-            __LINE__, __WFILE__, NULL, L"", NULL);
+            __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
 
     MgCoordinateSystemCache* coordinateSystemCache = MgCoordinateSystemCache::GetInstance();
@@ -204,7 +199,7 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.GetCatalog", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFactory.GetCatalog", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetCatalog")
 
@@ -217,10 +212,7 @@
     Ptr<CCoordinateSystemTransform> pNew;
     MG_TRY()
     pNew=new CCoordinateSystemTransform(pSource, pTarget);
-    if (NULL == pNew)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetTransform", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetTransform")
 
     //And we're done!  Return success.
@@ -246,12 +238,12 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
     Ptr<MgCoordinateSystemFormatConverter> pConverter=sm_pCatalog->GetFormatConverter();
     if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFactory.ConvertWktToCoordinateSystemCode", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
     code=pConverter->WktToCode(MgCoordinateSystemWktFlavor::Unknown, wkt, MgCoordinateSystemCodeFormat::Mentor);
 
@@ -279,12 +271,12 @@
 
     if (!sm_pCatalog)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
     Ptr<MgCoordinateSystemFormatConverter> pConverter=sm_pCatalog->GetFormatConverter();
     if (!pConverter)
     {
-        throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCoordinateSystemFactory.ConvertCoordinateSystemCodeToWkt", __LINE__, __WFILE__, NULL, L"CoordinateSystemInitializationFailed", NULL);
     }
 
     // Check to see if this is an EPSG code. ie: "EPSG:4326"
@@ -320,10 +312,7 @@
     MG_TRY()
 
     categoryNames = new MgStringCollection();
-    if (!categoryNames)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.EnumerateCategories", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     if (!sm_pCatalog)
     {
         throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.ToString", __LINE__, __WFILE__, NULL, L"", NULL);
@@ -334,10 +323,7 @@
         throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCategories", __LINE__, __WFILE__, NULL, L"MgCoordinateSystemNoCategoryDictionaryException", NULL);
     }
     Ptr<MgCoordinateSystemEnum> pEnum=pCtDict->GetEnum();
-    if (!pEnum)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.EnumerateCategories", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     UINT32 nNbCategories=pCtDict->GetSize();
     categoryNames=pEnum->NextName(nNbCategories);
     if (categoryNames->GetCount()!=nNbCategories)
@@ -368,10 +354,7 @@
     MG_TRY()
 
     pCoordinateSystems = new MgBatchPropertyCollection();
-    if (!pCoordinateSystems)
-    {
-        throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
+
     if (!sm_pCatalog)
     {
         throw new MgCoordinateSystemInitializationFailedException(L"MgCoordinateSystemFactory.EnumerateCoordinateSystems", __LINE__, __WFILE__, NULL, L"", NULL);
@@ -595,7 +578,7 @@
             // Check the consistency of all these parameters.
             if (!gridSpecification->IsConsistent ())
             {
-                throw new MgInvalidArgumentException(L"MgCoordinateSystemFactory.GridSpecification", __LINE__, __WFILE__, NULL, L"", NULL);
+                throw new MgApplicationException(L"MgCoordinateSystemFactory.GridSpecification", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
             }
         }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GridSpecification")
@@ -665,17 +648,7 @@
     Ptr<CCoordinateSystemMgrs> pNew;
     MG_TRY()
     pNew=new CCoordinateSystemMgrs(nLetteringScheme, bSetExceptionsOn);
-    if (NULL == pNew)
-    {
-        if (bSetExceptionsOn)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrs", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
-        else
-        {
-            return NULL;
-        }
-    }
+
     pNew->Init(dEquatorialRadius, dEccentricity);
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetMgrs")
 
@@ -694,17 +667,7 @@
     Ptr<CCoordinateSystemMgrs> pNew;
     MG_TRY()
     pNew=new CCoordinateSystemMgrs(nLetteringScheme, bSetExceptionsOn);
-    if (NULL == pNew)
-    {
-        if (bSetExceptionsOn)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsEllipsoid", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
-        else
-        {
-            return NULL;
-        }
-    }
+
     pNew->InitFromEllipsoid(sEllipsoidCode);
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetMgrsEllipsoid")
 
@@ -723,17 +686,7 @@
     Ptr<CCoordinateSystemMgrs> pNew;
     MG_TRY()
     pNew=new CCoordinateSystemMgrs(nLetteringScheme, bSetExceptionsOn);
-    if (NULL == pNew)
-    {
-        if (bSetExceptionsOn)
-        {
-            throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, __WFILE__, NULL, L"", NULL);
-        }
-        else
-        {
-            return NULL;
-        }
-    }
+
     pNew->InitFromDatum(sDatumCode);
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetMgrsDatum")
 
@@ -767,17 +720,6 @@
 
     MG_TRY()
         pNewMgrs=new CCoordinateSystemMgrs(pFrameCs,nLetteringScheme,bSetExceptionsOn);
-        if (NULL == pNewMgrs)
-        {
-            if (bSetExceptionsOn)
-            {
-                throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, __WFILE__, NULL, L"", NULL);
-            }
-            else
-            {
-                return NULL;
-            }
-        }
 
         if (bUseTargetDatum)
         {
@@ -817,17 +759,6 @@
 
     MG_TRY()
         pGenericGrid=new CCoordinateSystemGridGeneric (pGridCs,pFrameCs,bSetExceptionsOn);
-        if (NULL == pGenericGrid)
-        {
-            if (bSetExceptionsOn)
-            {
-                throw new MgOutOfMemoryException(L"MgCoordinateSystemFactory.GetMgrsDatum", __LINE__, __WFILE__, NULL, L"", NULL);
-            }
-            else
-            {
-                return NULL;
-            }
-        }
     MG_CATCH_AND_THROW(L"MgCoordinateSystemFactory.GetMgrsDatum")
 
     return static_cast<MgCoordinateSystemGridBase*>(pGenericGrid.Detach());

Modified: sandbox/adsk/vik/Common/Geometry/CurvePolygon.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/CurvePolygon.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/CurvePolygon.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -60,7 +60,7 @@
 MgCurveRing* MgCurvePolygon::GetInteriorRing(INT32 index)
 {
     if (m_innerRings == NULL)
-        throw new MgArgumentOutOfRangeException(L"MgCurvePolygon.GetInteriorRing", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgCurvePolygon.GetInteriorRing", __LINE__, __WFILE__, NULL, L"ArgumentOutOfRange", NULL);
 
     return m_innerRings->GetItem(index);
 }

Modified: sandbox/adsk/vik/Common/Geometry/CurveRing.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/CurveRing.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/CurveRing.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -140,6 +140,7 @@
     delete this;
 }
 
+#if WANT_ACE
 //////////////////////////////////////////////////////////////////
 // Serialize data to TCP/IP stream
 //
@@ -159,7 +160,7 @@
     //components are deserialized by the containing geometries
     throw new MgNotImplementedException(L"MgCurveRing.Deserialize", __LINE__, __WFILE__, NULL, L"", NULL);
 }
-
+#endif
 ///////////////////////////////////////////////////////////////////////////
 // Tests whether this geometry component is spatially equal to another geometry component.
 //

Modified: sandbox/adsk/vik/Common/Geometry/CurveRing.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/CurveRing.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/CurveRing.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -186,6 +186,7 @@
     ///
     virtual INT32 GetClassId();
 
+#if WANT_ACE
     //////////////////////////////////////////////////////////////////
     /// \brief
     /// Serialize data to TCP/IP stream
@@ -203,6 +204,7 @@
     /// Stream
     ///
     virtual void Deserialize(MgStream* stream);
+#endif
 
     ///////////////////////////////////////////////////////////////////////////
     /// \brief

Modified: sandbox/adsk/vik/Common/Geometry/CurveString.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/CurveString.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/CurveString.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -32,7 +32,7 @@
         arguments.Add(L"1");
         arguments.Add(L"0");
 
-        throw new MgInvalidArgumentException(L"MgCurveString.MgCurveString",
+        throw new MgApplicationException(L"MgCurveString.MgCurveString",
             __LINE__, __WFILE__, &arguments, L"MgGeometryEmpty", NULL);
     }
 

Modified: sandbox/adsk/vik/Common/Geometry/Envelope.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Envelope.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Envelope.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -59,7 +59,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+        throw new MgApplicationException(L"MgEnvelope.MgEnvelope",
             __LINE__, __WFILE__, &arguments, L"MgCoordinateDimensionDifferent", NULL);
     }
 
@@ -78,7 +78,7 @@
             arguments.Add(L"2");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+            throw new MgApplicationException(L"MgEnvelope.MgEnvelope",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", NULL);
         }
 
@@ -100,7 +100,7 @@
             arguments.Add(L"2");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+            throw new MgApplicationException(L"MgEnvelope.MgEnvelope",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", NULL);
         }
 
@@ -139,7 +139,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+        throw new MgApplicationException(L"MgEnvelope.MgEnvelope",
             __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", NULL);
     }
 
@@ -155,7 +155,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgEnvelope.MgEnvelope",
+        throw new MgApplicationException(L"MgEnvelope.MgEnvelope",
             __LINE__, __WFILE__, &arguments, L"MgInvalidEnvelopeCoordinates", NULL);
     }
 
@@ -272,12 +272,7 @@
         ury = (ury < y)? y : ury;
 
         Ptr<MgCoordinateXY> ll = new MgCoordinateXY(llx, lly);
-        if(ll == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.ExpandToInclude", __LINE__, __WFILE__, NULL, L"", NULL);
-
         Ptr<MgCoordinateXY> ur = new MgCoordinateXY(urx, ury);
-        if(ur == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.ExpandToInclude", __LINE__, __WFILE__, NULL, L"", NULL);
 
         m_lowerLeft  = SAFE_ADDREF((MgCoordinate*)ll);
         m_upperRight = SAFE_ADDREF((MgCoordinate*)ur);
@@ -444,12 +439,7 @@
         maxY += offset;
 
         Ptr<MgCoordinateXY> ll = new MgCoordinateXY(minX, minY);
-        if (ll == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.Grow", __LINE__, __WFILE__, NULL, L"", NULL);
-
         Ptr<MgCoordinateXY> ur = new MgCoordinateXY(maxX, maxY);
-        if (ur == NULL)
-            throw new MgOutOfMemoryException(L"MgEnvelope.Grow", __LINE__, __WFILE__, NULL, L"", NULL);
 
         m_lowerLeft  = SAFE_ADDREF((MgCoordinate*)ll);
         m_upperRight = SAFE_ADDREF((MgCoordinate*)ur);

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "CoordinateSystemComputationFailedException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemComputationFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemComputationFailedException object.
-///
-MgCoordinateSystemComputationFailedException::MgCoordinateSystemComputationFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemComputationFailedException::~MgCoordinateSystemComputationFailedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemComputationFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_COMPUTATION_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_COMPUTATION_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system computation fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemComputationFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemComputationFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemComputationFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgCoordinateSystemComputationFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemConversionFailedException object.
-    ///
-    virtual ~MgCoordinateSystemComputationFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemComputationFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgCoordinateSystemComputationFailedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "CoordinateSystemConversionFailedException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemConversionFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemConversionFailedException object.
-///
-MgCoordinateSystemConversionFailedException::MgCoordinateSystemConversionFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemConversionFailedException::~MgCoordinateSystemConversionFailedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemConversionFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_CONVERSION_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_CONVERSION_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system conversion fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemConversionFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemConversionFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemConversionFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgCoordinateSystemConversionFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemConversionFailedException object.
-    ///
-    virtual ~MgCoordinateSystemConversionFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemConversionFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgCoordinateSystemConversionFailedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,42 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-
-#include "CoordinateSystemInitializationFailedException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemInitializationFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemInitializationFailedException object.
-///
-MgCoordinateSystemInitializationFailedException::MgCoordinateSystemInitializationFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemInitializationFailedException::~MgCoordinateSystemInitializationFailedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemInitializationFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,68 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_COORDINATE_SYSTEM_INITIALIZATION_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_INITIALIZATION_FAILED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// The exception is thrown when the coordinate system initialization fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemInitializationFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemInitializationFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemInitializationFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgCoordinateSystemInitializationFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemInitializationFailedException object.
-    ///
-    virtual ~MgCoordinateSystemInitializationFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemInitializationFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgCoordinateSystemInitializationFailedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "CoordinateSystemLoadFailedException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemLoadFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemLoadFailedException object.
-///
-MgCoordinateSystemLoadFailedException::MgCoordinateSystemLoadFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemLoadFailedException::~MgCoordinateSystemLoadFailedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemLoadFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,68 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_COORDINATE_SYSTEM_LOAD_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_LOAD_FAILED_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// The exception is thrown when the coordinate system load fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemLoadFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemLoadFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemLoadFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgCoordinateSystemLoadFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemLoadFailedException object.
-    ///
-    virtual ~MgCoordinateSystemLoadFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemLoadFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgCoordinateSystemLoadFailedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "CoordinateSystemMeasureFailedException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemMeasureFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemMeasureFailedException object.
-///
-MgCoordinateSystemMeasureFailedException::MgCoordinateSystemMeasureFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemMeasureFailedException::~MgCoordinateSystemMeasureFailedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemMeasureFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_MEASURE_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_MEASURE_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system measurement fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemMeasureFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemMeasureFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemMeasureFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgCoordinateSystemMeasureFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemConversionFailedException object.
-    ///
-    virtual ~MgCoordinateSystemMeasureFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemMeasureFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgCoordinateSystemMeasureFailedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "CoordinateSystemTransformFailedException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgCoordinateSystemTransformFailedException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgCoordinateSystemTransformFailedException object.
-///
-MgCoordinateSystemTransformFailedException::MgCoordinateSystemTransformFailedException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgCoordinateSystemTransformFailedException::~MgCoordinateSystemTransformFailedException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/CoordinateSystemTransformFailedException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_COORDINATE_SYSTEM_TRANSFORM_FAILED_EXCEPTION_H_
-#define MG_COORDINATE_SYSTEM_TRANSFORM_FAILED_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when a coordinate system transform fails.
-///
-class MG_GEOMETRY_API MgCoordinateSystemTransformFailedException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgCoordinateSystemTransformFailedException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgCoordinateSystemTransformFailedException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgCoordinateSystemTransformFailedException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgCoordinateSystemTransformFailedException object.
-    ///
-    virtual ~MgCoordinateSystemTransformFailedException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgCoordinateSystemTransformFailedException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgCoordinateSystemTransformFailedException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "GeometryException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgGeometryException, MgException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgGeometryException object.
-///
-MgGeometryException::MgGeometryException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgGeometryException::~MgGeometryException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/GeometryException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_GEOMETRY_EXCEPTION_H_
-#define MG_GEOMETRY_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when an error occurs calculating geometry.
-///
-class MG_GEOMETRY_API MgGeometryException : public MgException
-{
-    DECLARE_CLASSNAME(MgGeometryException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgGeometryException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgGeometryException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgGeometryException object.
-    ///
-    virtual ~MgGeometryException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgGeometryException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgGeometryException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "InvalidCoordinateSystemException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCoordinateSystemException object.
-///
-MgInvalidCoordinateSystemException::MgInvalidCoordinateSystemException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCoordinateSystemException::~MgInvalidCoordinateSystemException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#ifndef MG_INVALID_COORDINATE_SYSTEM_EXCEPTION_H_
-#define MG_INVALID_COORDINATE_SYSTEM_EXCEPTION_H_
-
-/// \ingroup Exceptions_Module
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the Coordinate System API encounters a problem.
-///
-class MG_GEOMETRY_API MgInvalidCoordinateSystemException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidCoordinateSystemException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCoordinateSystemException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidCoordinateSystemException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCoordinateSystemException object.
-    ///
-    virtual ~MgInvalidCoordinateSystemException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgInvalidCoordinateSystemException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "InvalidCoordinateSystemTypeException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemTypeException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCoordinateSystemTypeException object.
-///
-MgInvalidCoordinateSystemTypeException::MgInvalidCoordinateSystemTypeException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCoordinateSystemTypeException::~MgInvalidCoordinateSystemTypeException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemTypeException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_INVALID_COORDINATE_SYSTEM_TYPE_EXCEPTION_H_
-#define MG_INVALID_COORDINATE_SYSTEM_TYPE_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the coordinate system type is invalid.
-///
-class MG_GEOMETRY_API MgInvalidCoordinateSystemTypeException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidCoordinateSystemTypeException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCoordinateSystemTypeException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidCoordinateSystemTypeException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCoordinateSystemTypeException object.
-    ///
-    virtual ~MgInvalidCoordinateSystemTypeException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemTypeException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgInvalidCoordinateSystemTypeException;
-};
-
-#endif

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,41 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-#include "stdafx.h"
-#include "InvalidCoordinateSystemUnitsException.h"
-
-IMPLEMENT_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemUnitsException, MgApplicationException)
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Construct a MgInvalidCoordinateSystemUnitsException object.
-///
-MgInvalidCoordinateSystemUnitsException::MgInvalidCoordinateSystemUnitsException(CREFSTRING methodName,
-    INT32 lineNumber, CREFSTRING fileName, MgStringCollection* whatArguments,
-    CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw() :
-    MgApplicationException(methodName, lineNumber, fileName,
-        whatArguments, whyMessageId, whyArguments)
-{
-}
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Destruct the object.
-///
-MgInvalidCoordinateSystemUnitsException::~MgInvalidCoordinateSystemUnitsException() throw()
-{
-}

Deleted: sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Exception/InvalidCoordinateSystemUnitsException.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -1,69 +0,0 @@
-//
-//  Copyright (C) 2004-2011 by Autodesk, Inc.
-//
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of version 2.1 of the GNU Lesser
-//  General Public License as published by the Free Software Foundation.
-//
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
-//
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-//
-
-/// \ingroup Exceptions_Module
-
-#ifndef MG_INVALID_COORDINATE_SYSTEM_UNITS_EXCEPTION_H_
-#define MG_INVALID_COORDINATE_SYSTEM_UNITS_EXCEPTION_H_
-
-///////////////////////////////////////////////////////////////////////////////
-/// \brief
-/// Thrown when the coordinate system units are invalid.
-///
-class MG_GEOMETRY_API MgInvalidCoordinateSystemUnitsException : public MgApplicationException
-{
-    DECLARE_CLASSNAME(MgInvalidCoordinateSystemUnitsException)
-
-EXTERNAL_API:
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Construct a MgInvalidCoordinateSystemUnitsException object.
-    ///
-    /// \param methodName
-    /// Name of the method where the exception occurred.
-    /// \param lineNumber
-    /// Line number where the exception occurred.
-    /// \param fileName
-    /// File name where the exception occurred.
-    /// \param whatArguments
-    /// Collection of arguments used to format the message that describes what the exception is.
-    /// \param whyMessageId
-    /// ID of the message that describes why the exception occurs.
-    /// \param whyArguments
-    /// Collection of arguments used to format the message that describes why the exception occurs.
-    ///
-    MgInvalidCoordinateSystemUnitsException(CREFSTRING methodName, INT32 lineNumber,
-        CREFSTRING fileName, MgStringCollection* whatArguments,
-        CREFSTRING whyMessageId, MgStringCollection* whyArguments) throw();
-
-    ///////////////////////////////////////////////////////////////////////////
-    /// \brief
-    /// Destructor for a MgInvalidCoordinateSystemUnitsException object.
-    ///
-    virtual ~MgInvalidCoordinateSystemUnitsException() throw();
-
-INTERNAL_API:
-
-    DECLARE_EXCEPTION_DEFAULTS(MgInvalidCoordinateSystemUnitsException)
-
-CLASS_ID:
-
-    static const INT32 m_cls_id = Geometry_Exception_MgInvalidCoordinateSystemUnitsException;
-};
-
-#endif

Modified: sandbox/adsk/vik/Common/Geometry/GeometricEntity.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/GeometricEntity.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/GeometricEntity.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -31,7 +31,7 @@
 //
 MgGeometricPathIterator* MgGeometricEntity::GetPath()
 {
-    throw new MgNotImplementedException(L"MgGeometricEntityImpl.GetPath", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgApplicationException(L"MgGeometricEntityImpl.GetPath", __LINE__, __WFILE__, NULL, L"NotImplemented", NULL);
 }
 
 //////////////////////////////////////////////////////////////////

Modified: sandbox/adsk/vik/Common/Geometry/Geometry.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Geometry.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Geometry.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -235,7 +235,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgGeometry.Buffer",
+        throw new MgApplicationException(L"MgGeometry.Buffer",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeZero", NULL);
     }
 

Modified: sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj	2011-12-08 05:13:34 UTC (rev 6304)
@@ -227,16 +227,6 @@
     <ClCompile Include="Buffer\wingedge.cpp" />
     <ClCompile Include="Buffer\worklist.cpp" />
     <ClCompile Include="Buffer\xordtree.cpp" />
-    <ClCompile Include="Exception\CoordinateSystemComputationFailedException.cpp" />
-    <ClCompile Include="Exception\CoordinateSystemConversionFailedException.cpp" />
-    <ClCompile Include="Exception\CoordinateSystemInitializationFailedException.cpp" />
-    <ClCompile Include="Exception\CoordinateSystemLoadFailedException.cpp" />
-    <ClCompile Include="Exception\CoordinateSystemMeasureFailedException.cpp" />
-    <ClCompile Include="Exception\CoordinateSystemTransformFailedException.cpp" />
-    <ClCompile Include="Exception\GeometryException.cpp" />
-    <ClCompile Include="Exception\InvalidCoordinateSystemException.cpp" />
-    <ClCompile Include="Exception\InvalidCoordinateSystemTypeException.cpp" />
-    <ClCompile Include="Exception\InvalidCoordinateSystemUnitsException.cpp" />
     <ClCompile Include="Parse\ArrayHelper.cpp" />
     <ClCompile Include="Parse\LexAwkt.cpp" />
     <ClCompile Include="Parse\ParseAwkt.cpp" />
@@ -393,16 +383,6 @@
     <ClInclude Include="Buffer\wingedge.h" />
     <ClInclude Include="Buffer\worklist.h" />
     <ClInclude Include="Buffer\xordtree.h" />
-    <ClInclude Include="Exception\CoordinateSystemComputationFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemConversionFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemInitializationFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemLoadFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemMeasureFailedException.h" />
-    <ClInclude Include="Exception\CoordinateSystemTransformFailedException.h" />
-    <ClInclude Include="Exception\GeometryException.h" />
-    <ClInclude Include="Exception\InvalidCoordinateSystemException.h" />
-    <ClInclude Include="Exception\InvalidCoordinateSystemTypeException.h" />
-    <ClInclude Include="Exception\InvalidCoordinateSystemUnitsException.h" />
     <ClInclude Include="Parse\Array.h" />
     <ClInclude Include="Parse\ArrayHelper.h" />
     <ClInclude Include="Parse\LexAwkt.h" />

Modified: sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj.filters
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj.filters	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Geometry.vcxproj.filters	2011-12-08 05:13:34 UTC (rev 6304)
@@ -4,9 +4,6 @@
     <Filter Include="Buffer">
       <UniqueIdentifier>{56bc0c4e-6931-49c4-97b5-fe957c164eba}</UniqueIdentifier>
     </Filter>
-    <Filter Include="Exception">
-      <UniqueIdentifier>{47d9650a-b1ea-478c-94f5-afbd136dda2b}</UniqueIdentifier>
-    </Filter>
     <Filter Include="Parse">
       <UniqueIdentifier>{9be50487-b080-45ca-9ee4-edd823e4210e}</UniqueIdentifier>
     </Filter>
@@ -120,36 +117,6 @@
     <ClCompile Include="Buffer\xordtree.cpp">
       <Filter>Buffer</Filter>
     </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemComputationFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemConversionFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemInitializationFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemLoadFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemMeasureFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\CoordinateSystemTransformFailedException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\GeometryException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidCoordinateSystemException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidCoordinateSystemTypeException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
-    <ClCompile Include="Exception\InvalidCoordinateSystemUnitsException.cpp">
-      <Filter>Exception</Filter>
-    </ClCompile>
     <ClCompile Include="Parse\ArrayHelper.cpp">
       <Filter>Parse</Filter>
     </ClCompile>
@@ -503,36 +470,6 @@
     <ClInclude Include="Buffer\xordtree.h">
       <Filter>Buffer</Filter>
     </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemComputationFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemConversionFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemInitializationFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemLoadFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemMeasureFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\CoordinateSystemTransformFailedException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\GeometryException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidCoordinateSystemException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidCoordinateSystemTypeException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
-    <ClInclude Include="Exception\InvalidCoordinateSystemUnitsException.h">
-      <Filter>Exception</Filter>
-    </ClInclude>
     <ClInclude Include="Parse\Array.h">
       <Filter>Parse</Filter>
     </ClInclude>

Modified: sandbox/adsk/vik/Common/Geometry/GeometryCommon.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/GeometryCommon.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/GeometryCommon.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -165,17 +165,6 @@
 #include "CoordinateSystem/CoordinateSystemMgrs.h"                          //for MgCoordinateSystemMgrs
 #include "CoordinateSystem/CoordinateSystemFactory.h"
 
-#include "Exception/CoordinateSystemComputationFailedException.h"
-#include "Exception/CoordinateSystemConversionFailedException.h"
-#include "Exception/CoordinateSystemInitializationFailedException.h"
-#include "Exception/CoordinateSystemLoadFailedException.h"
-#include "Exception/CoordinateSystemMeasureFailedException.h"
-#include "Exception/CoordinateSystemTransformFailedException.h"
-#include "Exception/GeometryException.h"
-#include "Exception/InvalidCoordinateSystemException.h"
-#include "Exception/InvalidCoordinateSystemTypeException.h"
-#include "Exception/InvalidCoordinateSystemUnitsException.h"
-
 // Represent NAN for double
 #define DoubleNan std::numeric_limits<double>::quiet_NaN()
 

Modified: sandbox/adsk/vik/Common/Geometry/LineString.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/LineString.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/LineString.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -35,7 +35,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgLineString.MgLineString",
+        throw new MgApplicationException(L"MgLineString.MgLineString",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryTooFewCoordinates", NULL);
     }
 

Modified: sandbox/adsk/vik/Common/Geometry/LinearRing.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/LinearRing.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/LinearRing.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -33,7 +33,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgLinearRing.MgLinearRing",
+        throw new MgApplicationException(L"MgLinearRing.MgLinearRing",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryTooFewCoordinates", NULL);
     }
 
@@ -161,7 +161,7 @@
 {
     //should not be called on geometry components
     //components are serialized by the containing geometries
-    throw new MgNotImplementedException(L"MgLinearRing.Serialize", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgApplicationException(L"MgLinearRing.Serialize", __LINE__, __WFILE__, NULL, L"NotImplemented", NULL);
 }
 
 //////////////////////////////////////////////////////////////////
@@ -171,7 +171,7 @@
 {
     //should not be called on geometry components
     //components are deserialized by the containing geometries
-    throw new MgNotImplementedException(L"MgLinearRing.Deserialize", __LINE__, __WFILE__, NULL, L"", NULL);
+    throw new MgApplicationException(L"MgLinearRing.Deserialize", __LINE__, __WFILE__, NULL, L"NotImplemented", NULL);
 }
 
 ///////////////////////////////////////////////////////////////////////////

Modified: sandbox/adsk/vik/Common/Geometry/LinearSegment.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/LinearSegment.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/LinearSegment.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -34,7 +34,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgLinearSegment.MgLinearSegment",
+        throw new MgApplicationException(L"MgLinearSegment.MgLinearSegment",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryTooFewCoordinates", NULL);
     }
 
@@ -145,7 +145,8 @@
     return m_cls_id;
 }
 
-//////////////////////////////////////////////////////////////////
+#if WANT_ACE
+///////////////////////////////////////////////////////////////////
 // Serialize data to TCP/IP stream
 //
 void MgLinearSegment::Serialize(MgStream* stream)
@@ -164,7 +165,7 @@
     //components are deserialized by the containing geometries
     throw new MgNotImplementedException(L"MgLinearSegment.Deserialize", __LINE__, __WFILE__, NULL, L"", NULL);
 }
-
+#endif
 //////////////////////////////////////////////////////////////////
 // Calculate the envelope for this geometry
 //

Modified: sandbox/adsk/vik/Common/Geometry/LinearSegment.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/LinearSegment.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/LinearSegment.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -204,6 +204,7 @@
     ///
     virtual INT32 GetClassId();
 
+#if WANT_ACE
     //////////////////////////////////////////////////////////////////
     /// \brief
     /// Serialize data to TCP/IP stream
@@ -221,7 +222,7 @@
     /// Stream
     ///
     virtual void Deserialize(MgStream* stream);
-
+#endif
     //////////////////////////////////////////////////////////////////
     /// \brief
     /// Convert to AWKT representation

Modified: sandbox/adsk/vik/Common/Geometry/Parse/Array.h
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Parse/Array.h	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Parse/Array.h	2011-12-08 05:13:34 UTC (rev 6304)
@@ -335,7 +335,7 @@
 T& GisArray<T>::GetValue(INT32 i)
 {
     if (i >= GetCount() || i < 0)
-        throw new MgIndexOutOfRangeException(L"GisArray<T>.GetValue", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"GisArray<T>.GetValue", __LINE__, __WFILE__, NULL, L"IndexOutOfRange", NULL);
 
     return *(this->GetData()+i);
 }

Modified: sandbox/adsk/vik/Common/Geometry/Parse/ArrayHelper.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Parse/ArrayHelper.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Parse/ArrayHelper.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -27,7 +27,7 @@
 {
     // Disallow possible re-allocation if object is shared.
     if (array->m_metadata.refCount > 1)
-        throw new MgInvalidOperationException(L"GisArrayHelper.Append", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"GisArrayHelper.Append", __LINE__, __WFILE__, NULL, L"InvalidOperation", NULL);
 
     if ( array->m_metadata.size + numElements > array->m_metadata.alloc )
         array = AllocMore(array, numElements, false /*exactly*/, elementSize);   // We could calculate the difference here, allocating less.
@@ -44,7 +44,7 @@
 {
     // Disallow possible re-allocation if object is shared.
     if (array->m_metadata.refCount > 1)
-        throw new MgInvalidOperationException(L"GisArrayHelper.SetSize", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"GisArrayHelper.SetSize", __LINE__, __WFILE__, NULL, L"InvalidOperation", NULL);
 
     if ( numElements > array->m_metadata.alloc )
     {
@@ -67,10 +67,10 @@
 {
     // Disallow possible re-allocation if object is shared.
     if (array->m_metadata.refCount > 1)
-        throw new MgInvalidOperationException(L"GisArrayHelper.SetAlloc", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"GisArrayHelper.SetAlloc", __LINE__, __WFILE__, NULL, L"InvalidOperation", NULL);
 
     if (numElements < array->m_metadata.size || numElements < MIN_ALLOC)
-        throw new MgInvalidOperationException(L"GisArrayHelper.SetAlloc", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"GisArrayHelper.SetAlloc", __LINE__, __WFILE__, NULL, L"InvalidOperation", NULL);
 
     if (array->m_metadata.alloc != numElements)
     {
@@ -130,8 +130,6 @@
      */
 
     GenericArray* newArray = (GenericArray*) new unsigned char[newAllocBytes];
-    if (0==newArray)
-        throw new MgOutOfMemoryException(L"GisArrayHelper.AllocMore", __LINE__, __WFILE__, NULL, L"", NULL);
 
     // Copy data from old array.
     if (0!=array)

Modified: sandbox/adsk/vik/Common/Geometry/Parse/LexAwkt.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Parse/LexAwkt.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Parse/LexAwkt.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -321,7 +321,7 @@
         if (!iswdigit(m_ch))
         {
             // Exponent shall contain digits
-            throw new MgNotFiniteNumberException(L"GisLexAwkt.getnumber", __LINE__, __WFILE__, NULL, L"", NULL);
+            throw new MgApplicationException(L"GisLexAwkt.getnumber", __LINE__, __WFILE__, NULL, L"NotFiniteNumber", NULL);
         }
         pstr = getdigits(pstr);
         *pstr = CHR_NULL;

Modified: sandbox/adsk/vik/Common/Geometry/Parse/ParseAwkt.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Parse/ParseAwkt.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Parse/ParseAwkt.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -81,7 +81,7 @@
 
     if (NULL == pwzAwkt)
     {
-        throw new MgNullArgumentException(L"MgParseAwkt.ParseAwkt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgParseAwkt.ParseAwkt", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     m_lex = new GisLexAwkt(pwzAwkt);
@@ -97,7 +97,7 @@
         arguments.Add(L"1");
         arguments.Add(pwzAwkt);
 
-        throw new MgInvalidArgumentException(L"MgParseAwkt.ParseAwkt",
+        throw new MgApplicationException(L"MgParseAwkt.ParseAwkt",
             __LINE__, __WFILE__, &arguments, L"MgInvalidAgfText", NULL);
     }
 
@@ -547,7 +547,7 @@
         m_types->GetCount() != m_dims->GetCount() ||
         m_types->GetCount() != m_starts->GetCount())
     {
-        throw new MgInvalidArgumentException(L"MgParseAwkt.ParseAwkt", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgParseAwkt.ParseAwkt", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     _types type = (_types) (*m_types)[0];
@@ -620,7 +620,7 @@
             arguments.Add(L"1");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgParseAwkt.SetGeometryType",
+            throw new MgApplicationException(L"MgParseAwkt.SetGeometryType",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidAgfText", NULL);
         }
         break;
@@ -807,7 +807,7 @@
             arguments.Add(L"0");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgParseAwkt.ParseAwkt",
+            throw new MgApplicationException(L"MgParseAwkt.ParseAwkt",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidAgfText", NULL);
         }
         break;

Modified: sandbox/adsk/vik/Common/Geometry/Parse/ParseAwktUtil.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Parse/ParseAwktUtil.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Parse/ParseAwktUtil.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -63,7 +63,7 @@
 
     if (ordinates == NULL)
     {
-        throw new MgNullArgumentException(L"MgParseAwktUtil.CreateCoordinateCollection", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgParseAwktUtil.CreateCoordinateCollection", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     Ptr<MgCoordinateCollection> coordCol = new MgCoordinateCollection();

Modified: sandbox/adsk/vik/Common/Geometry/Parse/StringUtility.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Parse/StringUtility.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Parse/StringUtility.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -270,31 +270,16 @@
 
 size_t GisStringUtility::StringLength(wchar_t* string)
 {
-    if (string == NULL)
-    {
-        throw new MgNullArgumentException(L"GisStringUtility.StringLength", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     return wcslen(string);
 }
 
 INT32 GisStringUtility::StringCompare(wchar_t* string1, wchar_t* string2)
 {
-    if (string1 == NULL || string2 == NULL)
-    {
-        throw new MgNullArgumentException(L"GisStringUtility.StringCompare", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     return wcscmp(string1, string2);
 }
 
 INT32 GisStringUtility::StringCompareNoCase(wchar_t* string1, wchar_t* string2)
 {
-    if (string1 == NULL || string2 == NULL)
-    {
-        throw new MgNullArgumentException(L"GisStringUtility.StringCompareNoCase", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
 #ifdef _WIN32
     return wcsicmp(string1, string2);
 #else
@@ -304,31 +289,16 @@
 
 void GisStringUtility::StringCopy(wchar_t* string1, wchar_t* string2)
 {
-    if (string1 == NULL || string2 == NULL)
-    {
-        throw new MgNullArgumentException(L"GisStringUtility.StringCopy", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     wcscpy(string1, string2);
 }
 
 void GisStringUtility::SubstringCopy(wchar_t* string1, wchar_t* string2, size_t length)
 {
-    if (string1 == NULL || string2 == NULL)
-    {
-        throw new MgNullArgumentException(L"GisStringUtility.SubstringCopy", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     wcsncpy(string1, string2, length);
 }
 
 void GisStringUtility::StringConcatenate(wchar_t* string1, wchar_t* string2)
 {
-    if (string1 == NULL)
-    {
-        throw new MgNullArgumentException(L"GisStringUtility.StringConcatenate", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     if (string2 == NULL)
         return;
 
@@ -337,10 +307,5 @@
 
 wchar_t* GisStringUtility::FindCharacter(wchar_t* string, wchar_t character)
 {
-    if (string == NULL)
-    {
-        throw new MgNullArgumentException(L"GisStringUtility.FindCharacter", __LINE__, __WFILE__, NULL, L"", NULL);
-    }
-
     return wcschr(string, character);
 }

Modified: sandbox/adsk/vik/Common/Geometry/Polygon.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Polygon.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Polygon.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -60,7 +60,7 @@
 MgLinearRing* MgPolygon::GetInteriorRing(INT32 index)
 {
     if (m_innerRings == NULL)
-        throw new MgArgumentOutOfRangeException(L"MgPolygon.GetInteriorRing", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgPolygon.GetInteriorRing", __LINE__, __WFILE__, NULL, L"ArgumentOutOfRange", NULL);
 
     return m_innerRings->GetItem(index);
 }

Modified: sandbox/adsk/vik/Common/Geometry/Spatial/MathUtility.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Spatial/MathUtility.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Spatial/MathUtility.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -79,7 +79,7 @@
     // initialize static vars
 
     if (a == NULL || eindex == NULL)
-        throw new MgNullArgumentException(L"GisMathUtility.LUDecompose", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"GisMathUtility.LUDecompose", __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
 
     if (n <= 0)
     {
@@ -90,7 +90,7 @@
         arguments.Add(L"1");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"GisMathUtility.LUDecompose",
+        throw new MgApplicationException(L"GisMathUtility.LUDecompose",
             __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryNoDimension", NULL);
     }
 
@@ -185,7 +185,7 @@
             arguments.Add(L"3");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"GisMathUtility.LUDecompose",
+            throw new MgApplicationException(L"GisMathUtility.LUDecompose",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryBadProportion", NULL);
         }
 

Modified: sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtility.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtility.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtility.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -49,8 +49,8 @@
 
     if ( geometry == NULL )
     {
-        throw new MgNullArgumentException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
-        __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
+        __LINE__, __WFILE__, NULL, L"NullArgument", NULL);
     }
 
     if ( maxSpacing < 0.0 )
@@ -62,7 +62,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
+        throw new MgApplicationException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -75,7 +75,7 @@
         arguments.Add(L"3");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
+        throw new MgApplicationException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -174,7 +174,7 @@
             arguments.Add(L"1");
             arguments.Add(buffer);
 
-            throw new MgInvalidArgumentException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
+            throw new MgApplicationException(L"MgSpatialUtility.ApproximateGeometryWithLineStrings",
                 __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryType", NULL);
         }
     }
@@ -251,7 +251,7 @@
                 arguments.Add(L"2");
                 arguments.Add(buffer);
 
-                throw new MgInvalidArgumentException(L"MgSpatialUtility.AppendLinearizedCurveSegmentsToDistinctCollection",
+                throw new MgApplicationException(L"MgSpatialUtility.AppendLinearizedCurveSegmentsToDistinctCollection",
                     __LINE__, __WFILE__, &arguments, L"MgInvalidGeometryComponentType", NULL);
             }
         }
@@ -562,7 +562,7 @@
     CHECKNULL(seg2To,   L"MgSpatialUtility.SegmentIntersection")
     if (magnitude < 1.0E-04)
     {
-        throw new MgInvalidArgumentException(L"MgSpatialUtility.SegmentIntersection", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgSpatialUtility.SegmentIntersection", __LINE__, __WFILE__, NULL, L"InvalidArgument", NULL);
     }
 
     // Compute a tolerance which is appropriate for the data we are working

Modified: sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp
===================================================================
--- sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp	2011-12-08 03:03:32 UTC (rev 6303)
+++ sandbox/adsk/vik/Common/Geometry/Spatial/SpatialUtilityCircularArc.cpp	2011-12-08 05:13:34 UTC (rev 6304)
@@ -339,7 +339,7 @@
     if (MgMathUtility::LUDecompose(3, a, eindex ) == 0)
     {
         // Zero result means that points were collinear.
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.ComputeCenterFromThreePositions", __LINE__, __WFILE__, NULL, L"", NULL);
+        throw new MgApplicationException(L"MgSpatialUtilityCircularArc.ComputeCenterFromThreePositions", __LINE__, __WFILE__, NULL, L"CollinearPoints", NULL);
     }
 
     /* Perform row exchanges for b */
@@ -388,7 +388,7 @@
         arguments.Add(L"2");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.Linearize",
+        throw new MgApplicationException(L"MgSpatialUtilityCircularArc.Linearize",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -401,7 +401,7 @@
         arguments.Add(L"3");
         arguments.Add(buffer);
 
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.Linearize",
+        throw new MgApplicationException(L"MgSpatialUtilityCircularArc.Linearize",
             __LINE__, __WFILE__, &arguments, L"MgValueCannotBeLessThanZero", NULL);
     }
 
@@ -540,7 +540,7 @@
 
         MgStringCollection arguments;
         arguments.Add(buffer);
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.BestArcStep", __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgSpatialUtilityCircularArc.BestArcStep", __LINE__, __WFILE__, &arguments, L"InvalidArgument", NULL);
     }
 
     if (MgMathUtility::SnapToZero(maximumError) <= 0.0)
@@ -550,7 +550,7 @@
 
         MgStringCollection arguments;
         arguments.Add(buffer);
-        throw new MgInvalidArgumentException(L"MgSpatialUtilityCircularArc.BestArcStep", __LINE__, __WFILE__, &arguments, L"", NULL);
+        throw new MgApplicationException(L"MgSpatialUtilityCircularArc.BestArcStep", __LINE__, __WFILE__, &arguments, L"InvalidArgument", NULL);
     }
 
     double arcStep = 0.0;



More information about the mapguide-commits mailing list