GLBasic forum

Main forum => GLBasic - en => Topic started by: Neurox on 2011-Mar-04

Title: INI file error under iPhone
Post by: Neurox on 2011-Mar-04
I've a trouble with ini file under iPhone.
With a GLBasic 8.200 version are all ok.
But with a new version (9.26) give me a error when i write/reading ini file.
this is a source code I'm using :

Code (glbasic) Select

GLOBAL GLsavepath$
GLsavepath$ = PLATFORMINFO$("DOCUMENTS")
KILLFILE GLsavepath$+"/qualeautore.ini"
INIOPEN GLsavepath$+"/qualeautore.ini"
INIPUT "Libri", "tempo", 10
INIPUT "Libri", "errori", 5
INIPUT "Libri", "indovina",15
INIPUT "Libri", "lingua",1
INIOPEN ""
Title: Re: INI file error under iPhone
Post by: MrTAToad on 2011-Mar-04
Whats the error ?

Have you checked to see if there are any non-standard letters in the GLsavepath$ variable ?
Title: Re: INI file error under iPhone
Post by: Neurox on 2011-Mar-05
Quote from: MrTAToad on 2011-Mar-04
Whats the error ?

This :
(http://www.borzini.it/resources/QA_inierror.png)


Quote
Have you checked to see if there are any non-standard letters in the GLsavepath$ variable ?

Yes obviously :-) the path is equal when I used Old GLBasic version

Title: Re: INI file error under iPhone
Post by: MrTAToad on 2011-Mar-05
Better make a bug post about it!
Title: Re: INI file error under iPhone
Post by: ampos on 2011-Mar-05
Check that you are not using a shoebox before writing...
Title: Re: INI file error under iPhone
Post by: Neurox on 2011-Mar-05
Quote from: ampos on 2011-Mar-05
Check that you are not using a shoebox before writing...

I've removed the shoebox but the error is the same :(
Title: Re: INI file error under iPhone
Post by: Ian Price on 2011-Mar-05
Shoebox actually works on my iPod - for sound and graphics, but apparently not on everyones... :S
Title: Re: INI file error under iPhone
Post by: ampos on 2011-Mar-05
Shoebox does work on iPhone. I use it on Krakout.  But writings on shoebox fails.
Title: Re: INI file error under iPhone
Post by: Ian Price on 2011-Mar-05
QuoteShoebox does work on iPhone. I use it on Krakout.  But writings on shoebox fails.
Writing to the correct documents folder should have no effect whether a shoebox is used or not. He's not attempting to write to the shoebox (which shouldn't be done anyway).
Title: Re: INI file error under iPhone
Post by: Neurox on 2011-Mar-05
I've deleted the xcode directory completely from finder.
I've removed the
Code (glbasic) Select
KILLFILE GLsavepath$ "/qualeautore.ini" instruction...
... and now the app running without error  :good:
It's very incredible and very strange  :blink:
I'm going crazy.
Title: Re: INI file error under iPhone
Post by: MrTAToad on 2011-Mar-05
Could well be a bug - better report it in the Bug Report section.