Click here to Skip to main content
16,017,788 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception! Pin
kcynic2-Jun-07 1:27
kcynic2-Jun-07 1:27 
GeneralRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 1:33
professionalRajesh R Subramanian2-Jun-07 1:33 
GeneralRe: Exception! Pin
kcynic2-Jun-07 1:45
kcynic2-Jun-07 1:45 
GeneralRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 2:00
professionalRajesh R Subramanian2-Jun-07 2:00 
AnswerRe: Exception! Pin
Matthew Faithfull2-Jun-07 1:59
Matthew Faithfull2-Jun-07 1:59 
JokeRe: Exception! Pin
Rajesh R Subramanian2-Jun-07 2:02
professionalRajesh R Subramanian2-Jun-07 2:02 
GeneralRe: Exception! Pin
kcynic2-Jun-07 2:15
kcynic2-Jun-07 2:15 
AnswerRe: Exception! Pin
Matthew Faithfull2-Jun-07 2:43
Matthew Faithfull2-Jun-07 2:43 
Ah Ha! You didn't say you were using ODBC. That changes everything I'm afraid. ODBC is very naughty, it uses exceptions internally to control memory allocation, so you have to be even more careful than usual. Just because ODBC is reporting an exception to the debugger when you step through the code doesn't mean there is necessarily an error. On the other hand maybe there is.D'Oh! | :doh:
It's a great example of why you should only use exceptions for handling real exceptional cases and not overload them to do other jobs Wink | ;)
The other thing to watch with ODBC is to make sure you unwind everything in the exact reverse order that you created it in the first place, even the connection dialog. Everthing you create or call to set up your connection should be undone or shutdown, as the case may be, in the exact reverse order. This isn't in the docs but if you don't do it you'll get very random crashes, sometimes only in Release builds and only with large data sets Dead | X| . Very nasty indeed. Good luck.

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: Exception! Pin
kcynic2-Jun-07 21:40
kcynic2-Jun-07 21:40 
GeneralRe: Exception! Pin
Matthew Faithfull3-Jun-07 2:43
Matthew Faithfull3-Jun-07 2:43 
AnswerRe: Exception! Pin
Stephen Hewitt3-Jun-07 14:21
Stephen Hewitt3-Jun-07 14:21 
QuestionTo allign text in message box Pin
Mushtaque Nizamani2-Jun-07 0:29
Mushtaque Nizamani2-Jun-07 0:29 
AnswerRe: To allign text in message box Pin
Rajesh R Subramanian2-Jun-07 0:43
professionalRajesh R Subramanian2-Jun-07 0:43 
QuestionInverse of a matrix(urgent:) Pin
sujithkumarsl1-Jun-07 23:50
sujithkumarsl1-Jun-07 23:50 
AnswerRe: Inverse of a matrix(urgent:) Pin
Rajesh R Subramanian2-Jun-07 0:22
professionalRajesh R Subramanian2-Jun-07 0:22 
GeneralRe: Inverse of a matrix(urgent:) Pin
Mark Salsbery2-Jun-07 5:22
Mark Salsbery2-Jun-07 5:22 
AnswerRe: Inverse of a matrix(urgent:) Pin
toxcct2-Jun-07 6:04
toxcct2-Jun-07 6:04 
JokeWRONG!! Pin
Rajesh R Subramanian2-Jun-07 8:37
professionalRajesh R Subramanian2-Jun-07 8:37 
QuestionWH_KEYBOARD_LL Pin
nitin31-Jun-07 22:27
nitin31-Jun-07 22:27 
AnswerRe: WH_KEYBOARD_LL Pin
Rajesh R Subramanian1-Jun-07 22:43
professionalRajesh R Subramanian1-Jun-07 22:43 
Question860312 - using macros Pin
ilostmyid21-Jun-07 22:08
professionalilostmyid21-Jun-07 22:08 
QuestionCLSID Pin
john56321-Jun-07 22:00
john56321-Jun-07 22:00 
AnswerRe: CLSID Pin
Matthew Faithfull1-Jun-07 22:45
Matthew Faithfull1-Jun-07 22:45 
QuestionCSplitterWnd Pin
TariqZ1-Jun-07 21:21
TariqZ1-Jun-07 21:21 
AnswerRe: CSplitterWnd Pin
Hamid_RT1-Jun-07 21:58
Hamid_RT1-Jun-07 21:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.