<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>18 Dec 2017 22:35:46 Z</lastBuildDate><pubDate>18 Dec 2017 21:54:56 Z</pubDate><description>Hi everyone.&#13;
&#13;
I've written a service in WD22 that is basically a multi-threaded TCP socket server. It accepts connections from other applications, carries out a process that may require it to access one of a couple local HFSQL file.&#13;
&#13;
My question is, how do those pointers to the files work in a multi-threaded application? I seem to be very occasional running into a crash where it's trying to modify one of those files, but it's getting an error "file is read-only. Unable to perform the operation."&#13;
&#13;
Currently, the way I'm handling those files is in the procedure that is doing the modification"&#13;
I issue HOpen(file) &#13;
HReadSeekFirst() to find the desired record&#13;
if HFound() = true then&#13;
	HModify()&#13;
Else&#13;
	HAdd()&#13;
End&#13;
HClose()&#13;
&#13;
&#13;
Should I instead issue an HOpen() in the application init procedure and just leave it open?&#13;
&#13;
Thanks!</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63720-wd22-question-about-hfsql-files-multi-threaded-application/read.awp</link><title>[WD22] Question about HFSQL files in multi threaded application</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63720-wd22-question-about-hfsql-files-multi-threaded-application-63721/read.awp</comments><pubDate>18 Dec 2017 22:35:46 Z</pubDate><description>Hi Robert,&#13;
&#13;
it depends how you create your thread, and the help of the thread &#13;
functions explains clearly the different cases…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63720-wd22-question-about-hfsql-files-multi-threaded-application-63721/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63720-wd22-question-about-hfsql-files-multi-threaded-application-63721/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/63720-wd22-question-about-hfsql-files-multi-threaded-application/read.awp">[WD22] Question about HFSQL files in multi threaded application</source><title>Re: [WD22] Question about HFSQL files in multi threaded application</title></item></channel></rss>
