V4RB varchar-351 error

Cindy Brown cindy at kowhaiprogramming.com
Fri Mar 19 06:30:06 CST 2004


Hi Ruslan

> 
> I assume that you create new thread for each connected client, yes?
> So if you have 10 connections you have 10 threads. Yes?
> 
> And here IMPORTANT to understand, that V4RB plugin is NOT thread save.
> 
> This means that you must create in your app ONE global mutex,
>   gValentinaMutex
> 
> And from YOUR threads, BEFORE call any Valentina function you must do
> 
>   gValentinaMutex.lock
> 
>       Valentina function call
> 
>   gValentinaMutex.unlock
> 
> 
> This is not exact syntax of REALbasic, I don't know it.
>

I've just thought about this some more. This might explain what is happening
on the server but does not explain that the varchar-351 error occurs on the
workstation where I am not using threads. I still think that there is an
error on the windows side where it is falsely saying there are -351 errors
and this is eventually causing problems.

All the best.

-- 

Cindy Brown
Programmer
SchoolMaster

Kowhai Programming Systems
PO Box 198, Invercargill
81 Marama Avenue South, 9RD Invercargill
Phone (03) 213 1243
Fax (03) 213 1248
Mobile (021) 354 930
<http://www.kowhaiprogramming.com/>




More information about the Valentina mailing list