Quantcast
Viewing all articles
Browse latest Browse all 445

TPT TeraData Parallel Transporter API (x64) and Visual Studio 2012

Hi,
I am migrating a project from vs2008 to vs2012.
The project uses the TPT API.
It seems that the simple following code is crashing a test application when it's compiled with vs2012, but is working fine when compiled with VS2008.
(the test application is a basic cpp MFC dialog based application):

#include "connection.h"

...

void CTPTDlg::OnBnClickedOk()

{

    ncr::teradata::client::API::Connection* m_conn;

    m_conn = new ncr::teradata::client::API::Connection; // <==== CRASH HERE

    TD_OperatorType operatorType = TD_OperatorType::TD_LOAD;

    m_conn->AddAttribute(TD_SYSTEM_OPERATOR,operatorType);

....

 

If I add some message between each line (AfxMessageBox()), it work once, than it crashes again (with vs2012 only of course)

Is it a known issue please?

Do I need to stick with VS2008?

 

Thank you,

Olivier gg.
 

Forums: 

Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>