Joe,


I followed your advice :

I changed :

   app.DossierAppa = f.GetSaveInfo(f,0)

with :

   app.DossierAppa = f.GetSaveInfo(nil,0)


Didn't solve the problem. The code works fine when the Folder is where it is expected to be, but raises an error when the folder has been deleted.

I am still testing to find a workaround.

Thanks,


Youri




[EMAIL PROTECTED] wrote:
On Jan 16, 2007, at 18:44 UTC, Youri wrote:

As I explain earlier, I save in a RealSQLDB the reference to 3 folderItem, using this code

app.DossierAppa = f.GetSaveInfo(f,0) //app.DossierAppa is a String
Property ....

You're really asking for save-info for a file relative to itself?  That
doesn't make much sense to me.  If you don't have something more
sensible to look for these files relative to, then just specify nil as
the first parameter of GetSaveInfo.

If the Folder is on the right place then, everything is smooth, therefore it let me think that the value stored in "DossierAppa" is
correct.

Well, first fix the problem above, and if that makes the issue go away,
file a bug report explaining that resolving save-info behaves badly if
you got that info relative to the file itself, and then the file goes
missing.  (Or maybe more generally: if you stored save-info relative to
some base file, and that base file is missing when you go to resolve
it... this shouldn't cause an IllegalFormatException IMHO.)

If that doesn't make it go away, then I'd say file a different bug
report, explaining that an IllegalFormatException is raised when you
try to resolve a file that doesn't exist.  I'd say this is incorrect
behavior since the format of the data is fine (as you point out, it
works fine if the file exists).

HTH,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
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