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

Connectivity
ggo
Fan

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.
1 REPLY
ggo
Fan

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

ok, it seems that the components are built with Visual C++ 2005 on windows, so I guess I have already already been lucky that it works with vs2008.

There is probably at least one major difference between the VS 2005 and 2012 libraries which prevents the sdk components to be used with vs2012.