[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error when accessing hidden internal resources after compilation
[Thread Prev] | [Thread Next]
- Subject: Re: Error when accessing hidden internal resources after compilation
- From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Thu, 20 Feb 2025 11:46:17 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 2/20/25 11:11 AM, Claus Dietrich wrote:
Yesterday I stumbled over the following problem: When I access a hidden project internal resource file, i.e. copy "./.filename" to "targetdir/.filename" it works fine during development time. But when I compile it, the app throws an error: The application has raised an unexpected error and must abort. [45] File or directory does not exist. Is this normal and explainable or is it a bug? I managed to overcome this problem by using Application.Path & "/.hiddenresource but I would prefer to know why a relative path to a hidden internal resource fails after compilation. Best regards Claus
Perhaps it has something to do with what file you are copying or the type of project you are working on. I just tried it by copying the ".project" file in a command-line application (using the format: copy "./.filename" to "targetdir/.filename"), and it worked with no issues.
I am assuming that when you say, "When I compile it," that you are meaning creating an executable and running that. That's what I did.
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
Re: Error when accessing hidden internal resources after compilation | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Error when accessing hidden internal resources after compilation | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |