The unhappy youth had determined to let himself die , and indeed his sorrow alone was enough to kill him , when the thought that by means of the cabinets of the years he might find out where the Princess was imprisoned , gave him a little ray of comfort .