lcDirectory = .oUtility.GetAppDirectory()It assumes that the top level program was SDT.APP or SDT.PRG, which isn't the case here. The fix is simple: change this line to:
lcDirectory = .oUtility.GetAppDirectory(sys(16))
(This is one of those cases where I'm glad I added more functionality in the library routine, GetAppDirectory in this case, than I needed at the moment <g>).