i did no look at the source (i dont like exe's), but:
does your dpk have the name of a .pas file? If so try to correct that.