Re: Bug in csv or byLine ?

2016-01-10 Thread Keywan Ghadami via Digitalmars-d-learn
On Friday, 8 January 2016 at 13:53:06 UTC, Guillaume Chatelet wrote: On Friday, 8 January 2016 at 13:22:40 UTC, Tobi G. wrote: On Friday, 8 January 2016 at 12:13:59 UTC, Guillaume Chatelet wrote: On Friday, 8 January 2016 at 12:07:05 UTC, Tobi G. wrote: No, sorry. Under Windows DMD v2.069.2 it

Changing Name of a thread

2016-01-09 Thread Keywan Ghadami via Digitalmars-d-learn
Hello, i am trying to the set the name of thread with: import core.thread; auto thisThread = Thread.getThis(); thisThread.name = "kiwi"; but GDB prints the name of the programm ("helloworld") [Thread debugging using libthread_db enabled] Using host libthread_db library

Re: Changing Name of a thread

2016-01-09 Thread Keywan Ghadami via Digitalmars-d-learn
On Saturday, 9 January 2016 at 17:30:47 UTC, tcak wrote: I tried your code with a little addition as follows: [code] import core.sys.posix.pthread; import std.string; import std.stdio; extern(C) int pthread_setname_np(pthread_t, const char*); void main(){

Re: SIGSEGV in invariant._d_invariant(Object)

2016-01-06 Thread Keywan Ghadami via Digitalmars-d-learn
On Wednesday, 6 January 2016 at 21:58:51 UTC, Adam D. Ruppe wrote: On Wednesday, 6 January 2016 at 21:50:23 UTC, Keywan Ghadami wrote: how to fix an SIGSEGV in invariant._d_invariant(Object)? That means you are calling a method on a null object. Your object might be at the bottom of the

SIGSEGV in invariant._d_invariant(Object)

2016-01-06 Thread Keywan Ghadami via Digitalmars-d-learn
Hi @all, how to fix an SIGSEGV in invariant._d_invariant(Object)? Maybe i should give some context: I am learning D and started hacking the dlangide(https://github.com/buggins/dlangide), and normally finding the cause of an segmentation fault isn't that hard. But this time it is somehow