Home » U++ Library support » U++ SQL » ODBC Assertion failed
Re: ODBC Assertion failed [message #55830 is a reply to message #55824] |
Fri, 18 December 2020 14:02   |
mr_ped
Messages: 826 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
Giorgio wrote on Fri, 18 December 2020 08:26I've found out that the problem arises only in debug mode. The problem is the ASSERT at line 200 and 215 in ODBC/ODC.cpp. I can live without having the capability to debug that part of code, although it's very handy when there are issues (a problem with that part of the code was the reason I turned on the debugger in the first place).
Usually ASSERT compiles to nothing in release, and to debug check under debug.
So "arises only in debug mode" means that you see the warning in debug mode, but in release the same condition, which would trigger assert, does nothing and continues further.
ASSERT usually ensures conditions which "must be true" (and there is no need to check it at runtime) and the code after them usually is written in such a way that it may often crash hard if the condition is false.
So you get assert warning only in debug mode, but most likely the real problem is happening in release too, it's just not catched early by ASSERT, but causes havoc further down the line. In some situations you may be lucky that the code after is robust enough to survive even when condition is false, and the assert is rather just information that something is seriously broken in the code, way beyond the author expectations.
[Updated on: Fri, 18 December 2020 14:03] Report message to a moderator
|
|
|
 |
|
ODBC Assertion failed
By: Giorgio on Thu, 17 December 2020 11:01
|
 |
|
Re: ODBC Assertion failed
By: JeyCi on Thu, 17 December 2020 14:09
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Thu, 17 December 2020 14:22
|
 |
|
Re: ODBC Assertion failed
By: JeyCi on Thu, 17 December 2020 15:06
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Thu, 17 December 2020 16:27
|
 |
|
Re: ODBC Assertion failed
By: JeyCi on Thu, 17 December 2020 17:44
|
 |
|
Re: ODBC Assertion failed
By: JeyCi on Fri, 18 December 2020 06:26
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Fri, 18 December 2020 08:32
|
 |
|
Re: ODBC Assertion failed
By: mirek on Fri, 18 December 2020 10:22
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Fri, 18 December 2020 08:26
|
 |
|
Re: ODBC Assertion failed
By: mr_ped on Fri, 18 December 2020 14:02
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Mon, 21 December 2020 09:54
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Tue, 22 December 2020 11:44
|
 |
|
Re: ODBC Assertion failed
By: mirek on Tue, 22 December 2020 18:22
|
 |
|
Re: ODBC Assertion failed
By: mirek on Tue, 22 December 2020 18:49
|
 |
|
Re: ODBC Assertion failed
By: JeyCi on Wed, 23 December 2020 06:08
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Wed, 27 January 2021 16:44
|
 |
|
Re: ODBC Assertion failed
By: mirek on Wed, 27 January 2021 17:08
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Thu, 28 January 2021 09:26
|
 |
|
Re: ODBC Assertion failed
By: mirek on Thu, 28 January 2021 09:38
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Fri, 12 February 2021 18:15
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Fri, 21 May 2021 11:04
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Tue, 25 May 2021 17:16
|
 |
|
Re: ODBC Assertion failed
By: mirek on Tue, 08 June 2021 10:08
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Thu, 10 June 2021 17:00
|
 |
|
Re: ODBC Assertion failed
By: JeyCi on Mon, 21 December 2020 15:33
|
 |
|
Re: ODBC Assertion failed
By: Giorgio on Mon, 24 May 2021 14:54
|
Goto Forum:
Current Time: Wed Jun 25 00:10:13 CEST 2025
Total time taken to generate the page: 0.03577 seconds
|