# TIF files not displaying correctly in app or Map Suite Explorer

**URL:** <https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824>\
**Category:** WinForms\
**Created:** [October 31, 2011, 12:21am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824 "2011-10-31T00:21:31Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [October 31, 2011, 12:21am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/1 "2011-10-31T00:21:31Z")

</div>

I&nbsp;have&nbsp;a&nbsp;TIF/TWF&nbsp;file&nbsp;which&nbsp;displays&nbsp;badly&nbsp;in&nbsp;my&nbsp;app&nbsp;when&nbsp;I&nbsp;use&nbsp;the&nbsp;code&nbsp;from&nbsp;this&nbsp;link:

gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/7905/afv/topic/Default.aspx#21950

as&nbsp;shown&nbsp;in&nbsp;the&nbsp;screen&nbsp;dump&nbsp;below&nbsp;-&nbsp;the&nbsp;image&nbsp;is&nbsp;all&nbsp;torn&nbsp;up.

 ![](https://community.thinkgeo.com/uploads/default/original/1X/6181c4f19bd05c6c1606c628a7855298275a56ac.png)

So,&nbsp;I&nbsp;thought&nbsp;I&nbsp;would&nbsp;test&nbsp;it&nbsp;in&nbsp;MapSuite&nbsp;Explorer.&nbsp;I&nbsp;was&nbsp;surprised&nbsp;to&nbsp;see&nbsp;that&nbsp;the&nbsp;image&nbsp;was&nbsp;distorted&nbsp;in&nbsp;different&nbsp;ways&nbsp;depending&nbsp;on&nbsp;whether&nbsp;I&nbsp;made&nbsp;the&nbsp;Explorer&nbsp;window&nbsp;size&nbsp;bigger&nbsp;vertically&nbsp;or&nbsp;horizontally.

Why&nbsp;would&nbsp;Explorer&nbsp;do&nbsp;this?&nbsp;Surely&nbsp;the&nbsp;map&nbsp;shouldn't&nbsp;change&nbsp;shape&nbsp;just&nbsp;because&nbsp;I&nbsp;want&nbsp;to&nbsp;see&nbsp;more&nbsp;of&nbsp;it?&nbsp;Instead&nbsp;it&nbsp;stretches&nbsp;out&nbsp;the&nbsp;data&nbsp;to&nbsp;fit&nbsp;the&nbsp;larger&nbsp;area&nbsp;instead&nbsp;of&nbsp;showing&nbsp;me&nbsp;more&nbsp;of&nbsp;the&nbsp;data.&nbsp;2&nbsp;examples&nbsp;below:

 ![](https://community.thinkgeo.com/uploads/default/original/1X/50db41242a8811669ddf012d5744fcaa5804a0aa.png)

 ![](https://community.thinkgeo.com/uploads/default/original/1X/f46ef3d4cb31bf9d6fc83dd91f49979a3cdef983.png)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 1, 2011, 2:26pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/2 "2011-11-01T14:26:04Z")

</div>

Hi&nbsp;David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;your&nbsp;problem&nbsp;should&nbsp;because&nbsp;the&nbsp;information&nbsp;in&nbsp;TWF&nbsp;record&nbsp;different&nbsp;projection&nbsp;with&nbsp;your&nbsp;map&nbsp;using.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;make&nbsp;sure&nbsp;the&nbsp;projection&nbsp;of&nbsp;your&nbsp;TWF&nbsp;file?&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;the&nbsp;stretching&nbsp;in&nbsp;exporler&nbsp;because&nbsp;our&nbsp;Explorer&nbsp;don’t&nbsp;load&nbsp;projection,&nbsp;so&nbsp;it&nbsp;will&nbsp;direction&nbsp;load&nbsp;image&nbsp;file&nbsp;and&nbsp;after&nbsp;that&nbsp;the&nbsp;image&nbsp;will&nbsp;stretching&nbsp;together&nbsp;with&nbsp;the&nbsp;map&nbsp;control.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [November 7, 2011, 11:57pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/3 "2011-11-07T23:57:03Z")

</div>

As&nbsp;far&nbsp;as&nbsp;I&nbsp;can&nbsp;determine,&nbsp;the&nbsp;tfw&nbsp;is&nbsp;fine&nbsp;-&nbsp;these&nbsp;files&nbsp;are&nbsp;from&nbsp;a&nbsp;reputable&nbsp;supplier.&nbsp;Also,&nbsp;as&nbsp;can&nbsp;be&nbsp;seen&nbsp;from&nbsp;the&nbsp;2&nbsp;screen&nbsp;dumps&nbsp;below,&nbsp;Manifold&nbsp;has&nbsp;no&nbsp;problem&nbsp;both&nbsp;showing&nbsp;an&nbsp;image&nbsp;that&nbsp;is&nbsp;not&nbsp;"ripped"&nbsp;and&nbsp;is&nbsp;geolocated&nbsp;properly.  
  
  
  
As&nbsp;for&nbsp;Map&nbsp;Suite&nbsp;Explorer&nbsp;not&nbsp;loading&nbsp;the&nbsp;projection&nbsp;with&nbsp;the&nbsp;tiff&nbsp;file,&nbsp;that&nbsp;seems&nbsp;like&nbsp;a&nbsp;deficiency&nbsp;to&nbsp;me&nbsp;-&nbsp;the&nbsp;Explorer&nbsp;is&nbsp;basically&nbsp;acting&nbsp;like&nbsp;a&nbsp;simple&nbsp;image&nbsp;viewer&nbsp;rather&nbsp;than&nbsp;a&nbsp;raster&nbsp;map&nbsp;viewer.  
  
  
  
So,&nbsp;any&nbsp;ideas?&nbsp;I&nbsp;can&nbsp;send&nbsp;a&nbsp;copy&nbsp;of&nbsp;the&nbsp;TIF/TWF&nbsp;file&nbsp;if&nbsp;needed.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/e/e7b8dc55d93f966e83c4b4a132d992856d9e9f99.png)

 ![](https://community.thinkgeo.com/uploads/default/original/2X/4/493ed93514b78ab9e41f48662c90d90c39469087.jpg)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [November 8, 2011, 1:06pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/4 "2011-11-08T13:06:43Z")

</div>

David,&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;point&nbsp;this&nbsp;problem,&nbsp;I&nbsp;am&nbsp;sure&nbsp;we&nbsp;will&nbsp;improve&nbsp;our&nbsp;Explorer&nbsp;better&nbsp;in&nbsp;future.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Your&nbsp;iamge&nbsp;files&nbsp;for&nbsp;test&nbsp;or&nbsp;a&nbsp;simple&nbsp;sample&nbsp;contains&nbsp;your&nbsp;images&nbsp;will&nbsp;helpful&nbsp;for&nbsp;us,&nbsp;please&nbsp;upload&nbsp;that&nbsp;to&nbsp;our&nbsp;FTP&nbsp;or&nbsp;sent&nbsp;that&nbsp;to&nbsp;[support@thinkgeo.com](mailto:support@thinkgeo.com)&nbsp;and&nbsp;tell&nbsp;him&nbsp;forward&nbsp;to&nbsp;me.&nbsp;  
&nbsp;&nbsp;  
&nbsp;And&nbsp;have&nbsp;you&nbsp;tried&nbsp;to&nbsp;load&nbsp;the&nbsp;files&nbsp;in&nbsp;some&nbsp;other&nbsp;data&nbsp;viewer&nbsp;for&nbsp;test?&nbsp;If&nbsp;you&nbsp;did&nbsp;could&nbsp;you&nbsp;please&nbsp;also&nbsp;sent&nbsp;the&nbsp;result&nbsp;to&nbsp;me.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [April 10, 2012, 8:30am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/5 "2012-04-10T08:30:21Z")

</div>

I&nbsp;sent&nbsp;the&nbsp;file&nbsp;to&nbsp;you&nbsp;a&nbsp;few&nbsp;days/a&nbsp;week&nbsp;ago.&nbsp;Will&nbsp;the&nbsp;results&nbsp;of&nbsp;the&nbsp;testing&nbsp;be&nbsp;posted&nbsp;here?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Dave

---

<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:** [April 11, 2012, 1:25pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/6 "2012-04-11T13:25:22Z")

</div>

Hello&nbsp;David,

Sorry&nbsp;for&nbsp;waiting,&nbsp;for&nbsp;this&nbsp;problem,&nbsp;we&nbsp;suggest&nbsp;you&nbsp;use&nbsp;GdiPlusRasterLayer&nbsp;to&nbsp;load&nbsp;the&nbsp;data&nbsp;now.&nbsp;It&nbsp;tested&nbsp;work&nbsp;well&nbsp;here.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/f/f4180874a0f7454111dbedb97ac23a02011778e8.jpg)

The&nbsp;data&nbsp;from&nbsp;customer&nbsp;is&nbsp;tiled&nbsp;tiff&nbsp;data,&nbsp;our&nbsp;GeoTiffRasterLayer&nbsp;cannot&nbsp;work&nbsp;so&nbsp;well&nbsp;for&nbsp;this&nbsp;type&nbsp;now.  
  
If&nbsp;we&nbsp;choose&nbsp;UnmanagedLibTiff&nbsp;mode,&nbsp;the&nbsp;result&nbsp;will&nbsp;works&nbsp;like&nbsp;this.

 ![](https://community.thinkgeo.com/uploads/default/original/2X/d/dc632dde115a68af9f721541130bc3d0a746bf18.jpg)

If&nbsp;we&nbsp;choose&nbsp;ManagedLibTiff,&nbsp;we&nbsp;will&nbsp;load&nbsp;the&nbsp;whole&nbsp;tiff&nbsp;once&nbsp;only&nbsp;and&nbsp;takes&nbsp;so&nbsp;many&nbsp;memory,&nbsp;and&nbsp;maybe&nbsp;throw&nbsp;memory&nbsp;is&nbsp;not&nbsp;enough&nbsp;exception.

So&nbsp;the&nbsp;GdiPlusRasterLayer&nbsp;should&nbsp;be&nbsp;better&nbsp;choice&nbsp;now.

Please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know&nbsp;your&nbsp;queries.

Regards,

Gary

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [April 12, 2012, 11:34am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/7 "2012-04-12T11:34:22Z")

</div>

Ok,&nbsp;I&nbsp;changed&nbsp;my&nbsp;code&nbsp;and&nbsp;this&nbsp;appears&nbsp;to&nbsp;have&nbsp;fixed&nbsp;the&nbsp;problem&nbsp;on&nbsp;my&nbsp;development&nbsp;machine.&nbsp;However,&nbsp;I&nbsp;installed&nbsp;the&nbsp;new&nbsp;app&nbsp;(after&nbsp;rebuilding&nbsp;the&nbsp;setup)&nbsp;on&nbsp;a&nbsp;test&nbsp;machine&nbsp;and&nbsp;I&nbsp;get&nbsp;the&nbsp;following&nbsp;when&nbsp;trying&nbsp;to&nbsp;load&nbsp;in&nbsp;the&nbsp;TIF&nbsp;file:&nbsp;  
&nbsp;&nbsp;  
&nbsp;13/04/2012&nbsp;00:22:59:&nbsp;Form1\_Shown():&nbsp;GetVersion=MapSuiteCore:5.5.0.91;DesktopEdition:5.5.0.91&nbsp;  
&nbsp;13/04/2012&nbsp;00:22:59:&nbsp;PopulateTab\_Map():&nbsp;BackgroundType=Raster&nbsp;  
&nbsp;13/04/2012&nbsp;00:23:00:&nbsp;MakeRasterMap():&nbsp;Start.&nbsp;RasterMap=C:\Countries\71027img.tif&nbsp;  
&nbsp;13/04/2012&nbsp;00:23:00:&nbsp;MakeRasterMap():&nbsp;Exception.&nbsp;Message=GDI+&nbsp;threw&nbsp;a&nbsp;status&nbsp;error&nbsp;code.&nbsp;  
&nbsp;13/04/2012&nbsp;00:23:00:&nbsp;MakeRasterMap():&nbsp;Exception.&nbsp;StackTrace=&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.UnsafeHelper.FastLoadImageFromFile(String&nbsp;pathFileName)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.GdiPlusRasterSource.OpenCore()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.RasterSource.Open()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.RasterLayer.OpenCore()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.Layer.Open()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas&nbsp;canvas)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.Overlay.kBQ=(GeoCanvas&nbsp;kRQ=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas&nbsp;canvas)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.0xM=(IEnumerable`1&nbsp;rhc=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.0RM=(RectangleShape&nbsp;rRc=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.HBQ=()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.GBQ=(Int32&nbsp;4Bc=)&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;MVMControl3.Form1.MakeRasterMap()&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;tried&nbsp;searching&nbsp;these&nbsp;forums&nbsp;for&nbsp;“GDI+&nbsp;threw&nbsp;a&nbsp;status&nbsp;error&nbsp;code”&nbsp;but&nbsp;the&nbsp;search&nbsp;functionality&nbsp;doesn’t&nbsp;like&nbsp;the&nbsp;“+”&nbsp;sign&nbsp;in&nbsp;the&nbsp;middle&nbsp;so&nbsp;even&nbsp;though&nbsp;I&nbsp;didn’t&nbsp;find&nbsp;any&nbsp;answer,&nbsp;there&nbsp;may&nbsp;be&nbsp;something&nbsp;hidden&nbsp;that&nbsp;I&nbsp;didn’t&nbsp;see.&nbsp;Any&nbsp;ideas&nbsp;what&nbsp;might&nbsp;cause&nbsp;this?

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [April 13, 2012, 12:51am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/8 "2012-04-13T00:51:10Z")

</div>

Hi&nbsp;David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;This&nbsp;exception&nbsp;is&nbsp;our&nbsp;custom&nbsp;exception,&nbsp;could&nbsp;you&nbsp;review&nbsp;whether&nbsp;the&nbsp;file&nbsp;“C:\Countries\71027img.tif”&nbsp;existing&nbsp;in&nbsp;your&nbsp;test&nbsp;machine&nbsp;and&nbsp;the&nbsp;application&nbsp;have&nbsp;security&nbsp;to&nbsp;read&nbsp;it?&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;make&nbsp;sure&nbsp;everything&nbsp;gose&nbsp;well&nbsp;there,&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;did&nbsp;some&nbsp;query&nbsp;about&nbsp;GdipLoadImageFromFile&nbsp;function&nbsp;from&nbsp;gdiplus.dll.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Here&nbsp;is&nbsp;how&nbsp;we&nbsp;load&nbsp;the&nbsp;tiff&nbsp;image&nbsp;code&nbsp;for&nbsp;reference:&nbsp;  
&nbsp;&nbsp;  
&nbsp;` [DllImport(“gdiplus.dll”, CharSet = CharSet.Unicode)]public static extern int GdipLoadImageFromFile(string filename, out IntPtr image);IntPtr loadingImage = IntPtr.Zero;GdipLoadImageFromFile(pathFileName, out loadingImage)`&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;the&nbsp;result&nbsp;don’t&nbsp;equal&nbsp;zero,&nbsp;you&nbsp;will&nbsp;get&nbsp;the&nbsp;exception.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [April 16, 2012, 4:08am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/9 "2012-04-16T04:08:38Z")

</div>

I&nbsp;am&nbsp;still&nbsp;working&nbsp;on&nbsp;this&nbsp;-&nbsp;I&nbsp;can&nbsp;open&nbsp;the&nbsp;file&nbsp;on&nbsp;this&nbsp;test&nbsp;machine&nbsp;using&nbsp;IrfanView&nbsp;but&nbsp;not&nbsp;Paint&nbsp;or&nbsp;MS&nbsp;Picture&nbsp;Viewer.&nbsp;So&nbsp;I&nbsp;am&nbsp;actually&nbsp;a&nbsp;little&nbsp;more&nbsp;confused&nbsp;now.&nbsp;  
&nbsp;Also,&nbsp;browsing&nbsp;around&nbsp;I&nbsp;can&nbsp;see&nbsp;I&nbsp;have&nbsp;about&nbsp;7&nbsp;gdiplus.dll&nbsp;files&nbsp;on&nbsp;these&nbsp;computers,&nbsp;with&nbsp;3&nbsp;or&nbsp;4&nbsp;different&nbsp;versions.&nbsp;Which&nbsp;instance&nbsp;of&nbsp;gdiplus.dll&nbsp;does&nbsp;ThinkGeo&nbsp;use?&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;None&nbsp;of&nbsp;the&nbsp;gdiplus.dll&nbsp;files&nbsp;that&nbsp;I&nbsp;can&nbsp;see&nbsp;appear&nbsp;to&nbsp;be&nbsp;in&nbsp;places&nbsp;where&nbsp;I&nbsp;would&nbsp;expect&nbsp;ThinkGeo&nbsp;to&nbsp;look&nbsp;-&nbsp;most&nbsp;of&nbsp;them&nbsp;are&nbsp;in&nbsp;application&nbsp;directories&nbsp;for&nbsp;other&nbsp;applications.&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;see&nbsp;if&nbsp;there&nbsp;is&nbsp;some&nbsp;way&nbsp;I&nbsp;can&nbsp;tell&nbsp;which&nbsp;version&nbsp;of&nbsp;gdiplus.dll&nbsp;ThinkGeo&nbsp;is&nbsp;using&nbsp;on&nbsp;each&nbsp;computer. **&nbsp;**

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [April 16, 2012, 9:15pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/10 "2012-04-16T21:15:46Z")

</div>

Hi&nbsp;David,&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;Gdiplus&nbsp;related&nbsp;with&nbsp;the&nbsp;.net&nbsp;framework&nbsp;version&nbsp;you&nbsp;selected,&nbsp;and&nbsp;I&nbsp;think&nbsp;which&nbsp;we&nbsp;are&nbsp;using&nbsp;should&nbsp;contained&nbsp;in&nbsp;System.Drawing.dll.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Maybe&nbsp;you&nbsp;want&nbsp;to&nbsp;check&nbsp;and&nbsp;reinstall&nbsp;the&nbsp;necessary&nbsp;.net&nbsp;framework&nbsp;in&nbsp;your&nbsp;test&nbsp;machine.&nbsp;  
&nbsp;&nbsp;  
&nbsp;And&nbsp;could&nbsp;you&nbsp;open&nbsp;your&nbsp;tiff&nbsp;file&nbsp;via&nbsp;MS&nbsp;Picture&nbsp;Viewer&nbsp;in&nbsp;your&nbsp;development&nbsp;machine?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [April 17, 2012, 9:02pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/11 "2012-04-17T21:02:48Z")

</div>

So&nbsp;far&nbsp;all&nbsp;indications&nbsp;are&nbsp;that&nbsp;it&nbsp;only&nbsp;works&nbsp;on&nbsp;Windows&nbsp;7......&nbsp;5&nbsp;computers&nbsp;tested&nbsp;and&nbsp;all&nbsp;Windows&nbsp;7&nbsp;computers&nbsp;work&nbsp;but&nbsp;XP&nbsp;and&nbsp;Vista&nbsp;both&nbsp;fail&nbsp;with&nbsp;the&nbsp;"GDI+&nbsp;threw&nbsp;a&nbsp;status&nbsp;error&nbsp;code."&nbsp;exception.&nbsp;  
  
  
  
===============================================================================================&nbsp;  
  
ComputerName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MapSuiteVersion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DotNetVersion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OSVersion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Working?&nbsp;  
  
===============================================================================================&nbsp;  
  
CM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MapSuiteCore:5.5.0.91,&nbsp;DesktopEdition:5.5.0.91&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v2.0.50727&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Windows&nbsp;7&nbsp;Professional&nbsp;SP1&nbsp;64&nbsp;bit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yes&nbsp;  
  
HP\_Pav&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MapsuiteCore:5.5.0.91,&nbsp;DesktopEdition:5.5.0.91&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v2.0.50727&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XP&nbsp;Pro&nbsp;SP3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No&nbsp;  
  
Workshop&nbsp;&nbsp;&nbsp;&nbsp;MapSuiteCore:5.5.0.91,&nbsp;DesktopEdition:5.5.0.91&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v2.0.50727&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vista&nbsp;Home&nbsp;Basic&nbsp;SP2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No&nbsp;  
  
MVMWEB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MapSuiteCore:5.5.0.91,&nbsp;DesktopEdition:5.5.0.91&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v2.0.50727&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Windows&nbsp;7&nbsp;Professional&nbsp;SP1&nbsp;32&nbsp;bit&nbsp;&nbsp;&nbsp;&nbsp;Yes&nbsp;  
  
ASUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MapSuiteCore:5.5.0.91,&nbsp;DesktopEdition:5.5.0.91&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;v2.0.50727&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Windows&nbsp;7&nbsp;Home&nbsp;Premium&nbsp;SP1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yes&nbsp;  
  
  
  
I&nbsp;guess&nbsp;this&nbsp;should&nbsp;work&nbsp;on&nbsp;Vista&nbsp;and&nbsp;XP&nbsp;before&nbsp;I&nbsp;go&nbsp;chasing&nbsp;anything&nbsp;else?&nbsp;I&nbsp;notice&nbsp;someone&nbsp;else&nbsp;using&nbsp;XP&nbsp;and&nbsp;having&nbsp;a&nbsp;similar&nbsp;error&nbsp;on&nbsp;this&nbsp;topic:

gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6073/afv/topic/Default.aspx

Also&nbsp;I&nbsp;should&nbsp;note&nbsp;that&nbsp;I&nbsp;can&nbsp;OCCASIONALLY&nbsp;and&nbsp;not&nbsp;reproducibly&nbsp;get&nbsp;the&nbsp;exception&nbsp;in&nbsp;my&nbsp;development&nbsp;machine&nbsp;(Win&nbsp;7&nbsp;64&nbsp;bit&nbsp;with&nbsp;6GB&nbsp;of&nbsp;RAM)&nbsp;if&nbsp;I&nbsp;try&nbsp;to&nbsp;include&nbsp;about&nbsp;2.2GB&nbsp;of&nbsp;raster&nbsp;images&nbsp;and&nbsp;physical&nbsp;memory&nbsp;usage&nbsp;goes&nbsp;up&nbsp;past&nbsp;95%.&nbsp;  
  
On&nbsp;the&nbsp;non&nbsp;Win&nbsp;7&nbsp;machines&nbsp;the&nbsp;error&nbsp;occurs&nbsp;immediately&nbsp;and&nbsp;before&nbsp;memory&nbsp;usage&nbsp;goes&nbsp;up&nbsp;significantly.

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [April 25, 2012, 1:03am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/12 "2012-04-25T01:03:23Z")

</div>

Any&nbsp;more&nbsp;info&nbsp;on&nbsp;this&nbsp;problem?

Thanks.

Dave

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@Ryan](https://community.thinkgeo.com/u/Ryan)\
**Post date:** [April 30, 2012, 5:17pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/13 "2012-04-30T17:17:07Z")

</div>

Hi&nbsp;David,&nbsp;  
  
  
  
Are&nbsp;you&nbsp;utilizing&nbsp;our&nbsp;MergeModule&nbsp;when&nbsp;you&nbsp;are&nbsp;installing&nbsp;your&nbsp;application?&nbsp;  
  
  
  
This&nbsp;MergeModule&nbsp;includes&nbsp;all&nbsp;the&nbsp;necessary&nbsp;'system32'&nbsp;dlls&nbsp;that&nbsp;your&nbsp;client&nbsp;machines&nbsp;need&nbsp;to&nbsp;display&nbsp;all&nbsp;the&nbsp;Map&nbsp;Suite&nbsp;supported&nbsp;raster&nbsp;types.&nbsp;  
  
Check&nbsp;out&nbsp;the&nbsp;following&nbsp;link&nbsp;for&nbsp;more&nbsp;information&nbsp;on&nbsp;what&nbsp;needs&nbsp;to&nbsp;be&nbsp;included&nbsp;when&nbsp;deploying&nbsp;your&nbsp;Map&nbsp;Suite&nbsp;Desktop&nbsp;Edition&nbsp;application:&nbsp;[wiki.thinkgeo.com/wiki/Map\_S...ment\_Guide](http://wiki.thinkgeo.com/wiki/Map_Suite_Desktop_Edition_Deployment_Guide)

---

<div class="post-metadata">

**Author:** ![David4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@David4](https://community.thinkgeo.com/u/David4)\
**Post date:** [May 7, 2012, 7:40am UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/14 "2012-05-07T07:40:51Z")

</div>

I&nbsp;wasn’t&nbsp;using&nbsp;MergeModule…but&nbsp;I&nbsp;tried&nbsp;adding&nbsp;\Developer&nbsp;Reference\Merge&nbsp;Module\MapSuiteGeoTiffX86.msm&nbsp;and&nbsp;I&nbsp;still&nbsp;get&nbsp;the&nbsp;“GDI+&nbsp;threw&nbsp;a&nbsp;status&nbsp;error&nbsp;code.”&nbsp;exception&nbsp;on&nbsp;the&nbsp;same&nbsp;machines…&nbsp;Do&nbsp;I&nbsp;need&nbsp;to&nbsp;add&nbsp;any&nbsp;more&nbsp;modules?

---

<div class="post-metadata">

**Author:** ![Ryan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@Ryan](https://community.thinkgeo.com/u/Ryan)\
**Post date:** [May 7, 2012, 3:39pm UTC](https://community.thinkgeo.com/t/tif-files-not-displaying-correctly-in-app-or-map-suite-explorer/1824/15 "2012-05-07T15:39:11Z")

</div>

David,

So&nbsp;I&nbsp;am&nbsp;clear,&nbsp;did&nbsp;you&nbsp;create&nbsp;an&nbsp;installer&nbsp;for&nbsp;your&nbsp;application&nbsp;using&nbsp;the&nbsp;MapSuiteGeoTiffX86.msm&nbsp;and&nbsp;then&nbsp;run&nbsp;that&nbsp;installer&nbsp;on&nbsp;each&nbsp;of&nbsp;your&nbsp;test&nbsp;machines?

Also&nbsp;are&nbsp;you&nbsp;loading&nbsp;your&nbsp;Tiff&nbsp;file&nbsp;using&nbsp;the&nbsp;Library&nbsp;type&nbsp;of&nbsp;ManagedLibTiff&nbsp;(default&nbsp;option)&nbsp;or&nbsp;the&nbsp;UnmanagedLibTiff?&nbsp;  
  
The&nbsp;link&nbsp;you&nbsp;provided&nbsp;to&nbsp;a&nbsp;code&nbsp;sample&nbsp;is&nbsp;using&nbsp;the&nbsp;ManagedLibTiff&nbsp;(default),&nbsp;so&nbsp;we&nbsp;need&nbsp;to&nbsp;verify&nbsp;the&nbsp;LibraryType&nbsp;you&nbsp;are&nbsp;actually&nbsp;using.

As&nbsp;mentioned&nbsp;in&nbsp;the&nbsp;deployment&nbsp;guide&nbsp;([wiki.thinkgeo.com/wiki/Map\_S...ment\_Guide](http://wiki.thinkgeo.com/wiki/Map_Suite_Desktop_Edition_Deployment_Guide))&nbsp;MapSuiteGeoTiffX64.msm&nbsp;and&nbsp;MapSuiteGeoTiffX86.msm&nbsp;are&nbsp;not&nbsp;required&nbsp;if&nbsp;the&nbsp;GeoTiffRasterSource's&nbsp;LibraryType&nbsp;is&nbsp;ManagedLibTiff&nbsp;(default).
