Operating System - HP-UX
1837191 Members
2871 Online
110114 Solutions
New Discussion

Re: C++ program locked up on function call: fwrite.

 
liping guo
Occasional Advisor

C++ program locked up on function call: fwrite.

Operation System: HP-UX 10.20
Language: C++

I wrote a program which runs all the time to
collect historic data and write data into binary files at a period
of time, the problem is that it randomly hangs up on function call: fwrite,
(Sometime on function call: fread.) Based on hp manual page,
'fwrite' does not do any locking up for no-thread application.
Any idea about that? Thanks.
2 REPLIES 2
Paddy_1
Valued Contributor

Re: C++ program locked up on function call: fwrite.

can you provide more details like a snippet of the code which would be more helpful.
The sufficiency of my merit is to know that my merit is NOT sufficient
liping guo
Occasional Advisor

Re: C++ program locked up on function call: fwrite.

Paddy,
Thanks for your quick reply.
The attachment file (microsoft word) is code segments for the situation.

Any help is highly appreciated.

Liping