# StackOverflowException

**URL:** <https://community.thinkgeo.com/t/stackoverflowexception/2149>\
**Category:** WinForms\
**Created:** [January 5, 2013, 11:38am UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149 "2013-01-05T11:38:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmad](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ahmad/32/24969_2.png) [@ahmad](https://community.thinkgeo.com/u/ahmad)\
**Post date:** [January 5, 2013, 11:38am UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/1 "2013-01-05T11:38:46Z")

</div>

&nbsp;Hello,&nbsp;I&nbsp;had&nbsp;an&nbsp;application&nbsp;running&nbsp;on&nbsp;version&nbsp;5.5,&nbsp;when&nbsp;i&nbsp;get&nbsp;the&nbsp;latest&nbsp;development&nbsp;builds&nbsp;for&nbsp;Desktop&nbsp;Edition&nbsp;(6.0.235.0),&nbsp;there&nbsp;was&nbsp;a&nbsp;StackOverFlowException&nbsp;which&nbsp;is&nbsp;craching&nbsp;(not&nbsp;throwing&nbsp;exception)&nbsp;the&nbsp;application&nbsp;IF&nbsp;i&nbsp;run&nbsp;with&nbsp;DEBUG&nbsp;mode,&nbsp;the&nbsp;problem&nbsp;was&nbsp;solved&nbsp;directly&nbsp;when&nbsp;i&nbsp;removed&nbsp;the&nbsp;"DEBUG"&nbsp;constant&nbsp;and&nbsp;tested&nbsp;the&nbsp;application,

Please&nbsp;take&nbsp;this&nbsp;in&nbsp;consideration&nbsp;in&nbsp;the&nbsp;next&nbsp;releases.

&nbsp;

Another&nbsp;problem&nbsp;i&nbsp;had&nbsp;when&nbsp;i&nbsp;upgraded&nbsp;to&nbsp;the&nbsp;latest&nbsp;version&nbsp;is&nbsp;with&nbsp;SqlTypes&nbsp;dll&nbsp;!!&nbsp;why&nbsp;this&nbsp;dll&nbsp;is&nbsp;referenced&nbsp;in&nbsp;the&nbsp;library&nbsp;directly,&nbsp;it&nbsp;make&nbsp;many&nbsp;problems,&nbsp;cause&nbsp;it&nbsp;did&nbsp;require&nbsp;a&nbsp;file&nbsp;called&nbsp;"sqlspatial110.dll"&nbsp;which&nbsp;is&nbsp;not&nbsp;existing&nbsp;with&nbsp;the&nbsp;framework,&nbsp;nor&nbsp;with&nbsp;vcredist&nbsp;2010,&nbsp;i&nbsp;did&nbsp;solved&nbsp;this&nbsp;problem&nbsp;on&nbsp;client&nbsp;side&nbsp;by:&nbsp;installing&nbsp;a&nbsp;specific&nbsp;version&nbsp;of&nbsp;vcredist&nbsp;2010,&nbsp;and&nbsp;copied&nbsp;the&nbsp;missing&nbsp;dll&nbsp;beside&nbsp;my&nbsp;application&nbsp;from&nbsp;my&nbsp;pc&nbsp;where&nbsp;i&nbsp;have&nbsp;sqlserver.&nbsp;But&nbsp;really&nbsp;this&nbsp;is&nbsp;confusing&nbsp;me&nbsp;a&nbsp;lot,&nbsp;i&nbsp;think&nbsp;it&nbsp;is&nbsp;very&nbsp;simple&nbsp;to&nbsp;separate&nbsp;the&nbsp;SqlLayer&nbsp;to&nbsp;another&nbsp;dll,&nbsp;wihch&nbsp;will&nbsp;be&nbsp;used&nbsp;only&nbsp;with&nbsp;ones&nbsp;who&nbsp;had&nbsp;sqlserver&nbsp;installed&nbsp;!!

Thanks

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [January 5, 2013, 11:20pm UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/2 "2013-01-05T23:20:29Z")

</div>

Hello&nbsp;ahmad,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thans&nbsp;for&nbsp;your&nbsp;post,&nbsp;can&nbsp;you&nbsp;give&nbsp;me&nbsp;information&nbsp;how&nbsp;can&nbsp;I&nbsp;recreate&nbsp;your&nbsp;first&nbsp;problem?&nbsp;  
&nbsp;&nbsp;  
&nbsp;And&nbsp;for&nbsp;the&nbsp;second&nbsp;problem&nbsp;we&nbsp;only&nbsp;change&nbsp;this&nbsp;on&nbsp;development&nbsp;branch,&nbsp;so&nbsp;if&nbsp;you&nbsp;don’t&nbsp;want&nbsp;to&nbsp;use&nbsp;the&nbsp;new&nbsp;SqlTypes,&nbsp;you&nbsp;can&nbsp;use&nbsp;release&nbsp;branch&nbsp;6.0.0.235,&nbsp;we&nbsp;won’t&nbsp;do&nbsp;any&nbsp;breaking&nbsp;changes&nbsp;on&nbsp;release&nbsp;branch&nbsp;but&nbsp;will&nbsp;do&nbsp;it&nbsp;on&nbsp;development&nbsp;branch,&nbsp;and&nbsp;then&nbsp;synchronize&nbsp;them&nbsp;when&nbsp;the&nbsp;public&nbsp;release(7.0&nbsp;next&nbsp;time).&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![ahmad](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ahmad/32/24969_2.png) [@ahmad](https://community.thinkgeo.com/u/ahmad)\
**Post date:** [January 7, 2013, 11:51am UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/3 "2013-01-07T11:51:36Z")

</div>

&nbsp;I&nbsp;will&nbsp;not&nbsp;be&nbsp;able&nbsp;to&nbsp;deliver&nbsp;a&nbsp;sample&nbsp;because&nbsp;it&nbsp;is&nbsp;a&nbsp;part&nbsp;of&nbsp;a&nbsp;big&nbsp;project,

I&nbsp;will&nbsp;help&nbsp;you&nbsp;by&nbsp;telling&nbsp;that&nbsp;is&nbsp;a&nbsp;simple&nbsp;map,&nbsp;containg&nbsp;3&nbsp;shapefiles,&nbsp;with&nbsp;simple&nbsp;symbology&nbsp;&&nbsp;label.&nbsp;And&nbsp;when&nbsp;i&nbsp;run&nbsp;it&nbsp;on&nbsp;DEBUG&nbsp;mode,&nbsp;and&nbsp;moving&nbsp;the&nbsp;mouse&nbsp;over&nbsp;the&nbsp;map,&nbsp;the&nbsp;application&nbsp;craches&nbsp;(not&nbsp;an&nbsp;exception),&nbsp;the&nbsp;windows&nbsp;error&nbsp;appears.&nbsp;(StackOverFlow&nbsp;Exception).

just&nbsp;when&nbsp;i&nbsp;run&nbsp;without&nbsp;the&nbsp;DEBUG&nbsp;constant,&nbsp;nothing&nbsp;happens.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [January 7, 2013, 11:00pm UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/4 "2013-01-07T23:00:21Z")

</div>

Hello&nbsp;ahmad,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;further&nbsp;information,&nbsp;but&nbsp;follow&nbsp;your&nbsp;instruction&nbsp;and&nbsp;I&nbsp;still&nbsp;can’t&nbsp;recreate&nbsp;the&nbsp;problem,&nbsp;can&nbsp;you&nbsp;make&nbsp;this&nbsp;simple&nbsp;project&nbsp;and&nbsp;refer&nbsp;the&nbsp;dlls&nbsp;you&nbsp;are&nbsp;using,&nbsp;and&nbsp;sent&nbsp;to&nbsp;[forumsupport@thinkgeo.com](mailto:forumsupport@thinkgeo.com)?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Once&nbsp;I&nbsp;can&nbsp;recreate&nbsp;your&nbsp;problem,&nbsp;it’s&nbsp;easy&nbsp;to&nbsp;resolve&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;the&nbsp;inconvenience,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [January 27, 2013, 4:38pm UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/5 "2013-01-27T16:38:13Z")

</div>

&nbsp;I'm&nbsp;not&nbsp;sure&nbsp;I&nbsp;can&nbsp;create&nbsp;a&nbsp;small&nbsp;sample&nbsp;to&nbsp;illustrate&nbsp;this,&nbsp;but&nbsp;it&nbsp;just&nbsp;happened&nbsp;to&nbsp;us,&nbsp;too.&nbsp;&nbsp;&nbsp;If&nbsp;I&nbsp;run&nbsp;in&nbsp;Debug&nbsp;in&nbsp;the&nbsp;IDE,&nbsp;I'm&nbsp;fine.&nbsp;&nbsp;If&nbsp;I&nbsp;run&nbsp;my&nbsp;Release&nbsp;app,&nbsp;I&nbsp;get&nbsp;a&nbsp;stack&nbsp;overflow&nbsp;inside&nbsp;the&nbsp;DesktopEdition&nbsp;dll.

This&nbsp;started&nbsp;last&nbsp;Thursday,&nbsp;when&nbsp;I&nbsp;downloaded&nbsp;the&nbsp;6.0.0.257&nbsp;dll's.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [January 28, 2013, 3:58am UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/6 "2013-01-28T03:58:27Z")

</div>

Hello&nbsp;Ted,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;further&nbsp;information,&nbsp;can&nbsp;you&nbsp;get&nbsp;the&nbsp;exception&nbsp;message&nbsp;or&nbsp;no&nbsp;exception&nbsp;like&nbsp;just&nbsp;like&nbsp;ahmad?&nbsp;Sorry&nbsp;I’ve&nbsp;no&nbsp;idea&nbsp;how&nbsp;to&nbsp;begin&nbsp;to&nbsp;dig&nbsp;in.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;the&nbsp;inconvenience.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [January 28, 2013, 4:01am UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/7 "2013-01-28T04:01:29Z")

</div>

Yes,&nbsp;I&nbsp;will&nbsp;try.&nbsp;&nbsp;&nbsp;I&nbsp;was&nbsp;actually&nbsp;able&nbsp;to&nbsp;determine&nbsp;this&nbsp;much&nbsp;because&nbsp;Windows&nbsp;gave&nbsp;me&nbsp;an&nbsp;option&nbsp;to&nbsp;debug&nbsp;the&nbsp;crashed&nbsp;.exe,&nbsp;and&nbsp;that&nbsp;was&nbsp;the&nbsp;exception&nbsp;that&nbsp;was&nbsp;thrown.&nbsp;&nbsp;&nbsp;But&nbsp;I&nbsp;failed&nbsp;to&nbsp;grab&nbsp;any&nbsp;kind&nbsp;of&nbsp;stack&nbsp;trace&nbsp;or&nbsp;anything.&nbsp;&nbsp;&nbsp;I&nbsp;will&nbsp;try&nbsp;again&nbsp;later&nbsp;today.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [January 29, 2013, 3:59am UTC](https://community.thinkgeo.com/t/stackoverflowexception/2149/8 "2013-01-29T03:59:31Z")

</div>

Hello&nbsp;Ted,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;help,&nbsp;once&nbsp;we&nbsp;can&nbsp;recreate&nbsp;the&nbsp;problem,&nbsp;we&nbsp;can&nbsp;begin&nbsp;working&nbsp;on&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary
