Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can you please specify why this is happen? Pin
David Crow22-Mar-07 3:31
David Crow22-Mar-07 3:31 
QuestionSplitter Windows Pin
Taruni21-Mar-07 22:29
Taruni21-Mar-07 22:29 
QuestionRe: Splitter Windows Pin
Mark Salsbery22-Mar-07 7:54
Mark Salsbery22-Mar-07 7:54 
AnswerRe: Splitter Windows Pin
Taruni22-Mar-07 18:26
Taruni22-Mar-07 18:26 
GeneralRe: Splitter Windows Pin
Mark Salsbery23-Mar-07 7:30
Mark Salsbery23-Mar-07 7:30 
QuestionDisable tab-- pls help me Pin
deeps_cute21-Mar-07 22:15
deeps_cute21-Mar-07 22:15 
AnswerRe: Disable tab-- pls help me Pin
prasad_som21-Mar-07 22:45
prasad_som21-Mar-07 22:45 
QuestionMemory Leak in ADO Connection->open() Pin
voorugonda prashanth21-Mar-07 22:11
voorugonda prashanth21-Mar-07 22:11 
Hi All,

i have a sample ADO application when i test through Rational Purify it is showing that there is leak in raw_Open() function.

please give me a suggestion where there is any leak in that?

[I] Summary of all memory leaks... {65488 bytes, 676 blocks}
[I] MPK: Potential memory leak of 18552 bytes from 147 blocks allocated in Connection15::Open(_bstr_t,_bstr_t,_bstr_t,long) [TestMemLeakADOConn.exe]
Offset 0x00000008 referenced by 0x0279ffe0, a location in a HeapAlloc'd block
Distribution of potentially leaked blocks
Allocation location
HeapAlloc [C:\WINDOWS\system32\KERNEL32.dll]
Connection15::Open(_bstr_t,_bstr_t,_bstr_t,long) [d:\samples\testmemleakadoconn\debug\msado15.tli:367]
}

inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
=> HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
TestFunction(void) [D:\samples\TestMemLeakADOConn\test.cpp:88]

m_pConn->put_ConnectionTimeout (300);

=> m_pConn->Open(bstrConnect, "","",-1);


_CommandPtr pCmd(__uuidof(Command));
main [D:\samples\TestMemLeakADOConn\test.cpp:171]



Thanks,
Prashanth.v
AnswerRe: Memory Leak in ADO Connection->open() Pin
kakan21-Mar-07 22:28
professionalkakan21-Mar-07 22:28 
QuestionMail Id checking problem Pin
Y_Kaushik21-Mar-07 22:01
Y_Kaushik21-Mar-07 22:01 
AnswerRe: Mail Id checking problem Pin
toxcct21-Mar-07 23:48
toxcct21-Mar-07 23:48 
AnswerRe: Mail Id checking problem Pin
James R. Twine22-Mar-07 1:55
James R. Twine22-Mar-07 1:55 
QuestionResize of the Frame Pin
Kiran Pinjala21-Mar-07 21:51
Kiran Pinjala21-Mar-07 21:51 
AnswerRe: Resize of the Frame Pin
prasad_som21-Mar-07 22:39
prasad_som21-Mar-07 22:39 
QuestionResource Error Pin
rushiraj.jhala21-Mar-07 21:36
rushiraj.jhala21-Mar-07 21:36 
QuestionRe: Resource Error Pin
prasad_som21-Mar-07 21:40
prasad_som21-Mar-07 21:40 
AnswerRe: Resource Error Pin
rushiraj.jhala21-Mar-07 23:31
rushiraj.jhala21-Mar-07 23:31 
Questionhow to solve the problem occured due to using setupapi.h and Dbt.h header files in my windows service application.. in windows XP and VC++.Net 2005 Pin
anumadhu21-Mar-07 21:32
anumadhu21-Mar-07 21:32 
AnswerKeep title concise,too Pin
prasad_som21-Mar-07 21:38
prasad_som21-Mar-07 21:38 
AnswerRe: how to solve the problem occured due to using setupapi.h and Dbt.h header files in my windows service application.. in windows XP and VC++.Net 2005 Pin
anumadhu22-Mar-07 1:50
anumadhu22-Mar-07 1:50 
Questionretrieving an offset from an EXE Pin
SharatChandra21-Mar-07 21:14
SharatChandra21-Mar-07 21:14 
AnswerRe: retrieving an offset from an EXE Pin
toxcct21-Mar-07 23:46
toxcct21-Mar-07 23:46 
AnswerRe: retrieving an offset from an EXE Pin
James R. Twine22-Mar-07 1:57
James R. Twine22-Mar-07 1:57 
GeneralRe: retrieving an offset from an EXE Pin
David Crow22-Mar-07 3:33
David Crow22-Mar-07 3:33 
Questionregarding WAVE to MP3 conversion Pin
puneet_cha21-Mar-07 21:05
puneet_cha21-Mar-07 21:05 

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.