PDA

View Full Version : Extensions & EPRIVLEVEL


fredch
03-21-2002, 07:52 AM
I've created an extension, but ISHELL_CreateInstance failes with EPRIVLEVEL unless I set the app's privilege level to ALL (which gives the warning that ALL is not allowed for developers).

I get the EPRIVLEVEL error on both the emulator and Kyocera when I don't specify ALL. I found other questions about this in the archives, but couldn't find the solution.

Is there something I'm missing?
Are developers allowed to create extensions?
Can an app pass with ALL privilege?
Is there a better way to split a large app into multiple pieces? (multiple applets that ISHELL_StartApplet() each other)

fredch
03-21-2002, 11:58 AM
I think I found my problem. The Extension's .MIF file was defining both the Applet ClassID and an Exported class. I removed the Applet ClassID and it works.

Now I have another problem: when I release the extension, the memory it used is not freed (the memory I allocate for the extension is freed by my code, but the memory used to load the .mod file is not freed). The same thing happens with the Extension/ExtUse sample. I was hoping it would be freed, so I can only load the parts of the app I need at any time.

fredch
03-29-2002, 11:42 AM
I got an answer from Qualcomm about the second problem. The extension doesn't get it's final release (freed from memory) until the phone needs the memory. Since my test app and the demo app were small, the phone didn't need the memory and kept a final reference to it.