Re: gthreads and file operations



I just noticed... the code sometimes works and sometimes doesn't work(the
code doesn't go to completion which kind of confirms that there is thread
lock problem).

There doesn't seem to be an error in other parts of the code because the
code works fine when i comment the file writing part(i.e., prepareGrammar()
).

I have attached part of my code.

PS: I have used standard functions (fopen, fprintf etc) because i couldn't
find glib equivalent(for fseek() and fclose() ).

On Mon, Apr 12, 2010 at 10:52 PM, Tor Lillqvist <tml iki fi> wrote:

It would be *much* easier to help you if you could show us some actual
code that works strangely for you. A minimal but complete sample
program, thanks. Now it is very hard to understand what you mean.

--tml




-- 
regards,
Nischal E Rao
blogs.sun.com/nischal

Join RVCE OSUM at http://osum.sun.com/group/rvceosum


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]