No Diagnose File

Beatrix Willius bwillius at gmx.de
Sat Feb 27 00:22:46 CST 2010


Hi everybody,

had a more in depth look at the example for diagnose that Ruslan told  
me about. This seems to be more of a Realbasic issue and a very  
strange one.

   dim res as Boolean
   dim report as FolderItem
   'more code

     'report = GetTemporaryFolderItem
     report = GetSaveFolderItem( "txt", "Diagnose.txt" )
     res = mDatabase.Diagnose( 4,  report )

'more code

Using the original code with report = GetSaveFolderItem( "txt",  
"Diagnose.txt" ) everything works fine. With report =  
GetTemporaryFolderItem the diagnose file gets created (checked in  
Finder!!!), but the the debugger says report.exists = false. After  
changing to use mktemp everything works okay.

Am 25.02.2010 um 09:25 schrieb Beatrix Willius:

> thanks for the idea.
>
> The line
>
> dim theDiagnoseFile as FolderItem = GetTemporaryFolderItem
>
> creates the folderitem and makes it non nil.
>
> Later at
>
> if theDiagnoseFile = nil or not theDiagnoseFile.Exists then
>
> the code bails out because the file doesn't exist. There are no  
> virtual locations with Mac OS.
>
>
> Ruslan and team: any idea what is happening here?

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macserve.net/pipermail/valentina/attachments/20100227/8946146a/attachment.html 


More information about the Valentina mailing list