I have an application where a pdf file with the name "saida.pdf" is generated in the application folder.
To facilitate access we use the command [Wait For (SaveAs(File.OpenInput(File.DirInternal, "saida.pdf"), "application/octet-stream", "saida.pdf")) Complete (Success1 As Boolean] so that the file is saved in the Downloads folder.
In the debug version, it works without any problems, we can even change the file name to ex1.pdf, for example, when running SaveAs and the pdf is saved, without any problem, in the Downloads folder.
In the release version (without any change in relation to the debug version), if in SaveAs we change the name of the file to ex1.pdf, for example, the file is saved with zero size in the Downloads folder!
Where am I wrong ??