Free Pascal => Unix => Topic started by: RastaManKing on December 13, 2018, 10:04:08 am
Title: External SIGSEGV
Post by: RastaManKing on December 13, 2018, 10:04:08 am
Hello again xD another problem with my multi-threading, im taking baby steps but slowly advancing. now im getting a different external exception: External: SIGSEGV This external exceptions are killing me! xD
well following the debbuger this error pops up on here:
inherited Create(CreateSuspended);//<--Here is the error...
FreeOnTerminate :=True;
end;
any ideas on what might be the trouble? i have -dUseCThreads on compiler custom options and {IFDEF Unix}cthreads{ENDIF} on my main unit... the type definition is like this(Basically taken straight from the wiki multithreading example):
EDIT: I should mention im trying this on linux x86_64
Title: Re: External SIGSEGV
Post by: MoCityMM on February 20, 2020, 11:47:08 am
Maybe the same issue with fix? https://www.daniweb.com/programming/software-development/threads/463385/thread-problem-error-constructors-destructors-and-class-operators
Title: Re: External SIGSEGV
Post by: rvk on February 20, 2020, 12:48:56 pm
Can you show the code where you create the instance of TMyThread?