Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

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?

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

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

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?

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?

Quote: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

Quote: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

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.:)

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.:)

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

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

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

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

Thank you.
I find the answer.

Thank you.
I find the answer.

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

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

check out this thread..
http://brewforums.qualcomm.com/showthread.php?s=&threadid=667
Hope this helps...
Regards
Arun Bangari

check out this thread..
http://brewforums.qualcomm.com/showthread.php?s=&threadid=667
Hope this helps...
Regards
Arun Bangari

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.

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.

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

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

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

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

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?

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?

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.

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.

Yes, It was the directory setting problem.

Yes, It was the directory setting problem.

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

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

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

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

Please copy it to work directory...

Please copy it to work directory...

or..... your .mif file and .dll file have different names.

or..... your .mif file and .dll file have different names.

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

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

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

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

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

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

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

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

Of course i've moved the dll..

Of course i've moved the dll..

Sorry for even suggesting it.

Sorry for even suggesting it.

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?

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?

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.

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.

Lol of course i do not use the same mif/app directories ;)

Lol of course i do not use the same mif/app directories ;)

Quote: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.

Quote: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.

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..

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..

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?

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?

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

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

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_app.mif
/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

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_app.mif
/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

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:
\\.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

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:
\\.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

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 -
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

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?

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?

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...

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...

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?????

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?????

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.....

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.....

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...
..

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...
..

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...
..

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...
..

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

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

oh, by the way, I have other applications running ok (passing NSTl testing) with similar starting-code.
Thanks,
Jean

oh, by the way, I have other applications running ok (passing NSTl testing) with similar starting-code.
Thanks,
Jean

Hey ppl,
for BREW 2 emulator.... put the BAR files into your applet directory
:cool:

Hey ppl,
for BREW 2 emulator.... put the BAR files into your applet directory
:cool:

make sure there is no .sig file

make sure there is no .sig file

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.

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.

This is a common question. Search on "subdirectory emulator".

This is a common question. Search on "subdirectory emulator".

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

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

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.

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.

Is the class id that you used in the mif the same as the class id you're checking for in AEEClsCreateInstance?

Is the class id that you used in the mif the same as the class id you're checking for in AEEClsCreateInstance?

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?

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?

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.

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.

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.

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.

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

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

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

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

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 ?

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 ?

https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/developerfaq...
perhaps your DLL is in the debug directory instead of the main directory

https://brewx.qualcomm.com/bws/content/gi/common/appseng/en/developerfaq...
perhaps your DLL is in the debug directory instead of the main directory

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...

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...

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

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

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?

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?

here

here

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.

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.

The Simulator couldn't find your DLL. Make sure your application directory is correctly specified, see here.

The Simulator couldn't find your DLL. Make sure your application directory is correctly specified, see here.

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.

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.

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.

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.

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?!

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?!

Click here!

Click here!

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?!

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?!

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???

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???

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???

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???

Hrm...try clicking the "Apply" button a couple times. Occasionally it fails to register the first click.

Hrm...try clicking the "Apply" button a couple times. Occasionally it fails to register the first click.

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?

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?

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.

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.

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!!!

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!!!

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...the author is a forum participant, if he wants to provide a plug. ;)

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...the author is a forum participant, if he wants to provide a plug. ;)

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 ?

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 ?

Applewood wrote: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 wrote: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

tyvm :S My bad!

tyvm :S My bad!

I also experienced the same problem. I am using BREW 1.1. Can anyone help us???

I also experienced the same problem. I am using BREW 1.1. Can anyone help us???

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?

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?

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.

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.

where to you modify the createapplet to take unsigned 32?

where to you modify the createapplet to take unsigned 32?

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

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

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.

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.

I'm using the new VS.Net wizard at
https://brewx.qualcomm.com/bws/content/gi/products/vsaddins/3.0/3.0.0.5/...
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

I'm using the new VS.Net wizard at
https://brewx.qualcomm.com/bws/content/gi/products/vsaddins/3.0/3.0.0.5/...
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

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

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

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

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

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
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

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
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

i have same problem!! i press restore, but it not work!!
i think is problem in NTFS

i have same problem!! i press restore, but it not work!!
i think is problem in NTFS

Yeah, right. I don't think so.

Yeah, right. I don't think so.

lquach wrote: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

lquach wrote: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

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

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

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.

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.

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...
[INDENT]Disabled[/INDENT][INDENT]This app was disabled to save space. Would you like to restore it now?[/INDENT]
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?

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...
[INDENT]Disabled[/INDENT][INDENT]This app was disabled to save space. Would you like to restore it now?[/INDENT]
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?

make sure you have the dll in the right place
appname.mif
appname\appname.dll
etc

make sure you have the dll in the right place
appname.mif
appname\appname.dll
etc

That worked, and it solved both problems! :D

That worked, and it solved both problems! :D

I highly recommend you go through this document:
Starting BREW Application Development.

I highly recommend you go through this document:
Starting BREW Application Development.

Pages