Why does my screensaver display system error -1?
| Wed, 2008-03-05 12:14 | |
|
|
I have built my Nokia screensaver from the guidelines in http://www.newlc.com/s60-3rd-edition-writing-a.html I first built the project through importing the bld.inf file for the "Example screensaver" provided there. I then created all the necessary files with Carbide and filled them with the code from example screensaver, but changed the UID to the right one. I could build this version, but I got the same "system error -1" when I choose it from "power saver" in the emulator. Why do I get this error and how can I remove it? This is really annoying, because the animations for the screensavers work like they should in another project. So I only need to get the screensaver project to work like it should and then move the animation code to the screensaver project. |






Forum posts: 128
Hi,
you will get system error -1 this means you may have problem in .rss file. so you can check that your .rss file is compiling properly or not. you can clean and rebuild your application.
you can try "abld resource" command
Thanks & Regards
Ram
Symbian OS 9.1,S60 3rd edition MR,and CodeWarrior 3.1
Forum posts: 33
I see. I checked my RSS file, but couldn't find any strangs things in it. It's exactly the same as in the example in
http://www.newlc.com/s60-3rd-edition-writing-a.html
,except that I changed the UID to the right one. This is how it looks like. Can you find anything in it that needs to be changed? Maybe I need to have the RegistryInfo.rh and screensaverpluginintdef.hrh files in the project also?
/*
============================================================================
Name : ExampleScreenSaver.rss
Description : ExampleScreenSaver resource file.
============================================================================
*/
#include
#include
RESOURCE REGISTRY_INFO theInfo
{
dll_uid = 0x08DB622A;
interfaces =
{
INTERFACE_INFO
{
interface_uid = KCScreensaverPluginInterfaceDefinitionUid;
implementations =
{
IMPLEMENTATION_INFO
{
implementation_uid = 0x08DB622A;
version_no = 1;
display_name = "Example Screen Saver";
default_data = "";
opaque_data = "";
}
};
}
};
}
Forum posts: 61
Did you try debugging the project and check where exactly is the application crashing. Try posting that part.
Forum posts: 33
OK, here are the debug messages. Do you know what I can do about the ERROR: Plugin SID Mismatch ERROR for Z:\sys\bin\ExampleScreenSaver.dll ?
139.655 PSLN: "CPslnUi::HandlwWSEvent"
139.660 PSLN: "CPslnUi::HandlwWSEvent"
139.670 PSLN: "CPslnUi::HandleResourceChangeL"
139.695 PSLN: "CPslnUi::HandleResourceChangeL"
139.695 PSLN: "CPslnUi::CreateViewL, Start:27939"
139.740 PSLN: "CPslnScreenSaverContainer::CreateListBoxItemsL BEGIN"
139.745 PSLN: "CPslnModel::LoadScreensaverArrayL"
139.745 PSLN: "CPslnModel::FindAndAppendScreensaversL"
139.770 ERROR: Plugin SID Mismatch ERROR for Z:\sys\bin\ExampleScreenSaver.dll.
139.855 PSLN: "CPslnModel::FindAndAppendScreensaversL Plugin found"
139.855 PSLN: "CPslnModel::FindAndAppendScreensaversL Append"
139.910 PSLN: "CPslnModel::EnableScreenSaverNotifications"
Forum posts: 61
In your error messages above, I cannot figure out if "HandlwWSEvent" is written my mistake or intentioanlly so. Please check this symbol. Can't figure out anything else from this...
Forum posts: 1134
SID is the "SecureID" of your executable.
If you don't specify it in your mmp file, it will get the same value as the second uid you specify on the "UID" line in the mmp file.
(also known as UID3)
So make sure you changed the right UID, the UID2 must be 0x10009D8D still.
UID 0x10009D8D 0x12345678
Maybe there is a mismatch between this, and some you have specified in an rss file somewhere...
Forum posts: 33
I see. I tried that , but there still seems to be errors with this example project. I am still trying to get my screensaver working, but now I used another much better example project:
http://wiki.forum.nokia.com/index.php/ScreenSaver_plug-in_example_for_S60_3rd_Edition?ticket=ST-72212-xECGaDpfQpp5xfqHb3dzfxGT9f0w7y1wX57-20
I have almost got it working, but check my new topic
How to get a pointer to MScreensaverPluginHost from a MScreensaverPlugin class?
to see what my problem is now.