Xojo app not potty-trained

Our Windows version of a program is generating hundreds of temp files a minute in C:\Users\%user%\AppData\Local\Temp
They have names like: rbtxxxx.tmp.
They do not get cleaned up on quit.
What can we do to stop this?
Thanks to anyone that can help.

Can you reproduce this in an example project?
If so, file a bug report.

The only time I’ve seen those files created is when I use GetTemporaryFolderItem()

I found this in the code:
Dim NotificationFolderItem As FolderItem = GetTemporaryFolderItem

It was not being used. It seems to have stopped the issue. Would this create a file? They are empty.

Thanks guys.

Yes, it creates an empty file for you to use as a temporary item.


Actually, Wayne gave you the answer.