laptop and a wrench

Bug

IObjectCopy.Overwrite returns null values.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM000174
SubmittedOctober 28, 2005
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.1
Version Fixed9.2
StatusFixed

Workaround

You can't pass in an ATL smart type for the data to overwrite, but must declare it as a simple pointer to IUnknownTo make the sample code work, change the var type of pToOverwriteMap from IUnknownPtr to IUnknown***** Please document this usage in the documentation ****A good place to document the proper usage of the IUnknown* parameter (as opposed to the IUnknownPtr type) would be either:(a) Since this likely affects other utility methods, esriSystem library overview; or(b) The discussion on ATL smart types, found here:<a href="http://edndoc.esri.com/arcobjects/9.1/default.asp?URL=/arcobjects/9.1/ArcGISDevHelp/DevelopmentEnvs/COM/VCpp/SmartTypes.htm" target="_blank">http://edndoc.esri.com/arcobjects/9.1/default.asp?URL=/arcobjects/9.1/ArcGISDevHelp/DevelopmentEnvs/COM/VCpp/SmartTypes.htm</a>

Steps to Reproduce

Bug ID: NIM000174

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options