Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » MSSQL error management
Re: MSSQL error management [message #49634 is a reply to message #49632] Mon, 19 March 2018 12:58 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13986
Registered: November 2005
Ultimate Member
Giorgio wrote on Mon, 19 March 2018 12:40
Hi Mirek,
mssql is defined as MSSQLSession: this application basically retrieves data from a sqlite db and put them into a MS SQL db, so I have two different sql sessions and I do not use the global SQL session.

The SqlSession:: before the ThrowOnError was a typo and I removed it.

I tried to put the DDUMP but I get a really weird error from the compiler: "error C2018: unknown character '0x40'". This error pops up on the lines "DDUMP(b);" and "DDUMP(session.throwonerror);", if I remove those lines the application compiles. I opened the .cpp file with an hex editor and did not find any 0x40 char. Also I updated the compiler to VS2017 (previously I used 2015), bu the error still appears.

Regards,
gio


This is because you are compiling in release mode. "DDUMP" is only supposed to be temporary debugging thing, in debug mode only.

Either compile as debug, or use RDUMP instead.

(Overview:

DDUMP, DLOG - logs in debug, prevents compilation in release mode - that is to force you to remove temporary dumps before the release
LOG, DUMP - logs in debug, NOP in release
RLOG, RDUMP - logs in both debug and release
)

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ODBC crash
Next Topic: MSC configure with VS 2017 Professional
Goto Forum:
  


Current Time: Mon Jun 17 00:25:50 CEST 2024

Total time taken to generate the page: 0.02269 seconds