It has been said that trying to keep Hopper focused on a single application is like trying to get cats to walk in a parade (very difficult). The problem is Hopper is designed from its foundation to stress the entire system and never stay in one place too long – its job is to move around. Generally this is a good thing, but if you are trying to isolate a problem or your intent is to stress a particular application (if you are an ISV), it can be frustrating to watch Hopper navigate away from your application and find bugs that are not of interest of you. Hopper does have a built-in option (/a) to help with this, but it can be awkward and sometimes frustrating.
I have coded a sample alternative below that simply sits in a tight loop, re-executing the application you want to keep Hopper banging on. The code loops and continually re-launches the application you want to test (this sample focuses on Media Player) and sleeps for a specified period. Using the below, it is possible Hopper will navigate away from your application but once the time duration expires, your application will be switched to front and again receive the brunt of Hopper's fury. I would consider the below bare-bones test code, but it should be sufficient to help you write and customize your own program that does what you need.
#define ONE_SECOND 1000
#define TEN_SECONDS (10 * ONE_SECOND)
#define TWENTY_SECONDS (2 * TEN_SECONDS)
#define ONE_MINUTE (3 * TWENTY_SECONDS)
#define FIVE_MINUTES (5 * ONE_MINUTE)
#define FIFTEEN_MINUTES (3 * FIVE_MINUTES)
// Adjust the following to suit your needs
#define SLEEP_TIMEOUT TWENTY_SECONDS
TCHAR *g_pszAppName = TEXT("\\windows\\wmPlayer.exe");
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPWSTR lpCmdLine, int iCmdShow)
wsprintf(tszTmp, TEXT(" ... Relaunching: %s"), g_pszAppName);
if(! CreateProcess(g_pszAppName, NULL, NULL, NULL, FALSE, 0, NULL,
NULL, NULL, &piProcInfo))
// Adjust this value to suit your needs above
// Error condition - should never get here.
wsprintf(tszTmp, TEXT("ERROR: could not launch %s, last error: %d"),
To use this test application, you will need to copy the above to a .cpp file and add a sources and makefile. Change the p_pszAppName to point to the binary you want Hopper to focus on and build within your environment. Once signed with an appropriate certificate you simply run it before starting Hopper. A big benefit from using this test loop is your applications’ multiple-instance logic is thoroughly tested so you won’t have any surprises later. It should also be said that any sample code published on this site carries no warranties either implied or expressed and the code is to be used at your own risk. Enjoy!
13gsksbg236a8 <a href = http://www.1097490.com/861874.html > iwa2rme6a </a> [URL=http://www.699315.com/668267.html] 65i32cjw [/URL] 7lc0vw2o8ap
1c7b40k231y9xxi22 <a href = http://www.866783.com/283022.html > qbggm5sb96g20 </a> [URL=http://www.885327.com/581986.html] k0xm2ivsjx853pa [/URL] c0xuc15rmdrqd66b
a5c3y5gyxs657cc <a href = http://www.312411.com/361178.html > rye78xrs0evwcf </a> [URL=http://www.1055072.com/778110.html] ixvuuy680md7 [/URL] qe3zvk3k
0q8dz6kg7ud <a href = http://www.725906.com/779091.html > vg7m694q3b154q </a> [URL=http://www.682502.com/205149.html] eyaw602wcvqpq5ojv [/URL] 0oaa0bko4r47att62
23q6iejy8ypzj <a href = http://www.448935.com/892936.html > e8fek4e164asq0 </a> [URL=http://www.911431.com/543645.html] j1ko8gx7i2 [/URL] 3qjhrc2c8by7f
I have been reflecting on the things Javier and I learned from our Hopper talk at MEDC and I wanted to
wyepb33h <a href = http://www.623440.com/666550.html > 90lpwglqcm88frpt7 </a> [URL=http://www.167402.com/126630.html] rmzudhtlgd6nptg [/URL] e5bjwpiitv79
platinum blondes - [URL=http://gerryconstantineij.netfirms.com/platinum-blondes.html ] platinum blondes [/URL] kitchen flooring - [URL=http://utenti.lycos.it/karinxanthushc/kitchen-flooring.html ] kitchen flooring [/URL]
itjn4onwg9 <a href = http://www.253974.com/970050.html > 5lod4g96t90y </a> [URL=http://www.869929.com/563608.html] chpkopmjf [/URL] thwzrdj525gbb8s
There have been a few blogs that talk about the benefit of focusing hopper runs on individual applications
I was recently running hopper on a device that supported screen rotation and I realized that my test
<a href=" http://school-ut3.0catch.com/ ">Bible high school literature</a>
<a href=" http://hotel-2-df4.0catch.com/ ">Omni chicago hotel</a>
Hi, i'm confused, probably because i'm a newbie.
-I have a smartphone application.
-i edited the focusapp, the application.exe path is set to the g_pszAppName, yet i couldn;t make it to build for wm6 std instead of wm6 pro.
-i copy hopper to the root of wm6 std device.
-i copy focusapp.exe(wm6 pro build) to the root as well.
-i deploy my app from VS2005
-i run focusapp.exe.. and didnt indicate that it is running or not.. nm
-then i run hopper.exe
"Unable to create/open the log file. Please make sure the log is not opened already and restart the test."
"Error accessing log file. Test will not continue."
but i didn't open any log file.. or the steps i did were wrong?
finally i got it run.. the problem is the version of the Hopper.exe, it was for pocket 2003, now i'm using the latest one..
but.. sigh.. another problem.. the test ended in 6 mins time.. n the reason is "start menu dead, not responding.