Click here to Skip to main content
16,005,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DDX Support in Custom Control Pin
Derek Lakin21-Aug-01 22:54
Derek Lakin21-Aug-01 22:54 
GeneralRe: DDX Support in Custom Control Pin
Tomasz Sowinski21-Aug-01 23:23
Tomasz Sowinski21-Aug-01 23:23 
GeneralRe: DDX Support in Custom Control Pin
Derek Lakin22-Aug-01 0:34
Derek Lakin22-Aug-01 0:34 
QuestionHow to build Printer Driver? Pin
Tarek Eslim16-Aug-01 0:32
Tarek Eslim16-Aug-01 0:32 
QuestionHow to determine IE Version via COM? Pin
-=[{Jçç}||7.ê.Q]=-16-Aug-01 0:31
-=[{Jçç}||7.ê.Q]=-16-Aug-01 0:31 
GeneralLinking question Pin
15-Aug-01 18:07
suss15-Aug-01 18:07 
GeneralRe: Linking question Pin
Tomasz Sowinski16-Aug-01 1:00
Tomasz Sowinski16-Aug-01 1:00 
GeneralADO bug in VC++ 6 SP5 + Processor Pack Pin
John M. Drescher15-Aug-01 18:06
John M. Drescher15-Aug-01 18:06 
I have recently installed both SP5 and the Processor Pack to visual C++ 6 and I am having the following problem. When an exception occurs inside a try catch block inside a function that calls ado methods the function crashes (in the debug build) on return. The following code runs fine when compiled with an earlier service pack and no processor pack, but with SP5 + Processor Pack it crashes during the return from the test function. Also if I compile it on a pc with an eariler sp, it will debug and run fine on a machine with the latest sp (as long as you don't try to compile!).

The following code has been reduced to the smallest part that I could get it to crash. I compiled it as a Win32 console application and did not change any of the default values. In SP5 + processor pack an access violation occurs when test() returns. This was tested on win2k. I compiled and tested it in debug build only.

#include "stdafx.h"

// You must change this to match your path
#import "D:\program files\common files\system\ado\msado15.dll" \
no_namespace \
rename( "EOF", "adoEOF" )

void test()
{
_RecordsetPtr pRst = NULL;
try
{
throw "a";

pRst->Open(_variant_t(), _variant_t(),adOpenStatic ,
adLockReadOnly, adCmdText);
}
catch (...)
{

}
}

int main(int argc, char* argv[])
{
test();
return 0;
}



My question is 1) Has anyone seen this problem? 2) am I doing something wrong?
GeneralImage Processing in Microsoft Word Pin
Tran Hoang Chuong15-Aug-01 17:40
Tran Hoang Chuong15-Aug-01 17:40 
GeneralRe: Image Processing in Microsoft Word Pin
Christian Graus15-Aug-01 17:52
protectorChristian Graus15-Aug-01 17:52 
GeneralRe: Image Processing in Microsoft Word Pin
Tran Hoang Chuong15-Aug-01 18:17
Tran Hoang Chuong15-Aug-01 18:17 
GeneralRe: Image Processing in Microsoft Word Pin
Christian Graus15-Aug-01 18:26
protectorChristian Graus15-Aug-01 18:26 
GeneralUsing the USB port Pin
Wolfram Steinke15-Aug-01 16:56
Wolfram Steinke15-Aug-01 16:56 
General98 NT compatibility Pin
Stephen Caldwell15-Aug-01 16:54
Stephen Caldwell15-Aug-01 16:54 
GeneralRe: 98 NT compatibility Pin
Tomasz Sowinski16-Aug-01 1:02
Tomasz Sowinski16-Aug-01 1:02 
GeneralRe: 98 NT compatibility Pin
Stephen Caldwell16-Aug-01 4:56
Stephen Caldwell16-Aug-01 4:56 
GeneralRe: 98 NT compatibility Pin
Tomasz Sowinski16-Aug-01 5:38
Tomasz Sowinski16-Aug-01 5:38 
GeneralRe: 98 NT compatibility Pin
Ray Kinsella16-Aug-01 5:44
Ray Kinsella16-Aug-01 5:44 
GeneralRe: 98 NT compatibility Pin
Ray Kinsella16-Aug-01 5:54
Ray Kinsella16-Aug-01 5:54 
GeneralRe: 98 NT compatibility Pin
Tomasz Sowinski16-Aug-01 6:16
Tomasz Sowinski16-Aug-01 6:16 
Generalstdout flushing Pin
15-Aug-01 14:12
suss15-Aug-01 14:12 
GeneralRe: stdout flushing Pin
Michael Dunn15-Aug-01 17:56
sitebuilderMichael Dunn15-Aug-01 17:56 
GeneralRe: stdout flushing Pin
Langweilig16-Aug-01 5:36
Langweilig16-Aug-01 5:36 
GeneralCListBox Pin
John Uhlenbrock15-Aug-01 14:12
John Uhlenbrock15-Aug-01 14:12 
GeneralRe: CListBox Pin
Not Active15-Aug-01 16:27
mentorNot Active15-Aug-01 16:27 

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.