Try creating an intermediate TextOutputStream object:

Dim o As TextOutputStream
...
o = f.CreateTextFile()
o.Write(strPreferences)

and see if 'o' is nil. Also, try making the file invisible AFTER you create it and see what happens.

On Jan 2, 2007, at 5: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>

_______________________________________________
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>

Reply via email to