导航

忆龙2009:BREW+VS2005 模拟器 调试问题

Posted on 2010-01-17 10:16  忆龙2009  阅读(465)  评论(0编辑  收藏  举报

FAQ #1: The emulator gives me an error, "The application has been unloaded to save memory. You must download a new version".
Answer: If you see the app icon in the emulator, but it gives this error message, it means the emulator can find your mif file, but it can't find the dll.
You should make sure:
1) the emulator is pointing to the correct directories (see below),
2) the DLL exists in the specified directory,
3) the Class ID in your MIF matches the one in your AEEClsCreateInstance function.
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.
If your files are in a directory structure like this:

Code:

C:\some_path\app_name.mif C:\some_path\app_name\app_name.dll

Then you need this:

Code:

Applet Directory | C:\some_path MIF directory different from App | No MIF Directory | C:\some_path

For files in a directory structure like this:

Code:

C:\some_path\app_name\app_name.mif C:\some_path\app_name\app_name.dll

You need this:

Code:

Applet Directory | C:\some_path MIF directory different from App | Yes MIF Directory | C:\some_path\app_name

If you're using the 3.0 Simulator and you change a directory in the Properties panel, press the Apply button twice.
[HR]
FAQ #2: I can't see my app icon in the emulator.
Answer: The emulator cannot display the icon contained within the MIF file, or it cannot open the MIF file.
Please check that:
1) the MIF file is in the emulator's Applet or MIF directory as specified,
2) the MIF file contains all three icons (icon, image, thumbnail),
3) the MIF file is saved out in the proper version (save as 1.1 if necessary),
4) the icons are valid 8-bit or monochrome BMP files,
5) the icons are the proper size:
-- The icon is 26 x 26 pixels or smaller.
-- The image is 65(w) x 42(h) pixels.
-- The thumbnail is 16 x 16 pixels.
BMP files should not be RLE compressed. You may have problems with 4-bit BMPs.