Error: Error code (-10): Network I/O Operation Failed
SE_stream_insert_table function returns error code (-10) when the number of columns specified by the function arguments is less than the number of columns in the layer. For example:
A layer named 'Dams' contains eight columns and is referred to as biz_table. The C code below defines seven columns in the SE_stream_insert_table function. At 8.0.2 this code will produce the above error.
/* Specify columns that will receive inserted values */
column_names = malloc(NUM_OF_COLUMNS * sizeof(char *));
column_names = "dam_name";
column_names = "stream";
column_names = "zone";
column_names = "dam_height";
column_names = "crest";
column_names = "drain_area";
column_names = "shape";
NUM_OF_COLUMNS = 7;
/* Initialize stream for insert */
sr = SE_stream_insert_table(stream, biz_table, NUM_OF_COLUMNS, (const char **)column_names);
This is a known network-related issue that occurs only when the client and the server don't reside on the same machine. For example, when the client is running Windows NT 4.0 and the server is Solaris 2.6.
Solution or Workaround
This issue has been resolved at ArcSDE 8.1.