<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Win32 vs2008 build with secure scl disabled in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/win32-vs2008-build-with-secure-scl-disabled/m-p/621111#M1011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if there was any chance of making a visual studio 2008 build available, with secure scl disabled?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a Microsoft specific setting which adds some error checking to the STL containers and iterators (if I understand it correctly), which has the result of changing the size of the STL classes used. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mixing dlls or objects compiled with a mixture of this setting can cause chaos and generally random behaviour&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to link against both FileGDBAPI.DLL and another DLL that has scl disabled and are observing crashes in different locations (eg ~wstring). Same code works fine on linux and works when we comment stuff out and just link against FileGDBAPI.DLL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(We're also trying to see if we can get a scl enabled version of the other dll)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This secure scl setting is enabled by default in vs2008, so disabling would involve adding:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_SECURE_SCL=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the: C/C++ / Preprocessor definitions section in the visual studio project configuration&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2011 22:55:03 GMT</pubDate>
    <dc:creator>SimonWood</dc:creator>
    <dc:date>2011-10-26T22:55:03Z</dc:date>
    <item>
      <title>Win32 vs2008 build with secure scl disabled</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/win32-vs2008-build-with-secure-scl-disabled/m-p/621111#M1011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if there was any chance of making a visual studio 2008 build available, with secure scl disabled?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a Microsoft specific setting which adds some error checking to the STL containers and iterators (if I understand it correctly), which has the result of changing the size of the STL classes used. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mixing dlls or objects compiled with a mixture of this setting can cause chaos and generally random behaviour&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to link against both FileGDBAPI.DLL and another DLL that has scl disabled and are observing crashes in different locations (eg ~wstring). Same code works fine on linux and works when we comment stuff out and just link against FileGDBAPI.DLL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(We're also trying to see if we can get a scl enabled version of the other dll)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This secure scl setting is enabled by default in vs2008, so disabling would involve adding:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_SECURE_SCL=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the: C/C++ / Preprocessor definitions section in the visual studio project configuration&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 22:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/win32-vs2008-build-with-secure-scl-disabled/m-p/621111#M1011</guid>
      <dc:creator>SimonWood</dc:creator>
      <dc:date>2011-10-26T22:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Win32 vs2008 build with secure scl disabled</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/win32-vs2008-build-with-secure-scl-disabled/m-p/621112#M1012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We followed the default when we built the API. Secure scl is enabled by default in VS2008 and disabled in VS2010. You may want to consider moving to VS2010.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 22:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/win32-vs2008-build-with-secure-scl-disabled/m-p/621112#M1012</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-10-27T22:09:46Z</dc:date>
    </item>
  </channel>
</rss>

