CreateTextFile is probably returning nil. (Permission problem ???)
It is usually better practice to assign a variable to the
CreateTextFile, and then do stream.Write(strPreferences) as it is
easier to detect where problems are when things do not work.
Björn
On Jan 2, 2007, at 11:38 PM, Trausti Thor Johannsson wrote:
This works fine on Macintosh, but crashes as a nilobject on
Windows. I have no explanation, here is the code
#if TargetMachO then
f = PreferencesFolder.Child("studlar")
#elseif TargetWin32 then
f = PreferencesFolder.Child("studlar")
#endif
f.Visible = false
if f.Exists then
f.CreateTextFile().Write(strPreferences) <---- crashes here
end if
No variable is nil, that is so weird.
Trausti
This bug is in 2006r4 and 2007r1.
Trausti
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
--
______________________________________________________________________
Björn Eiríksson [EMAIL PROTECTED]
Einhugur Software
http://www.einhugur.com/
______________________________________________________________________
Einhugur Software has sold its products in 55 countries world wide.
______________________________________________________________________
For support: [EMAIL PROTECTED]
To post on the maillist: [EMAIL PROTECTED]
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>