RE: Strange ODBC Problems



What are the errors?

"Sujay Ghosh" wrote:

> Hello ,
>
> The application we are developing extracts data from a server side
> database and writes it to a XML file , which shall be further processed.
>
> We have ourselves written ODBC wrapper classes in C++, which calls the
> ODBC API's to do the operations . The application fetches data within a loop
> and stores the data in a STL vector. But after 40 -43 iterations ( the
> number is not consistent ), the application suddenly stops writing to the XML
> file and exits . I have put up log messages , SQLErrorCodes but none of them
> are coming up with any relevant solution to this problem .
>
> The failure occurs with SQLExecuteDirect and SQLFetch ; on seeing which
> we found out that the m_hSTMT is common in both .
>
> Can anyone let me know what am I missing out .
>
> Thanks in advance .
>
> Sujay
>
>
> --
> Sujay Ghosh
> Bangalore, INDIA
> Email : sujayg_mfc@xxxxxxxxx
> Mobile : 9845467789
>
.