04-07-2014 07:02 AM
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
04-09-2014 01:46 AM
Hi,
could you Please attach your code?
Kind regards
Daniel
04-09-2014 02:15 AM
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;
}
04-09-2014 04:08 AM - edited 04-09-2014 04:10 AM
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?