Wrox Programmer Forums
|
BOOK: Beginning ArcGIS for Desktop Development using .NET
This is the forum to discuss the Wrox book Beginning ArcGIS for Desktop Development using .NET by Pouria Amirian; ISBN: 978-1-118-44254-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ArcGIS for Desktop Development using .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 22nd, 2013, 02:30 PM
Registered User
 
Join Date: Jan 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Marshal.ReleaseComObject(featureCursor);

Marshal.ReleaseComObject(featureCursor);

causes the button to crash at:

IPolygon5 unionPolygon = topoOperator.Union(arizona.Shape) as IPolygon5;

pg. 285

the code downloads do not include the:
Marshal.ReleaseComObject(featureCursor):

and the button works.

on pg. 287 it works....any suggestions?
Thanks
Robert





Similar Threads
Thread Thread Starter Forum Replies Last Post
Remoting,How to Force the Class Marshal By Value betree C# 0 February 10th, 2007 11:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.