|
| UIQ 3.0 Emulator - problem with fopen (for writing) |
 |
Sun, 17 Dec 2006 18:23:43 +020 |
(Posted also on the UIQ developer forum)
Hi all,
I want to generate an application log file into the media folder
"Other", so
that users can easily send it in case of a problem. I've done this before on
UIQ 2.0 and Series 60 without a problem.
Anyway, so far all my attempts to create the log file caused a KERN-EXEC 3
panic on the emulator (no PlatSec messages in epocwind.out either, and no
change when I disable Platform Security on the emulator), on all the
following paths:
"C:\Media files\other\iprs.log"
"iprs.log"
"\Symbian\UIQ3SDK\epoc32\winscw\c\Media files\other\iprs.log"
"C:\Symbian\UIQ3SDK\epoc32\winscw\c\Media files\other\iprs.log"
(would've been nice also to have an API to get the SDK path rather than
hard-code it, but anyway it didn't help...)
Any ideas? Anything I need to install or startup for proper stdlib support?
I really don't feel like removing all FILE *-related references from my
code, there are quite a few of them as the application is ported from
Windows....
Thanx a lot in advance
Uriah
P.S. I haven't gotten to testing it on a device since I'm still porting (it
doesn't yet compile for GCCE) and as you might expect, the log should be
kinda helpful for solving other problems :)
|
| Post Reply
|
| Re: UIQ 3.0 Emulator - problem with fopen (for writing) |
 |
Mon, 18 Dec 2006 09:31:34 +010 |
"Uriah" <uriaheisenstein@mobiletornado.com> wrote in message
news:Ve0T$ifIHHA.4132@UKCOL01WWEB01.symbian.intra...
> (Posted also on the UIQ developer forum)
> Hi all,
> I want to generate an application log file into the media folder
"Other",
> so that users can easily send it in case of a problem. I've done this
> before on UIQ 2.0 and Series 60 without a problem.
> Anyway, so far all my attempts to create the log file caused a KERN-EXEC 3
> panic on the emulator (no PlatSec messages in epocwind.out either, and no
> change when I disable Platform Security on the emulator), on all the
> following paths:
> "C:\Media files\other\iprs.log"
This is the one you should be using. in code it must look like
"C:\\Media files\\other\\iprs.log"
To examine a case that should be working, have you tried running the stdlib
examples on the UIQ 3.x emulator?
> "iprs.log"
> "\Symbian\UIQ3SDK\epoc32\winscw\c\Media files\other\iprs.log"
> "C:\Symbian\UIQ3SDK\epoc32\winscw\c\Media files\other\iprs.log"
>
> (would've been nice also to have an API to get the SDK path rather than
> hard-code it, but anyway it didn't help...)
The emulator doesn't know about files outside the emulated Symbian
filesystem, so such an API would be pointless.
--
Sander van der Wal
www.mBrainSoftware.com
> Any ideas? Anything I need to install or startup for proper stdlib
> support?
> I really don't feel like removing all FILE *-related references from my
> code, there are quite a few of them as the application is ported from
> Windows....
>
> Thanx a lot in advance
> Uriah
>
> P.S. I haven't gotten to testing it on a device since I'm still porting
> (it doesn't yet compile for GCCE) and as you might expect, the log should
> be kinda helpful for solving other problems :)
>
|
| Post Reply
|
| SOLVED (?): UIQ 3.0 Emulator - problem with fopen (for writing) |
 |
Mon, 18 Dec 2006 13:33:34 +020 |
10x man, but I think the problem was something else - it works after adding
the AllFiles capability to the emulator (and cleaning and rebuilding the
entire project from the command-line).
This I took from the file browser demo, although I really don't understand
why I should need it. I took the file path from CQikMediaFileFolderUtils so
it should be OK (and also isn't hard coded so no "\\"). I hope I won't
need
this capability on the phone!
I've tried the full SDK path based on some note in the UIQ developer forums,
it did surprise me a bit.
Thanks in any case
Uriah
"Sander van der Wal" <svdwal@mBrainSoftware.com> wrote in
message
news:WDXbb9nIHHA.408@UKCOL01WWEB01.symbian.intra...
>
> "Uriah" <uriaheisenstein@mobiletornado.com> wrote in
message
> news:Ve0T$ifIHHA.4132@UKCOL01WWEB01.symbian.intra...
>> (Posted also on the UIQ developer forum)
>> Hi all,
>> I want to generate an application log file into the media folder
"Other",
>> so that users can easily send it in case of a problem. I've done this
>> before on UIQ 2.0 and Series 60 without a problem.
>> Anyway, so far all my attempts to create the log file caused a
KERN-EXEC
>> 3 panic on the emulator (no PlatSec messages in epocwind.out either,
and
>> no change when I disable Platform Security on the emulator), on all the
>> following paths:
>> "C:\Media files\other\iprs.log"
>
> This is the one you should be using. in code it must look like
>
> "C:\\Media files\\other\\iprs.log"
>
> To examine a case that should be working, have you tried running the
> stdlib examples on the UIQ 3.x emulator?
>
>> "iprs.log"
>> "\Symbian\UIQ3SDK\epoc32\winscw\c\Media
files\other\iprs.log"
>> "C:\Symbian\UIQ3SDK\epoc32\winscw\c\Media
files\other\iprs.log"
>>
>> (would've been nice also to have an API to get the SDK path rather than
>> hard-code it, but anyway it didn't help...)
>
> The emulator doesn't know about files outside the emulated Symbian
> filesystem, so such an API would be pointless.
>
> --
> Sander van der Wal
> www.mBrainSoftware.com
>
>> Any ideas? Anything I need to install or startup for proper stdlib
>> support?
>> I really don't feel like removing all FILE *-related references from my
>> code, there are quite a few of them as the application is ported from
>> Windows....
>>
>> Thanx a lot in advance
>> Uriah
>>
>> P.S. I haven't gotten to testing it on a device since I'm still porting
>> (it doesn't yet compile for GCCE) and as you might expect, the log
should
>> be kinda helpful for solving other problems :)
>>
>
>
|
| Post Reply
|
| CORRECTION: UIQ 3.0 Emulator - problem with fopen (for writing) |
 |
Tue, 19 Dec 2006 17:31:29 +020 |
After messing with it a bit more, I found that it wasn't the capability
issue.
I don't know how many others do this... I still work with Visual Studio 6,
and I've found that "abld makefile vs6" generates dsp/dsw files
compatible
with it which essentially run a specific Symbian-generated makefile (all
this seems to be completely undocumented). However, if I build the project
from within the studio, fopen crashes. If I build it from the command line
(abld build winscw udeb), fopen works properly. Well, at least I can set
breakpoints and such from within VS6 and they still work :)
Uriah
"Uriah" <uriaheisenstein@mobiletornado.com> wrote in message
news:3CyshlpIHHA.5880@UKCOL01WWEB01.symbian.intra...
> 10x man, but I think the problem was something else - it works after
> adding the AllFiles capability to the emulator (and cleaning and
> rebuilding the entire project from the command-line).
> This I took from the file browser demo, although I really don't understand
> why I should need it. I took the file path from CQikMediaFileFolderUtils
> so it should be OK (and also isn't hard coded so no "\\"). I hope
I won't
> need this capability on the phone!
> I've tried the full SDK path based on some note in the UIQ developer
> forums, it did surprise me a bit.
>
> Thanks in any case
> Uriah
>
> "Sander van der Wal" <svdwal@mBrainSoftware.com> wrote in
message
> news:WDXbb9nIHHA.408@UKCOL01WWEB01.symbian.intra...
>>
>> "Uriah" <uriaheisenstein@mobiletornado.com> wrote in
message
>> news:Ve0T$ifIHHA.4132@UKCOL01WWEB01.symbian.intra...
>>> (Posted also on the UIQ developer forum)
>>> Hi all,
>>> I want to generate an application log file into the media folder
>>> "Other", so that users can easily send it in case of a
problem. I've
>>> done this before on UIQ 2.0 and Series 60 without a problem.
>>> Anyway, so far all my attempts to create the log file caused a
KERN-EXEC
>>> 3 panic on the emulator (no PlatSec messages in epocwind.out
either, and
>>> no change when I disable Platform Security on the emulator), on all
the
>>> following paths:
>>> "C:\Media files\other\iprs.log"
>>
>> This is the one you should be using. in code it must look like
>>
>> "C:\\Media files\\other\\iprs.log"
>>
>> To examine a case that should be working, have you tried running the
>> stdlib examples on the UIQ 3.x emulator?
>>
>>> "iprs.log"
>>> "\Symbian\UIQ3SDK\epoc32\winscw\c\Media
files\other\iprs.log"
>>> "C:\Symbian\UIQ3SDK\epoc32\winscw\c\Media
files\other\iprs.log"
>>>
>>> (would've been nice also to have an API to get the SDK path rather
than
>>> hard-code it, but anyway it didn't help...)
>>
>> The emulator doesn't know about files outside the emulated Symbian
>> filesystem, so such an API would be pointless.
>>
>> --
>> Sander van der Wal
>> www.mBrainSoftware.com
>>
>>> Any ideas? Anything I need to install or startup for proper stdlib
>>> support?
>>> I really don't feel like removing all FILE *-related references
from my
>>> code, there are quite a few of them as the application is ported
from
>>> Windows....
>>>
>>> Thanx a lot in advance
>>> Uriah
>>>
>>> P.S. I haven't gotten to testing it on a device since I'm still
porting
>>> (it doesn't yet compile for GCCE) and as you might expect, the log
>>> should be kinda helpful for solving other problems :)
>>>
>>
>>
>
>
|
| Post Reply
|
| Re: CORRECTION: UIQ 3.0 Emulator - problem with fopen (for writing) |
 |
Wed, 20 Dec 2006 09:40:05 +010 |
"Uriah" <uriaheisenstein@mobiletornado.com> wrote in message
news:IJDCLP4IHHA.4132@UKCOL01WWEB01.symbian.intra...
> After messing with it a bit more, I found that it wasn't the capability
> issue.
> I don't know how many others do this... I still work with Visual Studio 6,
> and I've found that "abld makefile vs6" generates dsp/dsw files
compatible
> with it which essentially run a specific Symbian-generated makefile (all
> this seems to be completely undocumented). However, if I build the project
> from within the studio, fopen crashes. If I build it from the command line
> (abld build winscw udeb), fopen works properly. Well, at least I can set
> breakpoints and such from within VS6 and they still work :)
> Uriah
AFAIK, you can only use CodeWarrior or Eclipse with Symbian OS 9.1 SDK's,
not MS VC++.
--
Sander van der Wal
www.mBrainSoftware.com
> "Uriah" <uriaheisenstein@mobiletornado.com> wrote in
message
> news:3CyshlpIHHA.5880@UKCOL01WWEB01.symbian.intra...
>> 10x man, but I think the problem was something else - it works after
>> adding the AllFiles capability to the emulator (and cleaning and
>> rebuilding the entire project from the command-line).
>> This I took from the file browser demo, although I really don't
>> understand why I should need it. I took the file path from
>> CQikMediaFileFolderUtils so it should be OK (and also isn't hard coded
so
>> no "\\"). I hope I won't need this capability on the phone!
>> I've tried the full SDK path based on some note in the UIQ developer
>> forums, it did surprise me a bit.
>>
>> Thanks in any case
>> Uriah
>>
>> "Sander van der Wal" <svdwal@mBrainSoftware.com> wrote
in message
>> news:WDXbb9nIHHA.408@UKCOL01WWEB01.symbian.intra...
>>>
>>> "Uriah" <uriaheisenstein@mobiletornado.com> wrote
in message
>>> news:Ve0T$ifIHHA.4132@UKCOL01WWEB01.symbian.intra...
>>>> (Posted also on the UIQ developer forum)
>>>> Hi all,
>>>> I want to generate an application log file into the media
folder
>>>> "Other", so that users can easily send it in case of
a problem. I've
>>>> done this before on UIQ 2.0 and Series 60 without a problem.
>>>> Anyway, so far all my attempts to create the log file caused a
>>>> KERN-EXEC 3 panic on the emulator (no PlatSec messages in
epocwind.out
>>>> either, and no change when I disable Platform Security on the
>>>> emulator), on all the following paths:
>>>> "C:\Media files\other\iprs.log"
>>>
>>> This is the one you should be using. in code it must look like
>>>
>>> "C:\\Media files\\other\\iprs.log"
>>>
>>> To examine a case that should be working, have you tried running
the
>>> stdlib examples on the UIQ 3.x emulator?
>>>
>>>> "iprs.log"
>>>> "\Symbian\UIQ3SDK\epoc32\winscw\c\Media
files\other\iprs.log"
>>>> "C:\Symbian\UIQ3SDK\epoc32\winscw\c\Media
files\other\iprs.log"
>>>>
>>>> (would've been nice also to have an API to get the SDK path
rather than
>>>> hard-code it, but anyway it didn't help...)
>>>
>>> The emulator doesn't know about files outside the emulated Symbian
>>> filesystem, so such an API would be pointless.
>>>
>>> --
>>> Sander van der Wal
>>> www.mBrainSoftware.com
>>>
>>>> Any ideas? Anything I need to install or startup for proper
stdlib
>>>> support?
>>>> I really don't feel like removing all FILE *-related references
from my
>>>> code, there are quite a few of them as the application is
ported from
>>>> Windows....
>>>>
>>>> Thanx a lot in advance
>>>> Uriah
>>>>
>>>> P.S. I haven't gotten to testing it on a device since I'm still
porting
>>>> (it doesn't yet compile for GCCE) and as you might expect, the
log
>>>> should be kinda helpful for solving other problems :)
>>>>
>>>
>>>
>>
>>
>
>
|
| Post Reply
|
|
|