I crashes if I let it hang sometime, same stacktrace, I renamed the old
"knowledge" directory, there must be something rotten in there, because
- I succeeded to stop the application in the debugger, and I saw it
scanning a directorty in this archetype-directory
- I runs fine after renaming this directory
Then I tried to point it to the renamed the directory and it crashes
again, but now in the debugger, I try to give you as much information as
possible
Code: 4 (Postcondition violated.) Tag: correct_path
This is:
directory_at (path: STRING_8): DIRECTORY
-- A directory object representing `path'.
-- Strips any trailing backslash to avoid Windows API defect.
-- (from SHARED_RESOURCES)
-- (export status {NONE})
require -- from SHARED_RESOURCES
path_attached: path /= Void
path_not_empty: not path.is_empty
do
create Result.make (file_system.canonical_pathname (path))
ensure -- from SHARED_RESOURCES
attached: Result /= Void
--> correct_path: path.substring (1,
Result.name.count).is_equal (Result.name)
end
This is in ARCHETYPE_INDEXED_FILE_REPOSITORY_IMP
The value of "path" is /home/verhees/OpenEhr/k//BRANCHES
You see, the double "//"
The error is, correct_path receives the value: path.substring (1,
Result.name.count) which will be in this case:
/home/verhees/OpenEhr/k//BRANCHE
(you see, the "S" is missing)
Result.name= /home/verhees/OpenEhr/k/BRANCHES
(single slash)
So, concluding
correct_path: path.substring (1, Result.name.count).is_equal (Result.name)
Because path has a double slash, it differs from Result.name which has a
single slash
Maybe you can find out why.
Thanks,
Bert
Bert Verhees schreef: