|
So have you checked line 449 of afxcmn.inl to see what condition is asserting?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
So do you have a macro that inserts that text so you don't have to type it so often?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
That obvious, eh?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
ptr_Electron wrote: For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
Yes that's right. The error message is telling you to READ THE DOCUMENTATION!
That's hard to do while your typing messages in to forums isn't it?
led mike
|
|
|
|
|
If you met an assert, just take the Call Stack(alt+7) and you could figure out which line in your source is the root cause for assertion. Do initial checks such as whether the parameters are valid etc. If you couldn't reach to a solution then post it.
Atleast it will help you to ask more specific question. Its quite difficult to figure out what went wrong by just having the assertion details since its from windows library. The line in your source which triggers the assertion does matter rather than assertion location from windows library.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Thanks for responce to all
Application crashes even before window is displayed, I found it is @ the below statement. But onlye in the release build, fine with the debug build
pls advice
WINMAIN.CPP
38:
39: if (!pThread->InitInstance())
5F433518 mov ecx,dword ptr [pThread]
5F43351B mov edx,dword ptr [ecx]
with the below msg
---------------------------
nav.exe - Application Error
---------------------------
The instruction at "0x5f43351b" referenced memory at "0x00000000". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------
|
|
|
|
|
The pThread is valid ptr? Have a look at this article[^]. It describes how to survive in release version.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
By the way Call Stack(alt+7), popsup the project settings dialog box only
|
|
|
|
|
ptr_Electron wrote: By the way Call Stack(alt+7), popsup the project settings dialog box only
Buddy, Its Alt+7 itself. Not Alt+F7 .
Alt+ 7 - to show call stack while debugging.
Alt+F7 - to show project settings.
Follow your eyes.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Oh yes.. Sorry..
Thank you
|
|
|
|
|
Well, your crash is gone? Please don't hesitate to ask for further help, if it's not solved yet.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi Jio,
I had still Crash in the release build @ below statement. Please help me
38: // Perform specific initializations
39: if (!pThread->InitInstance())
5F433518 mov ecx,dword ptr [pThread]
5F43351B mov edx,dword ptr [ecx] 5F43351D mov </b> //CRASH
ecx,dword ptr [pThread]
5F433520 call dword ptr [edx+58h]
5F433523 test eax,eax
5F433525 jne AfxWinMain+0C3h (5f433563)
40: {
41: if (pThread->m_pMainWnd != NULL)
5F433527 mov eax,dword ptr [pThread]
5F43352A cmp dword ptr [eax+20h],0
5F43352E je AfxWinMain+0B3h (5f433553)
42: {
43: TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");
5F433530 push offset string "Warning: Destroying non-NULL m_p"... (5f4af280)
modified on Monday, September 8, 2008 7:04 AM
|
|
|
|
|
Hi all,
I have use Datetimepicker, i want to know how can i compare two dates.
How can check 1st date is greater of less than 2nd date and Vice versa.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
The CDateTimeCtrl::GetTime() method returns a COleDateTime object, and COleDateTime() class has the relational operators overloaded[^], which means you can use the relational operators to determine if a given date is greater than the other.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
I dont understand please explain with example.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
I am not sure if you are using CDateTimeCtrl or CMonthCalCtrl. I'll assume that you are using CMonthCalCtrl:
COleDateTime cdt1, cdt2;
m_cal1.GetCurSel(cdt1);
m_cal2.GetCurSel(cdt2);
if(cdt1 > cdt2)
;
else if(cdt1 == cdt2)
;
else
;
Similarly, if you are using CDateTimeCtrl, you can use the GetTime() member function.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
It help me thanks.
I m using CDateTimeCtrl ,now i want to check 2nd date shall be greater than 10 years 1st date .
how can i do this.
please tell me .
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: how can i do this.
Get the year, add 10 to it, compare.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
You can also use difftime() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi all,
Please help me..
I want that event When popup Block Information bar will be appeared in Internet Explorer browser, actually I want to do some operation in my Toolbar plugin at that event.
Do I get any Dispatch ID after occuring this event or some thing else
So please let me know some solution to over come this problem.
Thanks You in advance.
|
|
|
|
|
Hi All,
while i am try to close the Application, at that time i am getting an error message. The Error message is displayed in popup Message Box.
"Windows has triggered a breakpoint in PlantView.exe.
This may be due to a corruption of the heap, which indicates a bug in PlantView.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while PlantView.exe has focus.
The output window may have more diagnostic information."
I am dubegging my application in Visula studio 2008.
Please any one can help me...
|
|
|
|
|
Bernaad wrote: This may also be due to the user pressing F12 while PlantView.exe has focus
Why is a crash an expected/allowed behaviour if the user presses F12?
I would track down what happens when the user presses F12.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi Roger,
What i need to do to avoid that error message.
could you explain me in detail why the error occurs while closing the application.
|
|
|
|
|
Bernaad wrote: What i need to do to avoid that error message.
Simple: fix the error!
The message box with the error message is, to my knowledge, something unique to your application. There's no way for anybody else to explain to you why the error occurs.
To me it's clear that the application comes equipped with a bug that some developer could not solve that happens e.g. when the user presses F12. The developer also "explained" it to be quite normal behaviour since he/she put it in the error message text.
It could be a way to end/terminate the application by pressing F12, but in that case there should not be an error message popping up, so I assume this is a bug.
You have to debug your application.
A good starting point would be a message handler called when the user presses F12 and work your way down. Find out what happened that made this message box pop up by asking the user what he/she did and particularly whether F12 was pressed or not.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi,
Thanks, i found out wht that error occurs.
The Problem is due to the buffer size which i declared to store the path.
Thanks for your solution.
|
|
|
|