PDA

View Full Version : FAQ: "This application has been disabled. Would you like to restore it?"


HooverLu
11-21-2002, 12:47 AM
I created a new MIF and generated a classID from local machine.
Then I wrote a simple "hello BREW" applet for it.

However, when I was trying to run this application on the emulator, the hourglass just stay there forever. I can't see my "hello BREW".:(

Can you tell me why I can't run my applet?

arunbangari
11-21-2002, 01:05 AM
check if both the mif file name and the .dll name are same.Also check if u have set MIF directory path and applet directory path in the emulator settings correctly.

Hope this helps
Arun Bangari

HooverLu
11-21-2002, 02:31 AM
Thanks Arun,

I moved the .dll files to the working folder and the applet went on.

However, the screen read :

"This application has been unloaded to save memory, you must download a new version."

Still i didn't see my "hello BREW".

Does anyone tell me how to solve it?

arunbangari
11-21-2002, 07:48 PM
Originally posted by HooverLu
"This application has been unloaded to save memory, you must download a new version."

BREW user's guide says "ensure that the applet subdirectory exists and has the same name as the MIF. Also, ensure that the applet subdirectory contains the applet DLL."

For more information please read the Problem and warning section of the BRW SDK user guide.

Regards
Arun Bangari

HooverLu
11-21-2002, 09:06 PM
The reason is that the .dll was put into a subfolder.

After I moved it to the applet folder as Arun mentioned, everything went smoothly.

Thank you.:)

mikebeaver
12-24-2002, 06:58 PM
When I program my first brew apllication, the emulator tell me that

This application has been
unloaded to save memory.
You must download a new
version.

Why?
please help me

arunbangari
12-25-2002, 08:31 PM
Check if the applet directory name and the MIF file name are the same. Also check if the applet directory contains the applet DLL. Some times your dll will be in debug or release folder. Change the path of dll in your project settings. For more info refer Problems and warning section of BREW SDK user's guide.

Regards
Arun Bangari

mikebeaver
12-25-2002, 11:59 PM
Thank you.
I find the answer.

krsunil
01-02-2003, 02:43 PM
Hi,

Is there a limitation of size of the dll that can run on the emulator?
I get no compile or liniking errors. But when I try to launch the applet on the emulator, the applet is cancelled. The message that I get on the emulator screen states that the "The application has been unloaded to save memory. You must download a new version". The size of the dll I was 200kb. How can I compile it to be of smaller size?

Thanks

arunbangari
01-02-2003, 08:42 PM
check out this thread..

http://brewforums.qualcomm.com/showthread.php?s=&threadid=667

Hope this helps...

Regards
Arun Bangari

krsunil
01-03-2003, 10:10 AM
Thanks a lot for the info.

But I did check for these things earlier. The only way I was able to get the app to work was by placing the MIF file 1 directory above the applet directory and by compiling the dll into the applet directory. Further, I had to change the IApplet * parameter in the Handle_Event function to AEEApplet *.

Thanks.

arunbangari
01-03-2003, 08:09 PM
Oops..Sorry, i forgot that you r testing ur application on 2.0. Yes in 2.0 you need to keep your MIF file one directory above the applet directory. Alternatively u can change the MIF directory path in the emulator also.

Regards
Arun Bangari

mikebeaver
01-07-2003, 12:35 AM
I met the same question as you, and you may make one of the follow questions:
1 the .mif and .bid file is not in the directory you choose.
2 the .dll is not in the directory you choose.
3 you are not use the brew wizard in the VC, and the configration is not right

bdev
01-15-2003, 12:59 PM
I am a new BREW user and whenever loading a simple application, always gives the error : " The application has been unloaded to save memory. You must dowload a new version"
I am using BREW SDK v2.0.0

Could somebody suggest any possible issues?

rkuppala
01-15-2003, 01:41 PM
Make sure that your MIF directory is one directory above your application directory.

Also make sure that you are not creating your dll in the Debug sub-directory. u can change it in the project settings. create it within the app directory.

bdev
01-15-2003, 03:40 PM
Yes, It was the directory setting problem.

Doug_Dyer
01-24-2003, 01:43 PM
Hello,

To anyone that can help, I've compiled the myfirstapp following each step along the way. Everything builds fine. When I use the emulator, I see the myfirstapp present. If I select it I get:

"This application has been unloaded to save memory. You must download a new version."

The log is:

ISHELL_AppStart 269488144
WakeStart...
#*gSU=16809984
#*gCL=16809984
WARNING: App Callback Pending (00B8278C)
App_Cleanup(1008000)
** M-0 Released
App Context Created 269488144
#*g*C=10101010:257
App_Close (10101010) - NO RESUME
App_Cleanup(10101010)
App_Free(10101010)
App_Cleanup(10101010)
WakeResume
#*gRE=16809984
Restart App
App_SendStart(0)...
App Started...
WakeResume Done
WakeStart Done...
#*gSU=16809984
#*gCL=16809984
WARNING: Timer Pending 004F955C
App_Cleanup(1008000)
** M-0 Released
#*gSU=0
App_Cleanup(0)


What the HELL is going on? This is my first attempt at just trying to do something in BREW so I don't know the quirks yet. I tried building a release dll rather than debug but that didn't seem to make a difference.

Thanks for any feedback
Doug

Exarch31
01-24-2003, 02:29 PM
When you compile it, your dll is probably going into the Debug subdirectory. it has to be moved into the working dir, one level up.

Tim

Iee
01-26-2003, 11:29 PM
Please copy it to work directory...

polygonsheep
01-26-2003, 11:43 PM
or..... your .mif file and .dll file have different names.

Doug_Dyer
01-27-2003, 06:13 AM
Well all of those were good suggestions. I did in fact leave the DLL in the debug directory but that wasn't all...

The MyFirstApp.mif file has to be in the examples folder with the others (roadwarrior, whiteboard, etc). I thought I could just have them together in a project folder and "change applet dir" in the emulator but thats apparently not allowed :)

Examples/*.mif
Examples/myfirstapp/myfirstapp.dll

Thanks for the feedback
Doug

tyndal
01-27-2003, 07:49 PM
Yes you can put them in a different folder and do a "change applet dir" you just have to make sure the directory structure is like this:

somedir/myapp.mif
somedir/myapp/myapp.dll

somedir can be whatever directory you would like, it doesnt have to be the Examples directory.

Just to make sure, this is the 2.x emulator I am talking about.

-Tyndal

kUfa
07-24-2003, 11:35 AM
Hi there..

I'm trying to create a new 1.1 app. I use the brew wizard, create a good mif file, with correct bid, correct images/icons/etc.., correct name.
When i want to start it, boom, bug, but nothing in my app is called (i placed breakpoints EVERYwhere :), just got this message in the brew2 emulator:
"This application has been unloaded to save memory. You must download a new version".. I joind the log file, but any idea??

/kUfa

Murray Bonner
07-24-2003, 01:07 PM
Have you changed your linker settings so that your dll goes into the application's root directory instead of the \debug subdirectory?

The Emulator can't find your .dll.

Murray

kUfa
07-24-2003, 01:22 PM
Of course i've moved the dll..

Murray Bonner
07-24-2003, 01:25 PM
Sorry for even suggesting it.

kUfa
07-24-2003, 01:27 PM
Lol np :)

Btw this is quiet weird, because i'm using the same MIF and startup routine than another working project.. maybe this is something wrong in the default vc project configuration, but i checked it.. Probably something i have not seen?

Murray Bonner
07-24-2003, 01:36 PM
Do you mean you have the same classID in 2 .mif's in the mif directory? I'm sure you know they need to be unique.

kUfa
07-24-2003, 01:37 PM
Lol of course i do not use the same mif/app directories ;)

Murray Bonner
07-24-2003, 01:40 PM
i'm using the same MIF and startup routine than another working project

Gee, I wonder how I could have got that crazy idea. LOL.

kUfa
07-24-2003, 01:42 PM
Because propably some persons have already done this mistake :p

And i'm sure my trouble is quit dumb too, but still dunno what it is..

tcaijian
07-25-2003, 01:42 AM
run BREW Emulator, set my application path for the MIF's base path,the BREW Emulator can find my application right ,but when i run my application , the message show as bellow:

This application has been unloaded for save memory, you must Download a new version!

This application has been unloaded for save memory, you must Download a new version!!
Why?

tianqj
07-25-2003, 02:29 AM
the directory contains the mod file must has the same name as the the mif file's. it seems to me your directory has a wrong name

tom
07-25-2003, 09:19 AM
Yeah, the first time i tried to run an app that wasn't in the examples directory i wasted a whole day trying to figure it out. You must use this directory structure:

<your_folder>/your_app.mif
<your_folder>/your_app/your_app.dll

Remember that, by default, Visual C++ puts the dll in a Debug or Release subdirectory, so you have to change that in your project settings in Visual Studio.

Make sure your MIF has the same class id as you used in your code.

--t

Vexxed
07-25-2003, 11:26 AM
You get that message when the emulator finds the MIF, but can't find the DLL.

Remember that the Emulators will look for MIFs in the MIF directory you specify, but it looks for the DLL in:

<App directory>\<MIF Name>\<MIF Name>.dll

So if you have both the App Directory and the MIF directory set to be the same, then you should have the following directory structure:

MyApp.mif
MyApp\MyApp.dll
MyApp\MyApp.bar

Tom

Vexxed
07-25-2003, 11:29 AM
FungosBauux -

The hardest thing with BREW is getting all the tools and development environment up and working correctly. There's a few unexpected things (like the way the directories work in the emu), but once you get it all set up it's actually quite nice to work with.

Tom

FungosBauux
07-25-2003, 11:38 AM
i think it.. brew is C... than its easy..
but get this working its hard.. and its a weakness for a commercial product.. i think than it can be better and easier.. but right now, it isn't..

any tip how to get all this stuff working right!?

uninstall everything and try again?

lquach
08-28-2003, 11:35 AM
I am getting the same error, and I have verified that the mif, bar, and dll are in the correct directory.

brew\myfirstapp.mif
brew\myfirstapp\myfirstapp.dll
brew\myfirstapp\myfirstapp.bar

...

still same error.. any idea????????

thanks...

lquach
08-28-2003, 11:40 AM
need some help!

.. i have read all the messages on this thread to try to fix that error "... application unable to load..." but still not working. any other thing i should verify?????

lquach
08-28-2003, 11:42 AM
oh.. the examples works fine and i have looked in the directory.
i am using the latest emulator and sdk.

thanks advance for any suggestions.....

lquach
08-28-2003, 04:58 PM
FYI... I am using Studio .Net to create the Brew application (following the instructions in the "Createing Brew Applications Using Visual Studio .NET) and I am have that problem.

I've copied the same source code to Studio 6 and it works...

..

lquach
08-28-2003, 04:59 PM
FYI... I am using Studio .Net to create the Brew application (following the instructions in the "Createing Brew Applications Using Visual Studio .NET) and I am have that problem.

I've copied the same source code to Studio 6 and it works...

..

jeantsai
11-19-2003, 12:38 PM
Hi Kufa,

Have you found the solution for it?
i had similar problem though it's not on my machine, it's in NSTL testing:
=============================================
Error: If the user starts the PC emulator, the emulator displays the following error message. "The Application Was Unloaded To Save Memory. You Must Download A New Version." Thus, the emulator failed to run. (Test Case 3.3.10.2, 3.7.1.1)

Steps to reproduce error:

1. Setup grinder per Brew Manual instructions
2. Press the select button on the emulator
=============================================
any idea and suggestion?
the big problem is that I cannot reproduce this on my machine, and I have no clue about what this error might be caused by...

Thanks,
Jean

jeantsai
11-19-2003, 12:40 PM
oh, by the way, I have other applications running ok (passing NSTl testing) with similar starting-code.

Thanks,
Jean

anmol
11-25-2003, 11:24 AM
Hey ppl,
for BREW 2 emulator.... put the BAR files into your applet directory

:cool:

aisaksen
11-26-2003, 07:22 AM
make sure there is no .sig file

mhdave
01-25-2004, 01:02 AM
I ported my application on CDM8400 and it works fine but when I am trying to emulate the device I am getting the following error on the display screen.
"The application has been unloaded to save memory. You must downlaod a new version."
I am sure that I have given the correct path for the applet directory.

tom
01-25-2004, 09:27 AM
This is a common question. Search on "subdirectory emulator".

tom
01-25-2004, 09:36 AM
Well, okay, here's everything in one place:

The emulator is finding the mif but not the dll. You need this directory structure:

/some_path/your_app.mif
/some_path/your_app/your_app.dll

Make sure there's no sig file in the subdirectory.

By default, Visual Studio puts the dll in a Debug or Release subdirectory depending on the build configuration. You need to change the Output Filename in the project settings on the Link tab.

When you say "it works fine" do you mean you actually have run the app before?
--t

mhdave
01-25-2004, 11:01 AM
thanks guys for the help...
Well I followed the same directory structure as suggested but that ddint work either.
I am sorry I meant to say my mod files works fine.

tom
01-26-2004, 11:58 AM
Is the class id that you used in the mif the same as the class id you're checking for in AEEClsCreateInstance?

tom
01-26-2004, 12:15 PM
Actually, a wrong class id gives a different error when you run it. I'm not sure of all the causes for the message that you're seeing, but it definitely comes up when the emulator can't find the DLL.

You're running the version 2.0 emulator? Did you uncheck the mif directory in Settings? The DLL filename and the subfolder have the exact same name?

mhdave
01-26-2004, 12:52 PM
Thanks Tom.
I checked the classID in the Bid file and the mif file and thats the same. Other games like jeopardy works fine on the emulator. I tried emulator version 2.0 and when i try to run the app, it crashes. It dosent even reach a point when the app is first initialized. I read the tech spec. when the error reporting screen pops up and it shows that thers some access violation. The debugger just opens the assembly code.

tom
01-26-2004, 06:16 PM
So now it's getting past that "The application has been unloaded" message, and if you put a breakpoint at the top of AEEClsCreateInstance, it crashes before it hits the breakpoint?

I've seen that before, but don't remember how to fix it...

Two things to check:

1) If you have multiple versions of the BREW SDK installed, make sure your BREWDIR environment variable is pointing to the right version of the BREW SDK. Also, if your project contains the AEEAppGen and AEEModGen files (there are ways to avoid this), then make sure it is pointing to the correct ones.

2) In the Visual C++ project settings for the Debug configuration, look at the C/C++ tab, Code Generation category, and make sure the run-time library is Debug Multithreaded.

mhdave
01-27-2004, 10:25 AM
thanks tom...
i changed the debug settings and now everything works fine...
the previous setting was under (release kyocera) and ichanged it to (debug kyocera) and it solved the purpose...
thanks a lot

ShantanuDeo
01-29-2004, 08:31 PM
I think the problem is that .dll is not getting created with proper name or at proper place.
Get it out of Debug Directory, in ur folder in application directory

Shantanu Deo

padma
02-03-2004, 02:03 AM
Hi,
i am working on Brew SDK 2 version...........i have written an applet which just displays a string.........but when i run this applet on emulator it is displaying the following message------"This application is unloaded to save memory.u must download a new version"

Pl..z tell me what is the problem ?

tyndal
02-03-2004, 02:21 AM
https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/developerfaqs/docs/creatingapps/coding/codingb.html

perhaps your DLL is in the debug directory instead of the main directory

skumar_rao
02-03-2004, 02:24 AM
hi,

If the Brew emulator shows

" The application has been unloaded to save memory. You must download a new version"

means the dll is not found by the emulator......

try chaging the applet dir option in the emulator menu........

good luck...

padma
02-03-2004, 03:17 AM
Hi,

i got the solution ..........if both mif & dll files are in the same directory it will not work...............i saved dll file in the applet dir & mif file in the parent dir............Now its working fine.

Regards,
padma

3feetedcat
03-12-2004, 05:47 AM
When I run the helloworld app, it tips that " Disabled This app was disabled to save space.Would you like to restore it now?"
How to correct this problem?

max
03-12-2004, 10:16 AM
here (http://brewforums.qualcomm.com/showthread.php?s=&threadid=3397)

phathappy78
03-29-2004, 09:18 AM
I have a very simple question. When I launch a simple test application in the simulator, I receive the following message:

Disabled: The app was disabled to save space. Would you like to restore it now?

Hitting restore does nothing. I believe I have create all the correct files, and the dll has been compiled.

Any help greatly appreciated.

Thank you.

max
03-29-2004, 09:32 AM
The Simulator couldn't find your DLL. Make sure your application directory is correctly specified, see here (http://brewforums.qualcomm.com/showthread.php?s=&threadid=3397).

BillC
04-01-2004, 10:56 AM
I am trying to run my app in the BREW Simulator but every time I launch the app I am returned a error screen that states:

Disabled
This app was disabled to save space. Would you like to restore it now?

I then press the soft key with Restore labeled on it and nothing happens?

I am using Visual Studio .NET C++ with BREW Addins 3.0 and BREW SDK v3.0.1.

ebrowne
04-01-2004, 12:04 PM
This error usually means that the app DLL isn't in the right directory, or the simulator is looking in the wrong directory. Make sure the applet dir is set in the simulator to be the directory above where the DLL is, and that the DLL is in a folder with the same name as itself.

BillC
04-01-2004, 01:08 PM
I have the Applet DIR set to the project folder which is also where the DLL resides. According to BREW documentation this is the proper setting. When I change the Applet DIR to the folder above the project folder the Simulator no longer displays the applet as a program to run? I can only assume this means it can't find the DLL?!

max
04-01-2004, 01:27 PM
Click here (http://brewforums.qualcomm.com/showthread.php?s=&threadid=3397)!

BillC
04-01-2004, 01:59 PM
I have the Applet DIR set to the project folder which is also where the DLL resides. According to BREW documentation this is the proper setting. When I change the Applet DIR to the folder above the project folder the Simulator no longer displays the applet as a program to run? I can only assume this means it can't find the DLL?!

BillC
04-01-2004, 02:16 PM
I attempted this and it now shows the app icon but doesn't launch the app. My path is C:\Source\BREW\Test and the MIF and DLL are in the Test folder. I now have these emulator settings:

Applet Directory: C:\Source\BREW
MIF Dir different: YES
MIF DIR: C:\Source\BREW\TEST

Again, with these settings the icon is shown but nothing happens???

BillC
04-01-2004, 02:16 PM
I attempted this and it now shows the app icon but doesn't launch the app. My path is C:\Source\BREW\Test and the MIF and DLL are in the Test folder. I now have these emulator settings:

Applet Directory: C:\Source\BREW
MIF Dir different: YES
MIF DIR: C:\Source\BREW\TEST

Again, with these settings the icon is shown but nothing happens???

max
04-01-2004, 02:29 PM
Hrm...try clicking the "Apply" button a couple times. Occasionally it fails to register the first click.

BillC
04-01-2004, 03:27 PM
Well, I tried the Apply and changing the DIR paths but nothing seems to work. I did notice in the Output Window that it was stating something about Upper Case/Mixed Case and the apps might not run? My file is named Test.dll, Test. mif, and as mentioned previoulsy the folder is Test? Also, do you have any suggestions as to reference books to purchase that deal with development using .NET C++ and BREW?

max
04-01-2004, 03:31 PM
Ah - you need to change all your files and directories to lowercase. The BREW file system only supports lowercase names. The BREW Emulator was more forgiving with respect to naming conventions, but the Simulator is a real stickler for protocol.

BillC
04-01-2004, 03:33 PM
Ok, WILCO, any advise on reference books, etc.? I just want to let you know I appreciate your help and so far this forum has been extremely responsive and I appreciate that!!!

max
04-01-2004, 03:55 PM
I haven't actually read any, so I can't provide any endorsements. One that I'm aware of is Wireless Game Development in C/C++ with BREW (http://www.amazon.com/exec/obidos/tg/detail/-/1556229054/qid=1080863414/sr=8-1/ref=pd_ka_1/102-1395030-4368969)...the author is a forum participant, if he wants to provide a plug. ;)

Applewood
05-27-2004, 06:36 AM
Hi. After a long absence I've started to work on porting a smartphone game to BREW. I've got my old libraries working again and a clean compile.

I'm just wondering though if theres a way to make the emulator do anything other than tell me my app has been unloaded to save memory and that I should download a new one ?

I'm developing v1.1 software but using the 2.0 emulator, and the moto skin I'm using has been given 5Mb to play with in the configurator.

Is there someone I have to bribe or something so I can just get on and write some code ?

jmiller2
05-27-2004, 08:01 AM
Hi. After a long absence I've started to work on porting a smartphone game to BREW. I've got my old libraries working again and a clean compile.

I'm just wondering though if theres a way to make the emulator do anything other than tell me my app has been unloaded to save memory and that I should download a new one ?

I'm developing v1.1 software but using the 2.0 emulator, and the moto skin I'm using has been given 5Mb to play with in the configurator.

Is there someone I have to bribe or something so I can just get on and write some code ?


http://brewforums.qualcomm.com/showthread.php?t=3397&highlight=unloaded


---jeff

Applewood
05-27-2004, 09:26 AM
tyvm :S My bad!

zPiVoT
06-07-2004, 10:42 PM
I also experienced the same problem. I am using BREW 1.1. Can anyone help us???

ericF
06-16-2004, 03:28 PM
When launching my applet, I get the message "The application has been unloaded to save memory..."

My first thoughts were that the DLL did not exist or some problems with the MIF file.
However, my application has been running already. The only difference is that I added a lot of files into the project.
which made me think there is maybe a size limitation to the DLL.

The error I get from the output window is:
App Context Created 528753
First-chance exception in BREW_Emulator.exe (MYAPP.DLL): 0xC0000005: Access Violation.
#*g*C=81171:257
App_Close (81171) - NO RESUME
App_Cleanup(81171)
App_Free(81171)
App_Cleanup(81171)

So, is there any limitation to the DLL size or the number of object code files to be loaded by applet?
Is there a way to step into the ISHELL_CreateInstance?

My applet is a BREW extension that gets called thru a ISHELL_CreateInstance.
My applet's AEEClsCreateInstance function does not get called at all (I put a breakpoint but it does get hit) and the ISHELL_CreateInstance returns 0x00000101.

Any idea?

charliex
06-16-2004, 05:46 PM
is your applet structure size larger than a signed short can hold, theres a "bug" in the prototype and function for the createapplet applet size required that only allows upto a signed short in size.

i always modify my sdk to allow 32 bits unsigned, since somehow i doubt i'd ever be asking for a negative value to be allocated :) but someone at qualcomm obviously thinks there is a need to allocate negative amounts of memory.

typically though, i only need it though when prototyping on the emulator.

ericF
06-16-2004, 05:50 PM
where to you modify the createapplet to take unsigned 32?

charliex
06-16-2004, 06:04 PM
only do it if you *need* a large "applet structure" size, this not the size of the dll or the mod, its the size of the custom structure you pass around insde the game, with the AEEApplet in it.

its the size parameter in the CreateInstance, it should be int16 or something, set it to uint32 in the header and aeeappgen.c or aeemodgen.c i forget which it is

Kaster
08-11-2004, 11:22 PM
I am new to BREW, and am trying to get the openGL triangle sample running on the simulator. When I try to run the openGL app inside the simulator I get an in-simulator message saying; "This app was disabled to save space. Would you like to restore it now?" Has anyone run into this problem, or happen to know what I'm doing wrong? Thanks in advance.

max
08-11-2004, 11:59 PM
http://brewforums.qualcomm.com/showthread.php?t=3397

vimakefile
09-14-2004, 12:57 PM
I'm using the new VS.Net wizard at
https://brewx.qualcomm.com/bws/content/gi/products/vsaddins/3.0/3.0.0.5/web_install/install.htm

This seems to set things up so that that the MIF and DLL are in the same dir. The ID is a user local #defined by the MIF editor, so that doesn't seem to be a problem either.

However, running an un-modified "empty" project generated by the wizard gives the "...unloaded to make room..." error. :confused:

(I'm running debug and also can't grab breakpoints, but I'm sure that's something simple.)
Ideas?

thanks

vimakefile
09-14-2004, 01:16 PM
Some of the posts/faqs seem to imply (or more likely I misread them) that the default setting of the emulator (when a seperate MIF dir isn't specified) means dlldir == mifdir -- but I see that mifdir == dlldir/..
It doesn't help that the wizard seems to create an extra level of directory ...MyApplets/MyApp/MyApp/Debug...
thanks

vonolsson
09-23-2004, 11:37 PM
Hello!

This problem is not as simple as it seems from looking at the title. I am well aware of what it normally means if the emulator reports that "The application has been unloaded to save memory..:"; the applet directory is incorrect, the DLL or MOD file has the wrong filename, etc. This is not the case for me however.

If I, using VS.NET 2003, start my applet on the emulator in debug mode (which gives me the emulator output to the debug window in VS), I get the follwing output:

.
.
.
ISHELL_AppStart -2023406815
WakeStart...
#*gSU=16809984
#*gCL=16809984
WARNING: Timer Pending 004F9540
WARNING: App Callback Pending (0115E404)
WARNING: App Callback Pending (0115E724)
App_Cleanup(1008000)
** M-0 Released
App Context Created -2023406815
'BREW_Emulator.exe': Loaded 'C:\test\test.dll', Symbols loaded.
'BREW_Emulator.exe': Unloaded 'C:\test\test.dll'
#*g*C=87654321:257
App_Close (87654321) - NO RESUME
.
.
.

As you can see, VS reports that the emulator actually loads my applet's DLL. My AEEClsCreateInstance is never called however. Neither is any function in AEEAppGen.c and AEEModGen.c. Could the line "App Context Created -2023406815" give some clue? I have never seen a negative value for this. Is it perhaps an error code I could look up somewhere?

My application is a rather large C++ application so its kind of difficult to go into details on what the application does or post any source code. It can say, however, that it worked fine until I made some minor changes which I, as far as I can tell, all have restored back to the way things were when it was working (I can of course have missed something...).

Has anyone experienced similar problems? Grateful for any ideas!

Best regards
David Olsson

sumeet.agrawal
12-02-2004, 02:48 AM
HI,
I am a new learner of BREW SDK. and I started working on sample codes available at
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/samplecode
I have installed them successfully and placed them into <C:\Program Files\BREW 3.0.1\sdk\examples>
Now from brew simulator I have set the MIF directory path to same. And I’m able to see the application icons on the brew simulator screen.

But problem is that whenever I start any application one message has come in new window stating that

Disabled
This app was disabled to save space.
Would u like to restore it now?
[Restore] [Cancel]

And when I clicked on Restore button nothing is goanna happen
I don't know y this problem is there.

Can u help me out what can be the reason behind this problem ??????

Expecting quick and prompt reply

max
12-02-2004, 09:58 AM
http://brewforums.qualcomm.com/showthread.php?t=3397


Try searching the forums.

SniZ
12-05-2004, 12:13 AM
i have same problem!! i press restore, but it not work!!
i think is problem in NTFS

Dragon
12-05-2004, 09:14 AM
Yeah, right. I don't think so.

locomotive
12-10-2004, 09:26 AM
FYI... I am using Studio .Net to create the Brew application (following the instructions in the "Createing Brew Applications Using Visual Studio .NET) and I am have that problem.

I've copied the same source code to Studio 6 and it works...

..

I am using .Net 2003 and have the same problem. Does BREW SDK work with .NET 2003?

Does anyone has the solution?

Thanks

durga
01-17-2005, 03:54 AM
When I Loaded My App In Emulator....its Displaying That .........this Application Has Been Unloaded To Save Memory. You Must Down Load New Version.........................
May I Know What Was The Cause Of This Message......how Could I Run My App In Emulator

hairavi
01-17-2005, 04:11 AM
Hi...
This error message will be displayed on the emulator, when the application dll is not identified in the appropriate location. Check once, whether u generated the dll or not and if generated, is it in the correct location or not.

max
01-17-2005, 05:35 PM
http://brewforums.qualcomm.com/showthread.php?t=3397

Pr09aN1g0d
01-23-2005, 12:27 AM
I have built a basic application via the BrewAppWizard using MSVC++6.0 (adding no original code at all). I then created a .MIF using the MIF editor. When I attempt to open this app in the simulator I get a few errors:


My icon from the MIF editor is not displayed. Instead a bunch of cubes stacked on top of each other or a doc ripped in half are displayed.
When I open the app through the simulator...
DisabledThis app was disabled to save space. Would you like to restore it now?
Two options are shown (restore/cancel) but restore does nothing.


I am not sure where the error lies, technically there should be no error since this is only skeletal code. Could anyone tell me where my fault is?

charliex
01-23-2005, 12:43 AM
make sure you have the dll in the right place
appname.mif
appname\appname.dll
etc

Pr09aN1g0d
01-23-2005, 07:50 AM
That worked, and it solved both problems! :D

nparrish
01-24-2005, 04:31 PM
I highly recommend you go through this document:

Starting BREW Application Development (http://brew.qualcomm.com/brew_bnry/pdf/developer/resources/gs/starting_brew.pdf).

Sandhya
03-08-2005, 10:00 PM
Hi all,

I have wriiten code for low-level navigation for a collection of BREW controls on a single screen of a device.

When I build ,I am not getting any errors,it is successfully builded but when I am trying to run in the emulator it is displaying the following message in the emulator.

"This application has been unloaded to save memory.You must download new Version"
But there is a lot free memory in the emulator.

And also If I try to run a simple hello program it is giving the same message.Why that message is displaying though we have a lot of free memory in the emulator.

Please help me since I am enable to run any application in the Brew emulator.
Reply soon.

Regards
Sans

Deepali
03-08-2005, 10:14 PM
Hey sandhya
you need to check if ur applet directly is pointing to the right folder...
also check ur specifications for mif directory...in Tools/Settings in emulator...
-Deepali

Sandhya
03-09-2005, 04:49 AM
Hi Deepali

I have seen ur reply.I have checked the options which you have said .

The applet is pointing to the correct folder.

And also I am giving correct location for .mif directory in Tools/Settings in the Brew emulator.

But I am getting the same message.The application is not running in the emulator.

Regards
Sans

ruben
03-09-2005, 04:54 AM
Why did you start a new thread when your actual thread of discussion is
http://brewforums.qualcomm.com/showthread.php?t=7860

Jonathan
03-09-2005, 08:47 AM
Go to Project->Settings (in visual C++) and take out "Debug" from the "Output Files" text box.

muthu_asb
03-16-2005, 02:02 AM
Hi
[In Vc++]Select project -> setting ->link - in that take out Debug from the output file name text field.then it will work.problem because of your dll file stored under debug directory, but u have to save under your application directory.
Thanks
Muthukumaran.S

Hi all,

I have wriiten code for low-level navigation for a collection of BREW controls on a single screen of a device.

When I build ,I am not getting any errors,it is successfully builded but when I am trying to run in the emulator it is displaying the following message in the emulator.

"This application has been unloaded to save memory.You must download new Version"
But there is a lot free memory in the emulator.

And also If I try to run a simple hello program it is giving the same message.Why that message is displaying though we have a lot of free memory in the emulator.

Please help me since I am enable to run any application in the Brew emulator.
Reply soon.

Regards
Sans

Sandhya
03-17-2005, 09:41 PM
Hi

Thanks for your help.The problem is solved.I am suffering with this problem for some many days.Now I am able to run the applications successfully in the Brew emulator.

I need another help.Is there any Pop up Menus in Brew.If yes please give an example.

Regards
Sans

muthu_asb
03-21-2005, 03:58 AM
Hi
In brew we have to create our own artificial pop up menu by using menu control interface.
please you have to go threw the API document.

Thanks

Muthukumaran.S

tsicon
03-22-2005, 07:02 AM
hi,

i'm new to BREW and try to evaluate BREW for my company. i'm using .net and the BREW 3.1.2 SDK. when i try to deploy my applications on the simulator (even the examples in the sdk), they will not work.

>> This applications has been unloaded to save memory. You must download a new version.

In the output screen something like that will be shown:

#*g*C=1000003:3
#*p:ECode:101, Key:e035
#*p:ECode:100, Key:e035
ISHELL_AppStart -1412567295
WakeStart...
#*gSU=16809984
#*gCL=16809984
WARNING: App Callback Pending (004F8598)
WARNING: App Callback Pending (00E522CC)
WARNING: App Callback Pending (00E5275C)
App_Cleanup(1008000)
** M-0 Released
App Context Created -1412567295
#*g*C=abcdef01:257
App_Close (abcdef01) - NO RESUME
App_Cleanup(abcdef01)
App_Free(abcdef01)
App_Cleanup(abcdef01)
WakeResume
#*gRE=16809984
Restart App
App_SendStart(0)...
App Started...
WakeResume Done
WakeStart Done...
#*gSU=16809984
#*gCL=16809984
WARNING: Timer Pending 004F8A94
WARNING: App Callback Pending (00E5003C)
App_Cleanup(1008000)
** M-0 Released
#*gSU=0
App_Cleanup(0)
#*p:ECode:102, Key:e035


-------------------------------------
any ideas whats going wrong?

thx

Rock Lee
03-22-2005, 07:13 AM
That usally means that you set up the directories incorrectly in the BREW Simulator. Check your settings for the MIF and applet directory (and the contents too).

HTH

tsicon
03-22-2005, 09:31 AM
hi,

have fixed the problem by my self.
it's strongly recommended that the compiled <project>.dll is outputted in a subfolder named <project>.

why it is'nt a default setting in the appwizzard, when needed such a convention?

what ever
thx

ruben
03-23-2005, 05:22 AM
BREW SDK documentation clearly mentions about this directory setup issue, however it would be good idea if Qualcomm modifies the app wizard.

max
03-24-2005, 03:26 PM
I've filed a change request.

RegisterMe
04-02-2005, 02:55 AM
Hi,
Please help, is any Tutorial for Brew Game development in c++ ?.
and I am not able to create new Applet from scratch using dummy ClassID.
It is showing error when run in emulator : Application is unloaded to save memory.
why?
please give me the steps in detail to create simple hello world!!!,

emilio
04-02-2005, 08:44 AM
I recommend you the "Wireless game development in C/C++ with BREW" by Ralph Barbagallo

derbychamp
04-03-2005, 11:23 PM
1)
The emulator is not getting the path of the dll.
Go to the a) project-menu = settings & in the general tab the Output tab
should be blank if it is debug then ur dll is in the debug which shouldn't be.
put ur dll in the game directory.

2)
Wrong settings in the emulator.
Your App dir : Examples
Your Mif dir : game directory.

Nem
04-08-2005, 04:52 AM
Hi there,

I'm getting the all famous "This application has been unloaded to save memory..." error when I'm trying to execute my application on the emulator.

I've verified that the directories are well set and the .dll is in the correct place. I know the emulator finds the dll but it seems like it is not a brew app or something... no idea... :(

I'm getting this output:

#*p:ECode:101, Key:e035
#*p:ECode:100, Key:e035
ISHELL_AppStart 16843009
WakeStart...
#*gSU=16809984
#*gCL=16809984
WARNING: App Callback Pending (01230F58)
WARNING: App Callback Pending (01231028)
App_Cleanup(1008000)
** M-0 Released
App Context Created 16843009
#*g*C=1010101:257
App_Close (1010101) - NO RESUME
App_Cleanup(1010101)
App_Free(1010101)
App_Cleanup(1010101)
WakeResume
#*gRE=16809984
Restart App
App_SendStart(0)...
App Started...
WakeResume Done
WakeStart Done...
#*gSU=16809984
#*gCL=16809984
WARNING: Timer Pending 004F8AB0
WARNING: App Callback Pending (012021DC)
App_Cleanup(1008000)
** M-0 Released
#*gSU=0
App_Cleanup(0)
#*p:ECode:102, Key:e035

Anybody could give me a hint? I'm rather clueless at the moment :confused:

skumar_rao
04-08-2005, 06:31 AM
Hi Nem,

The only reason i can figure out is that the dll is not generated in the Application directory instead in might be generated in the Application directory/debug.

Best of luck

Nem
04-11-2005, 01:16 AM
No, it is not in the Debug directory, I've already checked that... :(

skumar_rao
04-11-2005, 01:29 AM
Does your
>.mif file
>application directory and
>.dll file all

are of same name....

Nem
04-11-2005, 02:44 AM
I found out! :D

I was creating and initializing some 2D static constant arrays. I built the application without any trouble with Visual C++ but it failed to execute.

Thanks for your time, skumar_rao ;)

Cypress
05-18-2005, 12:44 PM
We've been building and debugging an app for some time, and happily
running it in the emulator (v2.1 & 3.0) with no problems.

I recently built an emulator drop zip file to send to our customer for screen
shots, and he gets the above mentioned error.
The emulator clearly can't find the DLL.

But we've followed all of the proscribed rules:
The applet dir contains:
myappname.mif
myappname (directory)
myappname/myappname.bar
myappname/myappname.dll

The Class ID in the MIF file is the same as that in the DLL.

3 Diff developers can unzip and run this app on 5 different development
PC's; with no problems, with both the SDK 2.1 Emulator and SDK 3.1.2 Simulator.

But on two different customer PC's that each have SDK 2.1.x loaded,
(which do successfully run other apps) in the emulator, they cannot
run this app.

Any ideas?

bulach
05-24-2005, 06:20 AM
I'd suggest for double checking:

1. MIF directory (Emulator, Tools->Settings)

2. App directory (Emulator, File->Change Applet Dir)

3. Emulator "skin" being used. Make sure your customer use the same QSC file as you..

drorc87
07-27-2005, 07:36 AM
i developed an app and i build it on the VC++ but when i want to load it on the emulator i get the message: "This application has been unloaded to save memory. You must download a new version"
please help me !!!!!!!
i dont know what to do.... what version should i load ?!?

thank u anyway...

Rock Lee
07-27-2005, 09:11 AM
Most likely, you set up the application and the MIF directory inncorrectly -- check your settings.

HTH

janardhan
08-02-2005, 10:17 PM
Hai,

Iam new to Brew and iam working on version 3.1.2 I struct up with some problem which is when i select an application icon that iam creating I getting an error indicating as


Disabled
The app was disabled to save space would you like to restore it now? Please anyone of u help me in this regard


Thanks & Regards in Advance
janardhan

janardhan
08-03-2005, 02:40 AM
That worked, and it solved both problems! :D

Hai,

iam new to brew Iam facing the same problem what u have faced that is when iiam running the application iam getting an error message indicating that

The App was disabled to save the space would you like to restore it now

with two controls one is "Restore" and other is "Cancel" of which the restore control has no effect and cancel control brings the control back to the main menu


please help me in this regard with clear view


Thanks and regards in advance
janardhan

charliex
08-03-2005, 01:28 PM
read the pdf Nathan posted if you don't understand my response, especially the "common issues" section

Unmesh
08-09-2005, 12:39 AM
This error is generally seen when your dll is not present in the correct folder.

Check Project->Settings->Link
In the output file name remove the Debug folder entry Keep only the dll name

recompile the application and try

janardhan
08-09-2005, 10:29 PM
Thank u Umesh i got and i solved the problem.

Ashita
08-11-2005, 05:17 AM
Hi!
i want to port Calculator Appication on LG-Vx 6000. i am new to UIToolkit. i have compiled calculator.mod using ARM and uploaded the following files on the handset
Calculator.mod
Forms.mod
Widgets.mod
Calculator.bar
Calculator.sig
themes.bar
Calculator.mif
but when i invoke the application, i get and error message saying
"This application has been unloaded to save memory. You must download a new version"

Can anyone please help me with finding out what is wrong ?? :confused:

ShantanuDeo
08-11-2005, 09:32 AM
This certainly seems to me the problem that files not being in proper place.
Ensure corrent directory structure is maintained.
Note : Forms and Widgets are extensions

Where have u copied the individual files to ?

Regards

Rock Lee
08-11-2005, 09:53 AM
Do you have your structure like this?

BREW
calculator
calculator.bar
calculator.mod
calculator.sig
theme.bar
forms
forms.mod
forms.sig
widgets
widgets.mod
widgets.sig
calculator.mif
forms.mif
widgets.mif

HTH

Ashita
08-11-2005, 10:48 PM
Hi! shantanu
thanks.. it was the prob of directory structure.now it works on the handset...

udhay
09-27-2005, 04:11 AM
hi, when i try to load any applications i am getting error message:" THE APPLICATION WAS DISABLED TO SAVE SPACE. WOULD YOU LIKE TO RESTORE IT NOW?" but when i press the restore button nothing is hapning

would you please help me in this...

regards

nparrish
09-27-2005, 09:02 AM
The simulator can't find your DLL. Make sure it is named correctly and in the right directory.

Jonathan
09-27-2005, 09:11 AM
This message occurs when the simulator can not find the .dll. You can try the following:

1. Go to Project->Settings->general and clear text from output text box. This will place the .dll in your working directory and not the debug directory

2. Make sure the directory structure is correct. If you do not specify the MIF directory(default) then it should be as follows:
<Applet directory>/<appname>.MIF
<Applet directory>/<appname>/<appname>.mod .bar etc...

3. Make sure that all files and directories are lowercase(including .dll). 3.x is case sensitive.

foster18
03-01-2006, 10:34 AM
Also, I would just like to mention that this is the behavior that occurs if you have any static variable or static function usage. I recently was porting from J2ME to brew and forgot that BREW does not have support for static members and this was the result.

hello2sachin010
04-02-2006, 09:40 PM
I am also facing the same problem. I am developing a application in which i am using ui wdigets for the UI of the application. But now when i try to run the application then the application is not load on to the device. I want to ask do i need to do something with the mif settings of the application. Also i am following the same directory structure mentioned above.

howardyoo
04-26-2006, 09:38 PM
Members,

I'm using 3.1.5.27 version of BREW Simulator along with
BREW SDK tools 1.0.1, and BREW SDK 3.1.5.

After I followed all the basic instructions described in 'Running BREW Applications on the Mobile Device,' I executed the simulator to test it.

The phone, when I hit the OK button, displayed message as :

"This application has been disabled. Would you like to restore it?"

and presented me with 'yes' and 'no' option.
I pressed 'Yes,' meaning I would like to restore it, thinking it is the right thing to do.

However, the simulator keeps ignoring my request, and complies only when I press 'No' and exits to the main menu.

I am puzzled to where this problem is coming from.
Can any of you people give me some direction to right path?

Thank you...

alexx
04-26-2006, 11:38 PM
Hello

I also had this problem once. It seems that the simulator displays this message when it cannot locate the .DLL file with your applet. Make sure you put the .DLL to the right folder (for ex. your .MIF path is C:/brew/myapp.mif and .DLL must be C:/brew/myapp/myapp.dll). In my case that was the problem. Good luck.

rabidcow
04-27-2006, 11:12 AM
It will also do this if there's an error when loading your dll, eg if you link in GCCResolver and it tries to use BREW's stdlib stuff before the pointer is set up.

qaidi123
05-01-2006, 03:56 AM
hello members,

me also having the same problem that "howardyoo" had .. i also done all the things that is already mentioned to do .. but i m still geting the same error :confused: .. can anyone please help me regarding this error .. because without resolving this error i will not be able to test my application ..

hope to see replies from u all in this regard .. thanx in advance ..

byez.

alhiem
05-01-2006, 08:02 AM
Hi,

I saw this thread and read it because i confronted this issue with a simple game example. It puzzled me at the moment but since i had a lot to do, i put it away. Today, as i read this thread, i went and checked to see if my dll was in fact where it should have been. Lo and behold it wasn't even compiled. So i did and it is working fine now. So most likely, having this kind of error has a lot to do with your mif file and the dll for you app. Make sure that these are where the emulator is expecting themto be found. If you must, redo the mif file(decompile it, recompile t -- makig sure you are using the correct directories for your app. Remember, if you had a previous version of the SDK and download an updated one, VS may not be pointing the same brew sdk directory tree--and recompile the app's dll)

I hope this helps.

Albert

PS if your VS is not pointing to the "correct" BREW directory tree, you may add the old ones into the path. This is what i did when i found that the Official New SDK and a non-official c++ sdk (in japanese, dont ask :D) removed old defs and installed theirs instead.
++PEACE++

joy_dunhill
06-29-2006, 03:01 AM
Hi,

I use BREW SDK v3.1.5 and .NET to try to play BREW's samples; however, it shows "the application has been disabled, do you want to restore it?" Then nothing happened. On the other hand, my workmate use previous version of BREW SDK and it runs well.

Anyone know the reason?
Thanks!!

max
06-29-2006, 11:22 AM
Your applet and MIF directory are not configured properly. Look through the documentation or search the forums to find out how they should be set.

LouisKing
07-07-2006, 01:20 AM
when i run my app on the simulator, it will show"This application was disabled.Would you like to restore it?"
an when i test the brew sdk example the problem is still the same.
what should i do?

Jonathan
07-07-2006, 09:01 AM
Sounds like your putting your dll in the wrong directory. Go to Project->Settings and delete the "Output files" text box. This will cause your dll to be added to your top app directory.

wyrzy
08-05-2006, 05:56 AM
I apologize for the post, it something stupid. I had named my applet folder something different than my mif file.

===================================
Does anyone know what the error message: "This application has been disabled. Would you like to restore it?" means? I'm completely new to BREW programming, and I was just trying to program a simple app in BREW, and after I created the .mif file, the "simulator" gave me that error when I tried to run it.

The program appeared in the device, and I have my .mif file named the same as my .dll (except for the extensions are different) and they're also in the same directory. Also, I just created my own .bid file (I chose the CLSID to be 0xABCDEF01).

I downloaded the newest SDK, v 3.1.5, and followed the "creating a project with Visual Studio 2003" to a tee, so I'm not sure what could be going wrong.

If anyone has heard of that error message and knows what it means, I would greatly appreciate it if you could kind of give me a start at where I should be looking for what I am doing wrong.

Thanks.

wyrzy
08-05-2006, 09:42 AM
Also, I don't know if this would help, but this is the error log from running in the emulator. I am not sure what the line:
OEMDebug.c:183 - DBGEvent=0x3 cls=0x1008000 pl=0x0
means.

Also, I've littered my program with DBGPRINTF statements, but I none of them printed.


*AEEShell.c:3607 - #*p:ECode:101, Key:e035
*AEEShell.c:3607 - #*p:ECode:100, Key:e035
*OEM.c:156 - OEMNotify: Can Start? (abcdef01)
*OEM.c:156 - OEMNotify: Can Start? (abcdef01)
*AEEShell.c:8799 - #*gSU=16809984
*OEMDebug.c:183 - DBGEvent=0x2 cls=0x1008000 pl=0x0
*AEEShell.c:6736 - #*g*C=abcdef01:257
*OEM.c:156 - OEMNotify: Can Start? (1008000)
*OEM.c:156 - OEMNotify: Can Start? (1008000)
*AEEShell.c:7027 - #*gRE=16809984
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1028e15:3
*AEEShell.c:6736 - #*g*C=1028e15:3
*OEMDebug.c:183 - DBGEvent=0x3 cls=0x1008000 pl=0x0
*AEEShell.c:3607 - #*p:ECode:102, Key:e035
*AEEShell.c:3607 - #*p:ECode:101, Key:e037
*AEEShell.c:3607 - #*p:ECode:100, Key:e037
*AEEShell.c:3607 - #*p:ECode:102, Key:e037

ruben
08-06-2006, 07:25 AM
If you don't have mif and mod file in right place you would see such error. By the way the constant dumping of debug message in BREW 3.1.5 simulator is a issue/bug; reported to Qualcomm. I was told that they would fix it in the next release.

Sourabh
08-11-2006, 12:16 AM
hi'
i program is compiled successfully,but at run time on the emulator show
"This application has been unloaded to save memory. You must download a new version."
I ensure my applete dir. and mif same name,
and the applet subdirectory contains the applet DLL.
plz give some suggestion.

max
08-11-2006, 10:35 AM
Search the forums, this has been covered many times. It's also covered in the Simulator documentation.

ashayneema
08-21-2006, 05:06 AM
hi sourabh,
ther r two things for that first fo to the setting and then in the general section select not using mfc and then in link remove the debug and directly set the dll name ther as your applicatin name is. n then run the app.
i think this may solve your prob

maheshptl
10-10-2006, 12:10 PM
Hi All,
I installed BREW SDK 3.1.5 and BREW SDK tools. I followed the steps to from "Starting BREW Development Guide" create simple "hello world" application.
I created MIF file and helloworld.dll by building the app in VC++. When i try to execute the app from VC++, i selected the BREW_Simulator.exe (\Program Files\BREW 3.1.5\sdk\bin) since i could not find BREW_Emulator.exe in this directory.
I set properly the Applet and MIF directory in Simulator. I can see my app icon in simulator, but when i click(select) on my app, I get "This application has been disabled. Would you like to restore it?". After this nothing happens even if select "Yes" or "No".
I appreciate your help.

Thanks,
Mahesh

max
10-10-2006, 03:00 PM
Merging similar threads since this has been asked roughly 2 billion times. Please search the forums first.

S_panic
12-04-2006, 04:18 AM
I try to simulation my work with brew simulation.
but when it run,my brew send error to me is "This application has been disabled. Would you like to restore it?"

please anyone help me Please!!!

Thank you very much

brewee
12-04-2006, 06:55 AM
the problem is definitely in MOD/DLL file. It means that your source file(s) contains a critical error and can't start the applet. Check your source code carefully and rebuild (clean and build) it.
You could play with sample application as well: make sure examples are launched successfully and add your features. Than you will know for sure which piece of your code may cause the issue.

ruslanm
12-11-2006, 02:58 PM
Can anybody help, how to deal with erroe msg: "This application has been disabled. Would you like to restore it?" ?
It happens when I start my applet from Simulator ver.3.1.
MIF file directry and Applet directory are chosen correctly.
Attemp to choose "restore it" doesn't make any difference. The only thing I can do - to quit from this msg to main menu.
I use BREW SDK ver. 3.5.1.
Any ideas, what is missing?

charliex
12-11-2006, 03:06 PM
that either means its not setup in the folder layour correctly, or that the AEEApplet initialise routine has failed, which can mean its a Classs ID conflcit, or the programs failing to initialise etc.

max
12-12-2006, 07:38 AM
Merging threads use search feature etc.

ruslanm
12-15-2006, 08:37 AM
That's my MIF location: C:\Program Files\BREW 3.1.5\sdk\examples
That's my DLL location: C:\Program Files\BREW 3.1.5\sdk\examples\myapp
DLL name: myapp.dll
MIF name: myapp.mif
Still doesn't work and gives same error msg.
That's log:
*AEEShell.c:6736 - #*g*C=abcd1234:257
*OEM.c:156 - OEMNotify: Can Start? (1008000)
*OEM.c:156 - OEMNotify: Can Start? (1008000)
*AEEShell.c:7027 - #*gRE=16809984
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1038cce:3
*AEEShell.c:6736 - #*g*C=1028e15:3
*AEEShell.c:6736 - #*g*C=1028e15:3
*OEMDebug.c:183 - DBGEvent=0x3 cls=0x1008000 pl=0x0
*AEEShell.c:3607 - #*p:ECode:102, Key:e035
*AEEShell.c:3607 - #*p:ECode:101, Key:e030
*AEEShell.c:3607 - #*p:ECode:100, Key:e030
*AEEShell.c:3607 - #*p:ECode:102, Key:e030

Can anybody help?
It was a working applet before I tried to create a new project and start it. Didn't work out, I returned to the old one "myapp", and still having same problem.
Tried to put MIF together with DLL and separately - same result.
And I also re-compiled, cleaned, re-built, etc. a thousand times.
Does anybody know what to do?

max
12-15-2006, 01:27 PM
Do you have the "applet directory different from mif directory" option checked in the Simulator? If so, uncheck it. Can you verify that your application directory name is all lower-case?

The directories look right from what you say in your post, but a 257 error is EFILENOEXISTS, which would seem to imply that your DLL can't be located.

ruslanm
12-15-2006, 03:05 PM
"applet directory different from mif directory" option I have as "YES", if I put "NO"in there, then it doesn't show my applet's icon with current configuration.
If I put MIF together with DLL and put "YES" or "NO" in this option - anyway same error msg. Nothing helps. Application directory is: C:\Program Files\BREW 3.1.5\sdk\examples\myapp. Do you think, "C:\Program Files\BREW 3.1.5" can cause it?
I doubt it cause when I put everything in root directory (c:\examples\myapp) - same problem happens in all combinations.

ruslanm
12-15-2006, 03:16 PM
Here is BREW_Emu.dat file:

[General]
Converted=1
Location=316,-3,1047,797
[Settings]
PhoneFile=C:\Program Files\BREW 3.1.5\sdk\Devices\DevicePack1\DevicePack1.dpk
AppletDir=c:\examples\myapp
MIFDir=c:\examples
SpecifyMIF=1
MMC1Dir=
ValidateHeap=1
SpecifyDNS=0

[Network]
LastUsed=3
Count=8

max
12-15-2006, 05:11 PM
No, it's not a problem with the spaces in your directory name -- I have my SDK installed in a similar directory. Try putting your MIF directory as <SDK dir>/examples/, and make sure that the "MIF directory differnt from Applet directory" is set to No (assuming you have myapp.mif in the <SDK dir>/examples/ location and the DLL in the <SDK dir>/examples/myapp/ location as you mentioned earlier). Also, be sure to hit apply after you change that or the changes won't take effect. If you're still getting problems, you must have some sort of issue with the DLL.

ruslanm
01-19-2007, 02:56 PM
So, you want me to keep location same as it's now and set flag "different" to "NO"?
That's not possible: once I change this flag, simulator copies the MIF directory location from Applet directory and disables these fields. If I change MIF directory location afterwards, the flag is set to "YES" automatically.
If I play according your rules, the thing just doesn't work: where do I put this MIF and DLL - doesn't matter, it just doesn't start. Looks like an obvious software bug in simulator, nothing else. What can be done with DLL if it's not even run?

bru
01-19-2007, 03:55 PM
ruslanm - If the simulator works good for every body, then why cant it just work for you. All you need to do is patiently do step by step.

From beginning

1.keep myapp.mif under "C:\Program Files\BREW 3.1.5\sdk\examples\"
2.keep all the project files under "C:\Program Files\BREW 3.1.5\sdk\examples\myapp" (make sure you have myapp.dll under this)
3.Set your applet directory as "C:\Program Files\BREW 3.1.5\sdk\examples"
4.Uncheck the "Specify your MIF directory" checkbox.(this will set the path as in step 3 internally.
5.Close the simulator.
6.Open and launch the myapp.

Make sure your directory name, mif , dll are all same.

ruslanm
01-22-2007, 11:11 AM
But the confusing point is, that I have to show MIF and APPLET directories in BREW simulator as the SAME, when in reality they are NOT: MIF is one stage above. And this is called "A BUG".
Thanks anyway.

max
01-22-2007, 12:30 PM
No, it's not a bug. The applet directory is the directory containing BREW applets. This corresponds to the mod directory on a BREW 3.x device. Applets are stored in subfolders within the applet directory.

The MIF direcotry is the directory containing BREW MIFs. This corresponds to the mif directory on a BREW 3.x device.

bru
01-22-2007, 01:01 PM
ruslanm,
This method is for the newbies. As the time goes, when they understand, then they can play around with the directory structure. I dont use the way explained here because I know this from 5+years.

You can have just single folder anywhere to run the application. Only thing is to set the path accordingly. But if you want to compile with VC++ , then project setup should be set accoringly because the inc,binaries for BREW are in SDK folder(this is not recommended for normal development).

wrangler_brew
02-08-2007, 10:24 PM
Hi Guys,
I am new to BREW but usin the documents I have created a BREW app.But, when I try to run the app in Simulator,I get the following err msg :confused:
"This application has been disabled. Would you like to restore it?" Can anybody explain how to sort this?

Unmesh
02-09-2007, 04:03 AM
This post has been answered many times.

The dll is present in the debug folder of the application. make the necessary settings to point it to the application.

wrangler_brew
02-13-2007, 01:35 AM
No....I jus cheked out.The dll is in the application folder outside the debug folder.I have pointed the sim app dir to my app dir and still I get the same err msg.

Unmesh
02-13-2007, 02:12 AM
check if the mif and folder name are in the same case.

wrangler_brew
02-14-2007, 04:23 AM
Ya....The mif name and folder name is in the same case.

Hemlock
02-16-2007, 12:36 AM
C:\myapp\myactapp.mif
C:\myapp\myactapp\myactapp.c
C:\myapp\myactapp\myactapp.h
C:\myapp\myactapp\myactapp.dll
C:\myapp\myactapp\myactapp.brh
C:\myapp\myactapp\myactapp.bar
C:\myapp\miscellaneousfilesandfolders

does this help?

raja_Welcomes
04-12-2007, 01:10 AM
Hi,
When i am trying to run my Applet, Simulator shows the following dialog
The Application has been disabled. Would you like to restore it?
Please help me.

Regards,
V.Raja

abhimanyu
04-12-2007, 03:01 AM
Hi Raja,

Check your applet directory path and mif directory paths are set properly.

ketan
07-20-2007, 05:02 AM
Hi all,
i created new project in vc++6.0.i installed BREW 3.1.4 as well BREW SDK Tools 1.0.1 .

this is path C:\Program Files\BREW 3.1.4\sdk\examples\New
where i created project called new.
example dir have
examples\new.mif
examples\new\new.dll

the problem is when i try open app(i.e new with icon) in simulator is not responding.What does the problem?Please help me regarding this issue.


Thank,
ketan

vivek11
07-20-2007, 05:33 AM
hello all
i had installed the brew 3.1.4 sdk ,tools too and trie to build the sample application through the visual studio ide 6.0 but when i click the app icon in the simulator
it did't opened the application (Please look into hello.bmp). i had checked the path of mif and dll and the seems to be in appropriate folder

path is following
project name- hello
it is in bew sdk 3.1.4/examples/hello

mif file path=
bew sdk 3.1.4/examples/hello.mif

.dll file path
bew sdk 3.1.4/examples/hello.mif/hello

Please help regarding this topic.

thanks and regards

vivek

brewprog
07-22-2007, 10:18 PM
what do you mean by

.dll file path
bew sdk 3.1.4/examples/hello.mif/hello

Can you keep .dll inside hello.mif

madhusateesh
07-27-2007, 12:09 AM
you nedd to change following propertiesC:\Documents and Settings\madhuk\Desktop\steps to be followed\1.bmp C:\Documents and Settings\madhuk\Desktop\steps to be followed\2.bmp C:\Documents and Settings\madhuk\Desktop\steps to be followed\3.bmp C:\Documents and Settings\madhuk\Desktop\steps to be followed\4.bmp C:\Documents and Settings\madhuk\Desktop\steps to be followed\5.bmp

Sleek Media
09-02-2007, 06:35 PM
Greetings, all.

I've developed a little interface of sorts for my project. Its basically just a simple module structure with a central ModuleManager class moving each module in and out of memory as needed. So far, it's mostly blank, but the basics are there. Now, I'd like to test it to see if it works, but the BREW Emulator is giving me trouble. When I run the emulator for BREW 2.1, the application hangs when I try to start it. When I run the emulator for BREW 3.1, it warns me that "the application has been disabled", and asks if I want to re-enable it. When I select "yes", it hangs. What sort of thing causes this? Thanks for your help.

Sincerely,
Joseph Falcone

Sleek Media
09-03-2007, 06:37 AM
Ah. Hadn't realized there was a FAQ on this. Good stuff.

bbogard
11-14-2007, 03:24 PM
I am trying to get the BREW SDK 3.1.5 simulator to run the example apps. I can run the screensaver app, but the rest of the apps produce the error “This application has been disabled. Would you like to restore it? And selecting the left soft key for yes or the right soft key for no does the same thing, nothing.

Do the apps in the simulator need sig files to be able to run?

bbogard
11-14-2007, 04:37 PM
I am trying to get the BREW SDK 3.1.5 simulator to run the example apps. I can run the screensaver app, but the rest of the apps produce the error “This application has been disabled. Would you like to restore it? And selecting the left soft key for yes or the right soft key for no does the same thing, nothing.

Do the apps in the simulator need sig files to be able to run?

mk.manju
11-14-2007, 09:34 PM
read this thread itself thoroughly ull get da answer...

Do the apps in the simulator need sig files to be able to run?

no it does not require sig file..

bbogard
11-15-2007, 11:54 AM
I am trying to get the BREW SDK 3.1.5 simulator to run the example apps. I can run the screensaver app, but the rest of the apps produce the error “This application has been disabled. Would you like to restore it? And selecting the left soft key for yes or the right soft key for no does the same thing, nothing.

Do the apps in the simulator need sig files to be able to run?

imedia
11-15-2007, 02:45 PM
Are you setting the mif path and applet path correctly?

t.das
02-25-2009, 09:58 PM
I apologize for the post, it something stupid. I had named my applet folder something different than my mif file.

===================================
Does anyone know what the error message: "This application has been disabled. Would you like to restore it?" means? I'm completely new to BREW programming, and I was just trying to program a simple app in BREW, and after I created the .mif file, the "simulator" gave me that error when I tried to run it.

The program appeared in the device, and I have my .mif file named the same as my .dll (except for the extensions are different) and they're also in the same directory. Also, I just created my own .bid file (I chose the CLSID to be 0xABCDEF01).

I downloaded the newest SDK, v 3.1.5, and followed the "creating a project with Visual Studio 2003" to a tee, so I'm not sure what could be going wrong.

If anyone has heard of that error message and knows what it means, I would greatly appreciate it if you could kind of give me a start at where I should be looking for what I am doing wrong.

Thanks.


Hi
I m new to Brew, I created a new application and on running on simulator same error displayed. please help me...
I am using BREW SDK v3.1.5 and visual studio2005

alexandru.sanda
02-26-2009, 06:06 AM
Hi,

I did this and got rid of the "THE APPLICATION WAS DISABLED TO SAVE SPACE. WOULD YOU LIKE TO RESTORE IT NOW?" message:

This message occurs when the simulator can not find the .dll. You can try the following:

1. Go to Project->Settings->general and clear text from output text box. This will place the .dll in your working directory and not the debug directory

2. Make sure the directory structure is correct. If you do not specify the MIF directory(default) then it should be as follows:
<Applet directory>/<appname>.MIF
<Applet directory>/<appname>/<appname>.mod .bar etc...

3. Make sure that all files and directories are lowercase(including .dll). 3.x is case sensitive.

Now I have another problem. when I try to execute the app I get the message "Unable to start application". Can anyone help me with this?

The error is shown in the attachment.

Thanks,
Alex

lmode
05-14-2009, 07:07 PM
what i do?