15,924,507 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by arjits (Top 4 by date)
arjits
3-Aug-15 9:03am
View
No it doesn't look like that case, else it would have failed every time on this function call? Isn't so?
arjits
31-Jul-15 12:20pm
View
Hello Sergey and Richard and third one (sorry don't know your name)
Thanks you for your time. This is a very intermittent issue and I can not recreate it.
My exe is failing (crashing) very intermittently and memory dumps are not providing much details on where the issue is.
When I run it in debug mode it runs fine with no crash or hang.
I can understand the information is very less to give any suggestions, however if you guys can suggest me any line of action or couple of pointers where to look for crash and hang of exe that would be very helpful.
Regards,
Arjit
arjits
31-Jul-15 9:37am
View
Basically, this portion of code have generated that error. Though that was only one time.
if(nIDEvent == FOCUS_TIMER && !WINCOR_IF())
{
try
{
if(theApp.pActiveDialog != NULL && IsWindow(theApp.pActiveDialog->m_hWnd))
{
CWnd * CurrentWindow = GetActiveWindow();
if(CurrentWindow->m_hWnd != theApp.pActiveDialog->m_hWnd )
{
theApp.pActiveDialog->BringWindowToTop();
theApp.pActiveDialog->SetFocus();
theApp.pActiveDialog->RedrawWindow();
CString OutMessage;
CString cstrCurrent;
CurrentWindow->GetWindowText(cstrCurrent);
CString cstrActive;
theApp.pActiveDialog->GetWindowText(cstrActive);
OutMessage.Format("** Active Window has not got focus. Current Window = '%s' attempting to set '%s' as the active window",cstrCurrent,cstrActive);
LogErrorMessage(__LINE__,__FILE__,OutMessage);
}
}
}
catch(...)
{
//Not a valid pointer
theApp.pActiveDialog = NULL;
}
Is it because of any windows related issue???
arjits
31-Jul-15 9:35am
View
I am sorry Dear, That was by mistake.