[Re]Re: [SCIM] SCIM die when I use XInitThreads().

LiuCougar liucougar at gmail.com
Wed Nov 10 10:27:26 PST 2004


I have little idea about Xlib programing.

but AFAIK, you do not need to call XInitThreads function, unless you
want to use X APIs in two thread. You can always avoid this, won't
you?


On Wed, 10 Nov 2004 23:04:11 +0900, 김성남 <kittysnk at nate.com> wrote:
>  Thank you your reply.
> I already knew about it (I read manual). 
> I did. But, program always die. 
> 
> 
>  
>  
>  
> ------ Original Message ------
> 
>  Date: 2004년 11월 10일 오후 09:28:59
>  From: LiuCougar
>  To: 김성남
>  Cc: scim at freedesktop.org
>  Suject: Re: [SCIM] SCIM die when I use XInitThreads().
>  
>  From the manual:
>  The XInitThreads function initializes Xlib support for concurrent
>  threads. This function must be the first Xlib function a
>  multi-threaded program calls, and it must complete before any other
>  Xlib call is made. This function returns a nonzero status if
>  initialization was successful; otherwise, it returns zero. On systems
>  that do not support threads, this function always returns zero.
>  
>  
>  On Wed, 10 Nov 2004 10:19:50 +0900, 김성남 wrote:
> > 
> > 
> > My sample program die while inputting on XmTextWidget when I used
> > "XInitThreads()" funtion.
> > 
> > 
> > 
> > I have tested with three methods.
> > #1. NG
> > $export LC_CTYPE=zh_CN
> > int main()
> > {
> > ....
> > XInitThreads();
> > ....
> > XtVaCreateManagedWidget(..xmTextWidgetClass...);
> > }
> > #2. GOOD WORK
> > $export LC_CTYPE=zh_CN
> > int main()
> > {
> > ....
> > XtVaCreateManagedWidget(..xmTextWidgetClass...);
> > }
> > #3. GOOD WORK, but I could not use Chinese IM.
> > $export LC_CTYPE=en_US
> > int main()
> > {
> > ....
> > XInitThreads();
> > ....
> > XtVaCreateManagedWidget(..xmTextWidgetClass...);
> > }
> > It seems that problem is XInitThreads and Locale...
> > How can I fix it?, Please, help me.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 새로운 형태의 이포스트카드 서비스 
> > 
> > 예쁜 우편 엽서로 마음을 전달
> > 
> > 인터넷 속 나만의 자유 공간, 블로그 
> > 
> > 나를 진정 사랑하는 방법입니다!
> > 
> > _______________________________________________
> > scim mailing list
> > scim at freedesktop.org
> > http://freedesktop.org/mailman/listinfo/scim
> > 
> > 
> > 
>  
>  
>  -- 
>  "People's characters are strengthened through struggle against
>  difficulties; they are weakened by comfort."
>  - Old Chinese adage
>  
>  
>  
> 
>  
> 
> 
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>    
>  새로운 형태의 이포스트카드 서비스 
>  
>  예쁜 우편 엽서로 마음을 전달 
>      
>  인터넷 속 나만의 자유 공간, 블로그 
>  
>  나를 진정 사랑하는 방법입니다! 


-- 
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage


More information about the scim mailing list