From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108a70,4bbf292a123e8aab,start X-Google-Attributes: gid108a70,public X-Google-Thread: fee84,4bbf292a123e8aab,start X-Google-Attributes: gidfee84,public From: c.eltawil@architel.com Subject: Problem with CXX 5.7 and OpenServer Threads Date: 1998/05/14 Message-ID: <6jeqv9$1v3$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 353182655 X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows 95) Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu May 14 13:18:33 1998 GMT Newsgroups: comp.databases.sybase,comp.unix.osf.osf1 A server spawns several threads, most of the threads calls a certain function. The function say my_func_1 contains local variables of different types. SYBOOKS and threads in general says that each thread has its own stack. For some reason the variables of type CS_FLOAT from my_func_1 seem to be shared; not the CS_INTs. Eg: CS_RETCODE my_func_1(CS_VOID) { CS_INT i_my_var_1 ; CS_FLOAT f_my_var_2 ; i_my_var_1 = 100 ; f_my_var_2 = 12.3 ; /* code that changes both variables */ } Say thread 8 calls my_func_1() and f_my_var_2 is set to a certain value y. A little later thread 9 calls my_func_1() and f_my_var_2 is set z, Now thread 8 sees f_my_var_2 as z and not y. This is a problem that only occurs on DEC Alpha "OSF1 V4.0 564 alpha" compiling with cxx 5.7 using Sybase Server-Library/11.1.1/P/DEC AXP/OSF/1 4.0/1/OPT/Tue Jul 15 18:33:17 1997. For C++ code. Anybody ever seen this or used this combination of machine, compiler and SYBASE library. Cheers Cherif -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading