LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DBActivateSQL breaks without a breakpoint

Hello,

 

I hope anyone can help me. My program stops (in debug mode) at DBActivateSQL() and I don't no why. Especially, the function DBActivateSQL() is called many times, but breaks always on one point.

 

I have no breakpoints set (and no conditions); under Run->Break on, no selection is made and no expression is in the watch window.

 

I'm using LabWindows 2010 and Windows 7.

 

Kind regards

Jürgen

0 Kudos
Message 1 of 4
(4,366 Views)

Hi, 

could you Please attach your code?

 

Kind regards

Daniel

0 Kudos
Message 2 of 4
(4,339 Views)

Hi Daniel,

 

the whole program consists of ca. 30.000 lines of code. Here is the code of the function. It breaks at "if((hstmt=DBActivateSQL(xx_hdbeinstellungen,command)) <= 0) " without a breakpoint set. The function is called very often, but breaks only on a specific call of the function which is equal to the other calls.

 

Do you have an idea why?

 

Kind regards

Jürgen

 

 

int ActivateSQL_DBEinstellungen(int transaktion, char *command)
{
int hstmt,resCode;

CmtGetLock(xx_lock_db_einstellungen);


if(transaktion==TRANSAKTION)
       if((hstmt=DBBeginTran (xx_hdbeinstellungen))<0)
             ErrorHandling_DBEinstellungen(transaktion);

 

if((hstmt=DBActivateSQL(xx_hdbeinstellungen,command)) <= 0)
         ErrorHandling_DBEinstellungen(transaktion);

return hstmt;
}

 

0 Kudos
Message 3 of 4
(4,331 Views)

Hi Jürgen, first of all which specific call of the function do you mean? Please be more specific.

Use the "First Chance Exceptions" to get better information about the stoppage. To access the topic, navigate to Using LabWindows/CVI»Debugging Tools»Introduction to Breakpoints and Watch Expressions»Setting Additional Break Conditions in the CVI help.

Please tell me which value "return hstmt" should return on the end of the code?

 

0 Kudos
Message 4 of 4
(4,319 Views)