Magnus Hagander wrote:
> I've done some more investigation on the issues with running initdb
> (well, running the postgres backend actually, which initdb does in a
> pipe of course). When I look at the actual error essage, it's "The
> specified path is invalid"!
>
> I don't see any reason why this should happen. I've also tried
> experimenting with the Local\ and Global\ prefixes of the file mapping
> object, but that makes no difference, the problem is still there.
>
> Does anybody have any idea of why CreateFileMapping() would behave
> differently on win2k terminal services
I don't, but you could try to use an explicit temp file, instead of
INVALID_FILE_HANDLE. Maybe the page file is accessible only in the
console session.
Regards,
Andreas