Application Crash problem
-
Hi ALL, I am doing project in VC++ 6.0, When I run the application, application gets crash. Message box is display with 3 button as "Don't Send" ,"Ignore" and "send". I check all values in my function if there is any NULL value.In my code there is no NULL value is occured any object. Please send me solution to this problem if anybody have. Tell me the possibilities of application crash. Thanks in Advance
hi
-
Hi ALL, I am doing project in VC++ 6.0, When I run the application, application gets crash. Message box is display with 3 button as "Don't Send" ,"Ignore" and "send". I check all values in my function if there is any NULL value.In my code there is no NULL value is occured any object. Please send me solution to this problem if anybody have. Tell me the possibilities of application crash. Thanks in Advance
hi
Have you tried debugging the program? Build, Start Debug, Go (or hit F5). Make sure you compile in debug mode (Build, Set Active Configuration to Win32 Debug). This should stop on the line of code that's causing the problem. Otherwise, post some code.
- S 50 cups of coffee and you know it's on!
-
Have you tried debugging the program? Build, Start Debug, Go (or hit F5). Make sure you compile in debug mode (Build, Set Active Configuration to Win32 Debug). This should stop on the line of code that's causing the problem. Otherwise, post some code.
- S 50 cups of coffee and you know it's on!
Hi Steve, I write code in CPageView class which is derived from CView class. My project is to create web page design tool. when I create page by using my code, as the page is open there is error ocuure. I write customize function to open web page. The error is occur after page is open and application gets crash with messgeBox having 3 buttons as Send Error,Don't sent error and ignore. void CPageView::OpenWebSite(int nTabIndex) { if(nTabIndex > 0 && nTabIndex < nSize+1) { CString strPagePath = pFrame->m_selWebPagePaths.GetAt(nTabIndex-1); theApp.OpenDocumentFile(strPagePath); } } Thanks Abm
-
Hi Steve, I write code in CPageView class which is derived from CView class. My project is to create web page design tool. when I create page by using my code, as the page is open there is error ocuure. I write customize function to open web page. The error is occur after page is open and application gets crash with messgeBox having 3 buttons as Send Error,Don't sent error and ignore. void CPageView::OpenWebSite(int nTabIndex) { if(nTabIndex > 0 && nTabIndex < nSize+1) { CString strPagePath = pFrame->m_selWebPagePaths.GetAt(nTabIndex-1); theApp.OpenDocumentFile(strPagePath); } } Thanks Abm
Potential problems I see: 1. pFrame is null 2. (nTabIndex - 1) is out of range of the array 3. nSize is not the actual size of the array being indexed You're probably trying to access an element of m_selWebPagePaths that doesn't exist. Put a breakpoint in there and check the value of nTabIndex and nSize. Make sure nSize is the same as m_selWebPagePaths.Count (or GetSize).
- S 50 cups of coffee and you know it's on!
-
Potential problems I see: 1. pFrame is null 2. (nTabIndex - 1) is out of range of the array 3. nSize is not the actual size of the array being indexed You're probably trying to access an element of m_selWebPagePaths that doesn't exist. Put a breakpoint in there and check the value of nTabIndex and nSize. Make sure nSize is the same as m_selWebPagePaths.Count (or GetSize).
- S 50 cups of coffee and you know it's on!
Hi Steve, I check above all values by adding break point. There is no NULL value so OpenDocument() function called sucessfully and document is open. but after opening the document the application get crash. that is the main problem here. please give me some hint if know !!! Thanks in Advance abm
-
Hi Steve, I check above all values by adding break point. There is no NULL value so OpenDocument() function called sucessfully and document is open. but after opening the document the application get crash. that is the main problem here. please give me some hint if know !!! Thanks in Advance abm
When you run the application is in debug mode, the IDE gives valuable info (see for instance call stack window) about the error occurred. Try to detect the exactly the troublesome point and post the relevant code. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
[my articles]