BUG: standalone modifing itself!?
Andre Garzia
soapdog at mac.com
Sun Jun 27 20:55:05 EDT 2004
Hi Folks,
This is the strangest of the bugs... First I am using rev 2.2 on MacOS
X 10.3.4 with a nice Studio License.
I implemented a complete Blogger API client this afternoon, it's a
remake of my old iBlog tool (http://iblog.soapdog.org). I did
everything from the scratch since old codebase was RB based.
It's a simple stack, it just uses some simple GET and POST commands to
interface to Blogger API. The stack saves it's configuration to a text
file named "iBlog 9 prefs", this file is stored inside the application
folder. The stack makes use of revXML lib.
First bug was, the standalone simply fails on Mac Classic and Win32...
it does not connect to the internet, every handler returns empty. In
MacOS X it works fine. I also noticed that in Classic and Win32
standalones, the prefs files is not being created. Then I started
debugging it... now I came to the strangest of the scenarios. the MacOS
X standalone is not creating the file either... but it's saving the
configuration somehow. The configuration is saved to a text file, and
loaded in the openStack handler. How can the stack load a non existant
file?
It's not on the trash either... it's just not there. the prefs file is
hard coded with this funcs:
function prefsDir
set the itemDelimiter to "/"
get item 1 to -2 of the effective filename of this stack
set the defaultFolder to it
return it & "/"
end prefsDir
function savePrefs pFile, pArray
-- Save a pref file as a combined array.
combine pArray by "=" and "&"
put "file:/" & prefsDir() & pFile into tPath
put pArray into URL tPath
end savePrefs
function loadPrefs pFile
-- Load a prefs file as a combined array
put "file:/" & prefsDir() & pFile into tPath
get URL tPath
return it
end loadPrefs
I can quit the app and relaunch it, It reads the configuration, but
there's no configuration file... I used sherlock, finder, every search
utilitie I could find, there's no "iBlog 9 Prefs" on the computer...
Can standalones modify themselves, I know mac classic can, but, didn't
rev team enforced a policy on no-standalone-messing...
Also does anyone here got any trouble with LibURL in Win32?
Is my revolution possessed by evil spirits? Was the premonition
external shipped with Rev 2.2?
--
Andre Alves Garzia ð 2004 ð BRAZIL
http://studio.soapdog.org
More information about the use-livecode
mailing list