-
VadimMest replied to the topic No matching handle found. Complain. It must have been garbage collected or a wro in the forum kbmMW 4 years, 7 months ago
But in the real life the client misses files and my version control system doesn’t work properly.
-
VadimMest replied to the topic I think the error exists in procedure TkbmMWDOMXMLNode.SetData(AValue:string); in the forum kbmMW 4 years, 7 months ago
All Integer fields values don’t restored from xml
-
VadimMest replied to the topic I think the error exists in procedure TkbmMWDOMXMLNode.SetData(AValue:string); in the forum kbmMW 4 years, 7 months ago
-
VadimMest replied to the topic I think the error exists in procedure TkbmMWDOMXMLNode.SetData(AValue:string); in the forum kbmMW 4 years, 7 months ago
Maybe the problem is in the other parts but it exists. I insist
When I’ve changed the version to 5.15.0 I’ve got the problem with kbmMemTable savetoxml + loadfromxml. If the Integer field has zero value in the source dataset when the target dataset’s field will contain the null value after the record was loaded from xml. It was a tricky prob…[Read more]
-
VadimMest replied to the topic I think the error exists in procedure TkbmMWDOMXMLNode.SetData(AValue:string); in the forum kbmMW 4 years, 7 months ago
Maybe the problem is in the other parts but it exists. I insist 🙂
When I’ve changed the version to 5.15.0 I’ve got the problem with kbmMemTable savetoxml + loadfromxml. If the Integer field has zero value in the source dataset when the target dataset’s field will contain the null value after the record was loaded from xml. It was a tricky p…[Read more]
-
VadimMest commented on the post, HTTP middleware benchmarks 4 years, 8 months ago
Hi
The file uServers.pas absences in archive. -
VadimMest started the topic No matching handle found. Complain. It must have been garbage collected or a wro in the forum kbmMW 4 years, 8 months ago
Dear Kim
I think this exception needs to be commented out. If the handle was deleted let it creates new one. You’ve put a right comment before this line
function TkbmMWFilePool.Access
…….
if AHandle=INVALID_HANDLE_VALUE then
// No matching handle found. Complain. It must have been garbage collected or a wrong token given.
//…[Read more] -
VadimMest replied to the topic Problems with kbmMWFileService in the forum kbmMW 4 years, 8 months ago
No, I am not right.
If I add this block the service freezes during sending files
The problem hides in another place. I can see the same error inside the function CreateNewFileHandle. AReferences.Items deleted in some parallel thread and this code show error
if AToken<0 then
begin
// Generate unique random token number.
// Its randomized to m…[Read more] -
VadimMest replied to the topic Problems with kbmMWFileService in the forum kbmMW 4 years, 8 months ago
The problem seems in function TkbmMWFilePool.Access(AFilePath:string; const AMode:TkbmMWFileAccessMode; var AToken:integer; var AHandle:THandle; const ADenyWrite:boolean = true):TkbmMWFileReference;
the second call CreateNewFileHandle doesn’t contain ” lst:=FFileReferences.BeginWrite + FFileReferences.EndWrite”
// No token provided, add access…[Read more]
-
VadimMest started the topic Problems with kbmMWFileService in the forum kbmMW 4 years, 8 months ago
Dear Kim
kbmMW 5.15.10
I created a version control system based on TkbmMWFileService. I run the test for simultaneously working for kbmMWFileService and I have a few problems
The First
AV in function TkbmMWFileReferences.FindReference(const AID:cardinal; const APath:string):TkbmMWFileReference. I thing items are deleted while this cycle…[Read more]
-
VadimMest started the topic in the forum kbmMW 4 years, 8 months ago
Dear Kim
I want see only errors in debug file. I set kbmMWDebugLevel := mwdlError. But the dubug file contains all events and data, because all comparsion are like this
procedure kbmMWDebugDumpStream(ALevel:TkbmMWDebugLevel; AType:TkbmMWDebugType; AWhere:TkbmMWDebugDump; AOrigin:string; AMessage:string; AStream:TStream);
{$IFNDEF…[Read more] -
VadimMest replied to the topic Error in 5.18 in the forum kbmMW 4 years, 8 months ago
>Error reading kbmMWCustomService.PixelsPerInch: Property PixelsPerInch does not exists (SERVER)
It seems like dfm file contains property PixelsPerInch but version Delphi what used to build server doesn’t know about this propertiy. The form or the datamodule was opened and was saved in other version Delphi or don’t prepared for your versionTry…[Read more]
-
VadimMest started the topic procedure TkbmMWJSONStreamer.SaveToStringBuilder builds wrong JSON in the forum kbmMW 4 years, 10 months ago
Hello
kbmMW is version 5.15.10
procedure TkbmMWJSONStreamer.SaveToStringBuilder builds wrong JSON if DontStreamNullProperties = True and the last element os null
The error is in next code:
for i:=0 to n do
begin
co:=TkbmMWONCustomObject(o.PropertyValue[i]);
if (co is TkbmMWONNative) and (FDontStreamNullProperties) and…[Read more] -
VadimMest started the topic I think the error exists in procedure TkbmMWDOMXMLNode.SetData(AValue:string); in the forum kbmMW 4 years, 10 months ago
kbmMW is version 5.15.10
procedure TkbmMWDOMXMLNode.SetData(AValue:string);
begin
Exclude(FFlags,mwxnoDataModified);
Exclude(FFlags,mwxnoDataProvided);
Exclude(FFlags,mwxnoIsNil);
// Vad
//FDataLength:=0;FDataLength:=Length(AValue);
//
if AValue=” then
exit;{$IFDEF…[Read more]
-
VadimMest replied to the topic TkbmMemSQL as replacement for BDE in the forum kbmMemTable 5 years ago
Few interesting facts about performance
I run tests for 100 000 records. I know it’s a ridiculous amount of records, but my laptop very fast and I need to see how it affects my client’s workplaces.
The pair TKbmMemtable + TVirtualQuery works very slowly, very.
The pairs of TKbmMemtable + TkbmMemSQL and TVirtualTable + TVirtualQuery work…[Read more] -
VadimMest replied to the topic TkbmMemSQL as replacement for BDE in the forum kbmMemTable 5 years ago
I found two solutions:
- TKbmMemSQL (only for creating a table) + TKbmMemtable + TVirtualQuery (from DevArt UNIDAC) works properly.
- Changing ‘Create table’ from SQL Statement to AddField + TVirtualTable + TVirtualQuery also works properly and faster than the first solution
-
VadimMest replied to the topic TkbmMemSQL as replacement for BDE in the forum kbmMemTable 5 years ago
Thanks, I’ve understood:
I can use: One knmMemTable + Few KbmMemSQL with only modify SQL Statements
I have a table with documents rows in my application (TTable). User changes these rows by using an interface (it is my code in application) and my customers have a huge quantity of different external scripts (Fast Script Interpreter) that can c…[Read more]
-
VadimMest replied to the topic TkbmMemSQL as replacement for BDE in the forum kbmMemTable 5 years ago
procedure TForm4.Button1Click(Sender: TObject);
begin
FSQL.ExecSQL(‘create table t1 (id Integer, name char(50))’);
FSQL.ExecSQL(‘select * from t1’);kbmMemTable1.LoadFromDataSet(FSQL, [mtcpoStructure, mtcpoProperties]);
kbmMemTable1.AppendRecord([1, ‘Name 1’]);
kbmMemTable1.AppendRecord([2, ‘Name 2’]);FSQL.Tables.Clear;
FSQL.Tables.Add(‘t1’,…[Read more]
-
VadimMest replied to the topic TkbmMemSQL as replacement for BDE in the forum kbmMemTable 5 years ago
1. I’ve found only autogenerated kbmmemtable700d.chm in kbmMemTableDocumentation from 04.19.2018 that is zero usefull. The Kbmmemtable700Man.pdf from customer portal also cantains zero information how it works
2. Demo.dpr contains few SQL create table (table9) but no one example how I can connect to this created table.
When I wrote “The…[Read more]
-
VadimMest started the topic TkbmMemSQL as replacement for BDE in the forum kbmMemTable 5 years ago
I am trying to replace BDE on my big old ptoject but I can’t find documentation and examples for TkbmMemSQL for these cases:
- Creating few tables and connecting to these tables from few TkbmMemSQL for concurrent requests
- Storeing a local copy for emergency situation (in case power off) as it does the method TTable.FlushBuffers
Where can I…[Read more]
- Load More
