delegates and threads

S. Chancellor dnewsgr at mephit.kicks-ass.org
Sat Jul 22 00:47:34 PDT 2006


On 2006-07-20 00:41:20 -0700, Johan Granberg <lijat.meREM at OVEgmail.com> said:

> 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)

Did you figure out the answer to your problem?

It may be an issue with mach threads.




More information about the Digitalmars-d mailing list