|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Marat Garafutdinov
|
Oct 24, 2003 - 3:20 PM
|
in my OnCreate i have a call to:
CExtControlBar::ProfileBarStateLoad( this, pApp->m_pszRegistryKey, pApp->m_pszAppName, pApp->m_pszProfileName, &m_dataFrameWP);
This always gives the assertion fail in file exttempl.h line 1025. Am I doing something wrong here ?
|
|
Sergiy Lavrynenko
|
Oct 25, 2003 - 2:00 AM
|
Hi again,
The asserion point in the exttempl.h line 1025 is not related to control bars at all. The CExtControlBar::ProfileBarStateLoad() method just loads bars state, then repositions all the frame window bars and, as result, positions of bar child windows are also changed. Assertion was raised by CExtWA -template-based window (for example CExtResizableDialog ) because it was not created yet (or already destroyed).
If you send me your MainFrm.h and MainFrm.cpp (or all the project files) - I will find the source of the problem.
Best regards, Sergiy.
|
|
Marat Garafutdinov
|
Oct 24, 2003 - 6:21 PM
|
Also, i put the application through a memory leak detector, similar to Numega’s, it reports a mismatched single/array delete type in ExtCmdManager.cpp, line 1909. (GetVersionDWORD) seems like at one point you do:
pByteVerInfo = new BYTE[4096];
and then:
delete pByteVerInfo;
shouldn’t it be delete[] pByteVerInfo; ?
|
|
Sergiy Lavrynenko
|
Oct 25, 2003 - 1:50 AM
|
Dear Marat,
Thank you for the bug info. Yes, it should be delete with [] . But this is not a critical point because BYTE is not a compound type with desructor(s).
Best regards, Sergiy.
|
|
Marat Garafutdinov
|
Oct 24, 2003 - 6:09 PM
|
Also, i put the application through a memory leak detector, similar to Numega’s, it reports a mismatched single/array delete type in ExtCmdManager.cpp, line 1909. (GetVersionDWORD) seems like at one point you do:
pByteVerInfo = new BYTE[4096];
and then:
delete pByteVerInfo;
shouldn’t it be delete[] pByteVerInfo; ?
|
|