# Problem generating colors with GetColorsInQualityFamily

**URL:** <https://community.thinkgeo.com/t/problem-generating-colors-with-getcolorsinqualityfamily/2161>\
**Category:** WinForms\
**Created:** [January 29, 2013, 9:28am UTC](https://community.thinkgeo.com/t/problem-generating-colors-with-getcolorsinqualityfamily/2161 "2013-01-29T09:28:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/26943_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [January 29, 2013, 9:28am UTC](https://community.thinkgeo.com/t/problem-generating-colors-with-getcolorsinqualityfamily/2161/1 "2013-01-29T09:28:36Z")

</div>

Hello&nbsp;again,

I&nbsp;am&nbsp;in&nbsp;the&nbsp;process&nbsp;of&nbsp;implementing&nbsp;a&nbsp;Class&nbsp;Breaks&nbsp;style&nbsp;to&nbsp;and&nbsp;am&nbsp;using&nbsp;GeoColor.GetColorsInQualityFamily&nbsp;to&nbsp;obtain&nbsp;a&nbsp;ramp&nbsp;of&nbsp;colors&nbsp;to&nbsp;use&nbsp;for&nbsp;each&nbsp;class&nbsp;break.&nbsp;This&nbsp;function&nbsp;takes&nbsp;a&nbsp;start&nbsp;color,&nbsp;an&nbsp;end&nbsp;color,&nbsp;a&nbsp;number&nbsp;of&nbsp;colors&nbsp;and&nbsp;a&nbsp;color&nbsp;wheel&nbsp;direction&nbsp;as&nbsp;its&nbsp;parameters&nbsp;and&nbsp;it's&nbsp;just&nbsp;what&nbsp;I&nbsp;need.&nbsp;However,&nbsp;with&nbsp;some&nbsp;combinations&nbsp;of&nbsp;start&nbsp;and&nbsp;end&nbsp;colors&nbsp;a&nbsp;System.Overflow&nbsp;exception&nbsp;is&nbsp;thrown.&nbsp;

I&nbsp;am&nbsp;using&nbsp;Dev&nbsp;release&nbsp;6.0.251.0.

I&nbsp;have&nbsp;attached&nbsp;a&nbsp;sample&nbsp;project&nbsp;for&nbsp;your&nbsp;amusement.

Thanks,

Steve

&nbsp;

&nbsp;

[RangedTheme.zip](https://community.thinkgeo.com/uploads/default/original/1X/c30959333848aabd6f259b2ba9def87e07ddc67e.zip) (21 KB)

---

<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:** [February 4, 2013, 3:15am UTC](https://community.thinkgeo.com/t/problem-generating-colors-with-getcolorsinqualityfamily/2161/2 "2013-02-04T03:15:42Z")

</div>

Hello&nbsp;Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;very&nbsp;much&nbsp;for&nbsp;your&nbsp;sample&nbsp;and&nbsp;information,&nbsp;it’s&nbsp;a&nbsp;internal&nbsp;bug&nbsp;and&nbsp;we&nbsp;have&nbsp;fixed&nbsp;this&nbsp;now,&nbsp;please&nbsp;get&nbsp;6.0.267.0&nbsp;or&nbsp;6.0.0.267&nbsp;and&nbsp;have&nbsp;another&nbsp;try.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/26943_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [February 5, 2013, 9:17am UTC](https://community.thinkgeo.com/t/problem-generating-colors-with-getcolorsinqualityfamily/2161/3 "2013-02-05T09:17:24Z")

</div>

Hi&nbsp;Gary,&nbsp;  
&nbsp;&nbsp;  
&nbsp;It’s&nbsp;working&nbsp;now&nbsp;without&nbsp;the&nbsp;bug.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Steve

---

<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:** [February 5, 2013, 8:44pm UTC](https://community.thinkgeo.com/t/problem-generating-colors-with-getcolorsinqualityfamily/2161/4 "2013-02-05T20:44:52Z")

</div>

Hello&nbsp;Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;You&nbsp;are&nbsp;always&nbsp;welcome!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary
