In theory, you could also use the code below, ....
#include <msclr/gcroot.h>
msclr::gcroot<FlowControlStack> g_fcs;
... but I would prefer a static variable of a managed class instead.
Marcus
>I tried just declaring a global instance and now get the following
> error
>
> error C3145: 'flowControlStack' : global or static variable may not
> have managed type FlowControlStack