Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drag/Drop objects from one document to other documents in MDI App. Pin
Erik Funkenbusch19-Sep-00 13:14
Erik Funkenbusch19-Sep-00 13:14 
GeneralRe: Drag/Drop objects from one document to other documents in MDI App. Pin
Bermusa19-Sep-00 17:12
Bermusa19-Sep-00 17:12 
GeneralModeless dialog boxes Pin
nimrod14-Sep-00 1:26
nimrod14-Sep-00 1:26 
GeneralRe: Modeless dialog boxes Pin
Mustafa Demirhan14-Sep-00 10:01
Mustafa Demirhan14-Sep-00 10:01 
GeneralRe: Modeless dialog boxes Pin
Sam Hobbs14-Sep-00 10:59
Sam Hobbs14-Sep-00 10:59 
Generalgetting build number Pin
P e t e r13-Sep-00 22:30
P e t e r13-Sep-00 22:30 
GeneralRe: getting build number Pin
Paolo Messina16-Sep-00 23:22
professionalPaolo Messina16-Sep-00 23:22 
GeneralMem Leak on destruction Pin
Ron Ginsberg13-Sep-00 12:25
Ron Ginsberg13-Sep-00 12:25 
Env: Vis C++ 6.0 SP3 WIN98 updated.

Doc/view application under debug.

I have a class constructed with CW that consists of standard variable declarations, an array of records of byte arrays that accept serialization and is included in this class, etc.

In the wiz constructed document class, I create this class object with the new operator from within the document constructor:

MFDPreFileDoc::MFDPrefileDoc()
{

CMFD_RCRD* pCMfD_RCRD = new CMFD_RCRD();

}

All works well with the app (static linked exe), pointers, etc.

Under debug, if the app (SDI or MDI) is closed with exit, no problem. Id the app ic closed with the mainframe "X", debug dumps a mem leak error pointing to this new statement.

The CMFD_RCRD has a virtual destructor as does the document itself created by the WIZ. I have tried placing a function in the doc destructor pointing to the CMFD_RCRD destructor, but get an assertion err.

Within the app, there are no errors associated with closing child win views associated with their instances of the relative document instances as indicated by debug, only with the mainframe X end app.

Any ideas? Do I have a real mem leak or is this due to the debug environment?





GeneralRe: Mem Leak on destruction Pin
Tim Deveaux14-Sep-00 3:30
Tim Deveaux14-Sep-00 3:30 
GeneralRe: Mem Leak on destruction Pin
Mustafa Demirhan16-Sep-00 1:20
Mustafa Demirhan16-Sep-00 1:20 
GeneralCTreeCtrl and Network Neighbourhood control Pin
beretta13-Sep-00 11:13
beretta13-Sep-00 11:13 
GeneralRe: CTreeCtrl and Network Neighbourhood control Pin
Paolo Messina14-Sep-00 0:30
professionalPaolo Messina14-Sep-00 0:30 
GeneralRTF to BITMAP conversion Pin
Saravana13-Sep-00 10:45
Saravana13-Sep-00 10:45 
GeneralCombobox with MS Calender Pin
knto13-Sep-00 9:16
knto13-Sep-00 9:16 
GeneralhDC lost Pin
Hank13-Sep-00 5:40
Hank13-Sep-00 5:40 
GeneralRe: hDC lost Pin
Erik Funkenbusch14-Sep-00 13:22
Erik Funkenbusch14-Sep-00 13:22 
QuestionHow to get number of characters before the caret? Pin
Jignesh Patel13-Sep-00 5:30
Jignesh Patel13-Sep-00 5:30 
AnswerRe: How to get number of characters before the caret? Pin
Jignesh Patel14-Sep-00 6:07
Jignesh Patel14-Sep-00 6:07 
GeneralPrinting with multiple views Pin
Bert Tuyt12-Sep-00 11:18
Bert Tuyt12-Sep-00 11:18 
GeneralRe: Printing with multiple views Pin
lauren15-Sep-00 3:44
lauren15-Sep-00 3:44 
QuestionCHtmlView usage? Pin
James Corrie12-Sep-00 11:08
sussJames Corrie12-Sep-00 11:08 
AnswerRe: CHtmlView usage? Pin
3-Jan-01 9:01
suss3-Jan-01 9:01 
GeneralIWbemServices::ExecNotificationQueryAsync Pin
Lothar12-Sep-00 10:29
Lothar12-Sep-00 10:29 
GeneralDevice Context : Slow Drawing Pin
Hank12-Sep-00 6:05
Hank12-Sep-00 6:05 
GeneralRe: Device Context : Slow Drawing Pin
Feng Yuan www.fengyuan.com12-Sep-00 8:25
sussFeng Yuan www.fengyuan.com12-Sep-00 8:25 

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.