Debug Help on application hang

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
marksatterfield
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Jun 30, 2017 12:34 pm

Debug Help on application hang

Post by marksatterfield »

I am running on a Windows Embedded Compact 7 ARMV7 based system and as I am debugging (stepping thru code) I get some different
places where when I step the application hangs. I thought it might be stack or heap space limitations but I am looking for some suggestions
on the best way to isolate this problem. :?

Most of the time the problem occurs on the m_mainLoop->Run() call in appcmn.cpp file. I am running version 2.8.3. I have to use this version
because my customer requires it. This is a wxAppConsole.

I believe an exception is occurring but don't see any output indicating error.

Any suggestions are greatly welcome!
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Debug Help on application hang

Post by ONEEYEMAN »

Hi,
Is hanging occurs at the same place?

Thank you.
marksatterfield
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Jun 30, 2017 12:34 pm

Re: Debug Help on application hang

Post by marksatterfield »

At different places if I rebuild app but in the same general location. I really think it has something to do with memory.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Debug Help on application hang

Post by ONEEYEMAN »

Or resources...
Make sure that you release everything if you don't need it.

Thank you.
marksatterfield
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Jun 30, 2017 12:34 pm

Re: Debug Help on application hang

Post by marksatterfield »

This application runs on Windows CE6 so I think the program should be ok. I ported it to VS 2008 and EC7 but never really changed the
actual application code. I believe the problem has to do VS Debug Environment or program settings.

Is __WXMSW__ supposed to be defined for Windows EC?
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Debug Help on application hang

Post by doublemax »

Just out of curiosity: On which device does this run?

Did you compile any of the wxWidgets samples? Do they run fine?
Use the source, Luke!
marksatterfield
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Jun 30, 2017 12:34 pm

Re: Debug Help on application hang

Post by marksatterfield »

It is on a ARM7 processor run Windows Embedded Compact Version 7.
marksatterfield
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Jun 30, 2017 12:34 pm

Re: Debug Help on application hang

Post by marksatterfield »

I have a simple application that runs. It uses my built wxWidgets libs.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Debug Help on application hang

Post by doublemax »

It is on a ARM7 processor run Windows Embedded Compact Version 7.
I wanted to know the actual device.
Use the source, Luke!
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Debug Help on application hang

Post by doublemax »

I have a simple application that runs. It uses my built wxWidgets libs.
How simple? Maybe it's too simple to find any errors. I would suggest to build and run as many of the samples as possible. It's still possible that the problem lies somewhere in the wxWidgets libs or their build process.
Use the source, Luke!
marksatterfield
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Jun 30, 2017 12:34 pm

Re: Debug Help on application hang

Post by marksatterfield »

Any idea why a quartz thread is running? I still need to know if I should be defining __WXMSW__ for a windows embedded compact build?
marksatterfield
Knows some wx things
Knows some wx things
Posts: 33
Joined: Fri Jun 30, 2017 12:34 pm

Re: Debug Help on application hang

Post by marksatterfield »

Turns out another thread's interface to the kernel was causing some bad behavior in the OS.
Post Reply