B4J Question is xui.DefaultFolder can crash app in some windows version ?

hi every b4xian's ,
ive an app used by more than 1000 users , all's fine except some user mentioned that the app crash sometimes , when i make invest a saw that the app crash in creating files , i use xui.DefaultFolder ( c:/"user"/appdata/roaming/"appname"/ ) , claude sonnet tell me this is issue in some version in windows and chatgpt tell no , so is using this without run as admin can make app crash ?? if yes wich is best place to save or generate files without any app crashing , also can i make a proper Crashlytics to send crash cause to my server because my app use server to login and to get all other datas
thank you all .
 

zed

Well-Known Member
Licensed User
I've always used xui.defaultfolder to place temporary files there.
I also put exe files (ffmpeg, 7z) there to use them from my b4j application. I even do mergers with sound and image files.
Everything still works without crashes.
The advantage of this folder is that it is on any PC
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
B4X:
Dim appname As String = "AWESOMEAPP"
    xui.SetDataFolder(appname)
    xui.DefaultFolder(appname)

This defaults to the location (appdata/roaming/appname). You dont need to set the path yourself as you did

xui.DefaultFolder ( c:/"user"/appdata/roaming/"appname"/ )
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
Upvote 0
Solution
Top