× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Try sending scope message (QMHSNDSM) API. If your program crashes you can perform cleanup routines. Also, check for the record lock timeout values, so even if the program crashes no one lock can keep others in a stalemate. Finally, if that's the only reason you're using C for this, you might consider RPG and SQL. I rarely use C for strict DB file handling, it's not worth the trouble with SQL and RPG around. I don't see where a file open is an issue unless it's an exclusive lock. If the file is in QTEMP there's no reason to hold an exclusive lock(if you are) which would solve the re-entry problem.
However, I noticed you stated that a user space is an option. Then you could use a stream file (flat file). Again, same thing just don't open it exclusive and if the program bombs you can re-create it repeatedly with no locks. It is possible that the record handling code is causing storage issues as suggested so maybe removing that code or moving it to RPG may help.
But aside from all that, I would use queues for what you're doing it's a much more elegant solution and very robust on the i. It doesn't make sense to use files or user spaces for message passing and IPC.
_________________________________________________________________
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_messenger_052008

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.