There is always the possibility that I am the one who doesn't know what he is doing, but this one time this issue has got to be Adobe's fault.
After many sleepless nights, I have concluded that this code:
http://patriot.net/~ramon/misc/PDEPathExplorerSnip.cpp.txt
should be accompanied by a large disclaimer:
WARNING! IT HAS BEEN DETERMINED THAT THIS PARTICULAR FUNCTION IS DAMAGING FOR YOUR APPLICATION!!
:-)
I will expand in another post, but consider this, for starters:
As soon as I saw those lines of code, I said to myself "oh, oh, I smell trouble".... Little did I know!
Back in the days of CS-101 professors always insisted: "A function should always have ONE return statement!!"
http://en.wikipedia.org/wiki/Structured_programming
This is my solution, but it does not fix the fact that the provided function does not seem to be usable as-is.
-Ramon