Replies: 5 comments 4 replies
-
|
Each thread should open up the tables it needs. There were a couple static
variables in sqlrdd that I modified to be thread safe but you may not need
to.
I have tested MT with importing dbf's into Postgres. I have it working now.
…On Mon, Jan 15, 2024 at 9:19 AM Leonardo Machado ***@***.***> wrote:
Marcos,
Ficou muito boa essa versão para Harbour, sabe me dizer se posso rodar com
-MT e se precisa adicionar algo na hora de compilar a LIB para usar com -MT
?
—
Reply to this email directly, view it on GitHub
<#15>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTQJTZ2DKTG65CAPTRUTSTYOU3GVAVCNFSM6AAAAABB3LIEBKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGA3TONZZGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Did you reconnect in the thread?
…On Mon, Jan 15, 2024 at 10:50 AM Leonardo Machado ***@***.***> wrote:
Thanks for the feedback.
In this case I am not using wordarea.
I am using direct SQL command.
But I get an error below:
Assertion failed: res != NULL, file ../../../../../../source/pgs.c, line
131
Could you give me any tips?
—
Reply to this email directly, view it on GitHub
<#15 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTQJTZMKJSO4OMGOOC4ECTYOVF47AVCNFSM6AAAAABB3LIEBKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCMZUGY2TK>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I've done everything, but I get an error in POSTGRESQL, it closes my application out of nowhere and records the following error in the POSTGRESQL LOG: could not receive data from client: An existing connection was forcibly closed by the remote host. |
Beta Was this translation helpful? Give feedback.
-
|
I am using sqlrdd and at the end of the thread routine I have:
oSql:=SR_getconnection(nConnection)
oSql:end()
…On Mon, Jan 15, 2024 at 12:38 PM Leonardo Machado ***@***.***> wrote:
I've done everything, but I get an error in POSTGRESQL, it closes my
application out of nowhere and records the following error in the
POSTGRESQL LOG:
could not receive data from client: An existing connection was forcibly
closed by the remote host.
—
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTQJT5EXZPEC4PO7APECPTYOVSQBAVCNFSM6AAAAABB3LIEBKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCMZVG4YDS>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Just on your system.
Take a look at /SQLRDD/source/sqlrdd0.prg
static aConnections, nActiveConnection
You have to make it thread safe/aware and anything that references them.
I made a function to get/set and they default to the values per value of
hb_threadid().
…On Mon, Jan 15, 2024 at 5:12 PM Leonardo Machado ***@***.***> wrote:
I also tried and still got an error.
One question, when compiling the LIB do I need to put it in: sqlrddpp.hbp
-mt ?
Or just on my system?
—
Reply to this email directly, view it on GitHub
<#15 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTQJT4H6T6KBU4MOY54SX3YOWSUHAVCNFSM6AAAAABB3LIEBKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCMZXG43DI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Marcos,
Ficou muito boa essa versão para Harbour, sabe me dizer se posso rodar com -MT e se precisa adicionar algo na hora de compilar a LIB para usar com -MT ?
Beta Was this translation helpful? Give feedback.
All reactions