Jussi Jumppanen <jussij@zeusedit.com> wrote: : gerard patel wrote: :>> But when I run the resulting 'so' file using this command line: :>> :>> $ WINEPRELOAD=./x_zeus.so wine --debugmsg +all :>> :>> I get the following trace file and resulting segment fault: :> <snip> :> :> I am no Winelib guru, but why are you running it this way? : Unfortunately I am no unix guru :( Try to compile and link with the debug option "-g". Try running your programm in gdb to. Perhaps you will fall to the line where the bad memory access happens. Bye -- Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------