The environ example mostly works.

I'm getting memory errors when an item is selected in the text box which
is probably related to calculating the memory needed to allocate one of
the string buffers.