If I use functions instead of delegates it works.

I suppose the problem then is that the delegate can't create a fat pointer when used in a static context. (i.e., why the functions work)

The question is, then, Can I construct a delegate manually and supply my own context pointer?

e.g.,
class X { }

void foo() { }

constructDelegate(&foo, new X()) // Creates a void delegate() with context X

Reply via email to