jelanyon

IWorkspace.PathName returns empty string

Discussion created by jelanyon on Oct 12, 2011
Latest reply on Oct 24, 2011 by jelanyon
I have a frustrating unpredictable situation where for some reason (which I have yet discovered the reason) when I call IWorkspace.PathName I get an empty string. I am solely dealing with personal GDB feature classes - no remote database workspaces involved. I initially thought it was down to the fact that I had a large number of layers loaded in my TOC all located in my PGDB, so removed all of the unnecessary layers before calling the code. This appears to sort the problem for 99% of the time, but hasn't solved it completely. I'm running 9.3 on XP (32 and 64-bit) and get the empty string returned on both platforms. I've noticed users finding this occurring with SDE databases but not with PGDBs - has anyone experienced this?

Thanks
James

Outcomes