<?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 Re: SDE10 upgrade issues. in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569233#M32229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not possible for any ArcSDE function to return a value in excess of 2^31-1. If you defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the 'rc' variable as LONG (which on 64-bit platforms is defined "int"), the return value would&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have been -30 (SE_INVALID_SEARCH_METHOD).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you just recently port to 64-bit? What compilation flags do you use? Is '-DSDE64' in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the list? Alignment issues could easily cause this sort of problem, but usually the compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;would complain when the prototypes are violated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-V&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW:&amp;nbsp; The SE_stream_query() function was superceeded by SE_stream_query_with_info at&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the 9.2 release.&amp;nbsp; If you're still using SE_SQL_CONSTRUCT-based functions at 10.0, you may&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run into other difficulties as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 21:30:08 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2011-08-01T21:30:08Z</dc:date>
    <item>
      <title>SDE10 upgrade issues.</title>
      <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569232#M32228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We recently upgraded from SDE9.3 to SDE10, since then we have been having issues when using the function SE_stream_set_spatial_constraints.&amp;nbsp; We are getting a return value of 4294967266, which falls outside of the range of error number in the sdeerrno.h file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This call has worked fine in the past for sde 8.3 through sde9.3.&amp;nbsp; The application compiles fine but when running the function SE_stream_set_spatial_constraints returns 4294967266.&amp;nbsp; The applications and all libraries, including sde10, are 64bit and we are using rhel5. SDE is installed in an Oracle 11g database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a code snippet from our function at the failure point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; long rc;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; strcpy(Filter.table, "OPERATIONS");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; strcpy(Filter.column, "sde_cov");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Filter.filter.shape = tgt_shape;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Filter.method = SM_AI;&amp;nbsp; /* area intersection */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Filter.truth = TRUE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Filter.filter_type = SE_SHAPE_FILTER;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; rc = SE_stream_set_spatial_constraints(stream, SE_ATTRIBUTE_FIRST, FALSE,1,&amp;amp;Filter);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if(rc != SE_SUCCESS)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Unable to filter with intersecting shape: Error code: %ld\n",rc);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SE_shape_free (tgt_shape);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SE_sql_construct_free(sqlc);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SE_connection_free(Connection);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SE_stream_free(stream);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SE_coordref_free(coordref);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ......&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 19:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569232#M32228</guid>
      <dc:creator>StacyJohnson</dc:creator>
      <dc:date>2011-08-01T19:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: SDE10 upgrade issues.</title>
      <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569233#M32229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not possible for any ArcSDE function to return a value in excess of 2^31-1. If you defined&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the 'rc' variable as LONG (which on 64-bit platforms is defined "int"), the return value would&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have been -30 (SE_INVALID_SEARCH_METHOD).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you just recently port to 64-bit? What compilation flags do you use? Is '-DSDE64' in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the list? Alignment issues could easily cause this sort of problem, but usually the compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;would complain when the prototypes are violated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-V&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW:&amp;nbsp; The SE_stream_query() function was superceeded by SE_stream_query_with_info at&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the 9.2 release.&amp;nbsp; If you're still using SE_SQL_CONSTRUCT-based functions at 10.0, you may&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run into other difficulties as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 21:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569233#M32229</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-08-01T21:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: SDE10 upgrade issues.</title>
      <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569234#M32230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;V thanks for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The flags we use are CFLAGS=-g -DLINUX&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have been using RHEL5 64bit for several years but sde10 was the first 64bit version of sde for RHEL5.&amp;nbsp; Previously we have used 32bit sde9.3 and sde9.1 before that and compiled our programs 32bit. We had been using sde9.3 for at least two years and the code worked fine.&amp;nbsp; Since we were able to get a 64bit version, we removed -m32 flag and let the programs compile at 64bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see anything in the sdetype.h file or other files that mentions that SE_stream_query has been deprecated and shouldn't be used.&amp;nbsp; In the past we just change out the library and include calls in our makefiles and then recompile and didn't have issues.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569234#M32230</guid>
      <dc:creator>StacyJohnson</dc:creator>
      <dc:date>2011-08-02T10:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: SDE10 upgrade issues.</title>
      <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569235#M32231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;V&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a million the -DSDE64 flag allows the programs to run correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 10:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569235#M32231</guid>
      <dc:creator>StacyJohnson</dc:creator>
      <dc:date>2011-08-02T10:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: SDE10 upgrade issues.</title>
      <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569236#M32232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I build 64-bit apps on RHEL 5 using the 9.3.1 SDK all the time. I'm somewhat amazed you've &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gotten a successful compile with any SDK without using the required flags (especially -Dunix).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On 32-bit hosts my CFLAGS is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
-Wall -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_ISOC99_SOURCE -DARCSDE=100 -DLINUX -Dunix -I$(SDEHOME)/include
&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On 64-bit Linux I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
-Wall -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D_ISOC99_SOURCE -DARCSDE=100 -DLINUX -DSDE64 -Dunix -I$(SDEHOME)/include
&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(only the "-Wall" and "-DARCSDE=100" are my own preferences)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For both environments, I also need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
CC= gcc
LFLAGS=-L$(SDEHOME)/lib
LIBS=-lsde -lsg -lpe -lpthread -lm -ldl
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569236#M32232</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2021-12-12T00:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: SDE10 upgrade issues.</title>
      <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569237#M32233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's not possible for any ArcSDE function to return a value in excess of 2^31-1. If you defined&lt;BR /&gt;the 'rc' variable as LONG (which on 64-bit platforms is defined "int"), the return value would&lt;BR /&gt;have been -30 (SE_INVALID_SEARCH_METHOD).&lt;BR /&gt; &lt;BR /&gt;Did you just recently port to 64-bit? What compilation flags do you use? Is '-DSDE64' in&lt;BR /&gt;the list? Alignment issues could easily cause this sort of problem, but usually the compiler&lt;BR /&gt;would complain when the prototypes are violated.&lt;BR /&gt; &lt;BR /&gt;-V&lt;BR /&gt; &lt;BR /&gt;BTW:&amp;nbsp; The SE_stream_query() function was superceeded by SE_stream_query_with_info at&lt;BR /&gt;the 9.2 release.&amp;nbsp; If you're still using SE_SQL_CONSTRUCT-based functions at 10.0, you may&lt;BR /&gt;run into other difficulties as well.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a list of superceeded functions within the c&amp;nbsp; - api @ version 10.&amp;nbsp; I am finding that we are getting memory management issues with the use of &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_stream_create&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_sql_construct_alloc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_stream_query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE_stream_set_spatial_constraints&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any info would be appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 16:37:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569237#M32233</guid>
      <dc:creator>SeanSmyth</dc:creator>
      <dc:date>2012-09-24T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: SDE10 upgrade issues.</title>
      <link>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569238#M32234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SE_stream_query is the only one I can think of.&amp;nbsp; You can review sdetypes.h for comments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I always found SE_sql_construct_alloc to be a waste as a helper function (I try to avoid mallocing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;small structures), so I never needed to replace it when SE_QUERYINFO came out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ArcSDE 'C' API is sufficiently mature that memory management issues are more likely a developer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; issue than a library one.&amp;nbsp; You'd have to post your source for help with memory corruption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 17:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde10-upgrade-issues/m-p/569238#M32234</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-09-24T17:09:16Z</dc:date>
    </item>
  </channel>
</rss>

