delegates and threads

Johan Granberg lijat.meREM at OVEgmail.com
Thu Jul 20 00:41:20 PDT 2006


pragma wrote:
> In article <e9mc1n$8om$1 at digitaldaemon.com>, Johan Granberg says...
>> void foo(){printf("%*s",a.toString());}//segfault
> 
> Just shooing from the hip, but you might want to try %.*s to print char[] (or
> just use writefln() instead). ;)
> 
> - EricAnderton at yahoo

No it is not this that is the problem. This was just a test case. The 
problem is that the program segfaults when dereferencing the context 
pointer which for some reason is null. It happens both when it points to 
a stack frame and when it points to a class. (it the format string was 
the problem it would segfault in strlen instead by the way)



More information about the Digitalmars-d mailing list