I think I've found a bug with S60 V3 emulator and console based applications.
I found that console based applications seem only to work the first time round. Second time round they don't work and the PC requires a reboot to fix it.
Steps to reproduce using eshell.exe (console based app that everyone has).
- run \epoc32\release\winscw\udeb\eshell.exe
This should bring up the command prompt, which is a console based application.
- In the command prompt type in 'exit'.
This should close the emulator. If the grid has come up, you can change to the eshell application by holding the application key until the task manager comes up.
- Again run \epoc32\release\winscw\udeb\eshell.exe
This tries to bring up the emulator, but then leaves and shuts down.
Only a reboot will let you start it up again.
I have traced the error to this line of code:
The above line, on the second time round leaves with a -1 (KErrNotFound).
console = Console::NewL(_L("Console"), TSize(KConsFullScreen, KConsFullScreen));
I've tested this on 2 computers. I have tried using the new S60 V3 MR SDK and the problem still exists. I'm using Codewarrior 3.1, but mainly using the command line build tools.
As you can imagine, it is quite frustrating to work in this fashion. My questions are, can other people repeat this bug, and is there a workaround?