-
TomYU started the topic FilePool of FileService in the forum kbmMW 5 years, 8 months ago
hi,
Setting FileService.FilePool during design period does not work and must be set during runtime.
procedure TFileService.kbmMWFileServiceCreate(Sender: TObject);
begin
Self.FilePool:=MainDatamodule.kbmMWFilePool1;
end;best regards
Tom YU.
-
TomYU started the topic Timeout waiting for write lock. Locked by: in the forum kbmMW 5 years, 8 months ago
hi,
I tested smartbind and found that the following code produces such an error:Timeout waiting for write lock. Locked by:
procedure TForm3.Button1Click(Sender: TObject);
beginFBindings.Bind(DisplayDataSet, ‘f1’, ListView1, ‘#Text1’);
FBindings.Bind(DisplayDataSet, ‘f2’, ListView1, ‘#Text2’);
FBindings.Bind(DisplayDataSet, ‘f3’, ListView1,…[Read more] -
TomYU replied to the topic kbmMW 5.15.00 cannot compile on android in the forum kbmMW 5 years, 8 months ago
fixed code:
class function TkbmMWPlatformMarshal.Memory2Int16(const AMemory:PByte; const ALittleEndian:boolean):smallint;
type
TShortBytes = packed record
case integer of
1: (short: smallint);
2: (b:array[1..2] of byte);
end;
PShortBytes = ^TShortBytes;
PShort=^smallint;
var
t:TShortBytes;
begin
{$IFDEF KBMMW_BIG_ENDIAN}
if ALittleEndian…[Read more] -
TomYU replied to the topic Text2 not display in the forum kbmMW 5 years, 8 months ago
hi,
kbmMW 5.15 fixed!
thanks!
best regards.
Tom yu
-
TomYU started the topic kbmMW 5.15.00 cannot compile on android in the forum kbmMW 5 years, 8 months ago
hi,kim
I can’t compile on android platform.
in kbmMWGlobal unit:
class function Memory2Int16(const AMemory:PByte; const ALittleEndian:boolean):short; {$IFDEF KBMMW_PLATFORM_INLINE}static; inline;{$ENDIF}
error message:
[DCC Error] kbmMWGlobal.pas(1608): E2003 Undeclared identifier: ‘short’
[DCC Fatal Error] kbmMWGlobal.pas(3643): F2063 Could…[Read more]
-
TomYU started the topic DEFINE KBMMW_NATIVETRANSPORT_SUPPORT in the forum kbmMW 5 years, 8 months ago
hi,
Request to add this compilation variable by default.
{$DEFINE KBMMW_NATIVETRANSPORT_SUPPORT}
best regards
Tom YU.
-
TomYU replied to the topic hope 'Cant access file' error message add path info. in the forum kbmMW 5 years, 8 months ago
Can it display the file name requested by the client?
-
TomYU started the topic hope 'Cant access file' error message add path info. in the forum kbmMW 5 years, 8 months ago
hi,
I hope error message of fileservice : “Cant access file” add file path info.
ref:=FilePool.Access(path,mwfamOpenRead,FFileToken,h);
try
if not kbmMWGetFileSize(ref.Path,sz,h) then
kbmMWRaiseException(KBMMW_ERR_SERVICE_FILE_RESOURCEBUSY,path+’Cant access file’);// add path.best regards
Tom YU.
-
TomYU replied to the topic Text2 not display in the forum kbmMW 5 years, 8 months ago
FMX ListView only displays the content of the first bound field, the others are not displayed.
-
TomYU started the topic Text2 not display in the forum kbmMW 5 years, 8 months ago
Use the following method to bind, Text2 in ListView is not displayed.
procedure TForm3.Button1Click(Sender: TObject);
begin
FBindings := TkbmMWBindings.Create;
FBindings.Bind(DisplayDataSet, ‘f1’, ListView1, ‘#Text1’);
FBindings.Bind(DisplayDataSet, ‘f2’, ListView1, ‘#Text2’);
FBindings.Bind(DisplaydataSet, ‘@’, ListView1, ‘@’,…[Read more] -
TomYU replied to the topic TBindings.Bind generated address error in the forum kbmMW 5 years, 8 months ago
procedure TForm3.Button1Click(Sender: TObject);
begin
FBindings := TkbmMWBindings.Create;
FBindings.Bind(DisplayDataSet, ‘f1’, ListView1, ‘#Text1’); // error.
FBindings.Bind(DisplayDataSet, ‘f2’, ListView1, ‘#Text2’);
FBindings.Bind(DisplaydataSet, ‘@’, ListView1, ‘@’, [mwboTwoWay]);
FBindings.UpdateEvent.Activate(False);
FBindings.Clear; //An…[Read more] -
TomYU started the topic TBindings.Bind generated address error in the forum kbmMW 5 years, 8 months ago
hi,
run code, have a error.
procedure TForm3.Button1Click(Sender: TObject);
begin
FBindings.UpdateEvent.Activate(False);
FBindings.Clear;
FBindings.Bind(DisplayDataSet, ‘f1’, ListView1, ‘#Text1’); // error.
FBindings.Bind(DisplayDataSet, ‘f2’, ListView1, ‘#Text2’);
FBindings.Bind(DisplaydataSet, ‘@’, ListView1, ‘@’,…[Read more] -
TomYU replied to the topic TBindings.Clear generated address error in the forum kbmMW 5 years, 8 months ago
This problem is real in my actual project, for this reason I cannot upgrade to kbmMW 5.14.
-
TomYU replied to the topic TBindings.Clear generated address error in the forum kbmMW 5 years, 8 months ago
procedure TListDialogFrame.PrepareView;
beginLabel_Caption.Text := Title;
if Self.FInfo.HasData[‘SearchVisible’] then
ListView1.SearchVisible:=FInfo.Data[‘SearchVisible’].AsBoolean;if DisplayDataSet <> nil then
begin
ListViewSearchBox(ListView1).Text:=”;
FBindings.Clear;
if KeyFieldName <> ” then
FBindings.Bind(DisplayDataSet,…[Read more] -
TomYU replied to the topic TBindings.Clear generated address error in the forum kbmMW 5 years, 8 months ago
Because of this issue, I cannot upgrade to kbmMW 5.14!
-
TomYU started the topic TBindings.Clear generated address error in the forum kbmMW 5 years, 8 months ago
hi,kim
FBindings:=TkbmMWBindings.Create;
FBindings.Clear;
When the Clear method is called for the second time, an address error occurs.
kbmMW 5.14 has this problem, 5.13.10 is normal.
procedure TkbmMWBindings.Clear;
begin
while TkbmMWInterlocked.Increment(FSyncUpdateRunning)>1…[Read more] -
TomYU started the topic TkbmMWLock.BeginWrite is freeze in the forum kbmMW 5 years, 10 months ago
Nested execution of the BeginWrite method, the program will freeze.
eg.FLock: TkbmMWLock;
FLock.BeginWrite;
try
…
FLock.BeginWrite;
try
…
finally
FLock.BeginWrite;
end;
finally
FLock.EndWrite;
end;
-
TomYU replied to the topic E2003 Undeclared identifier: 'TkbmMWStringLis in the forum kbmMW 5 years, 10 months ago
when will release an update of kbmMW?
-
TomYU replied to the topic Compilation Android fail in the forum kbmMW 5 years, 11 months ago
What compile error message is displayed?
I also encountered a similar problem.
-
TomYU started the topic E2003 Undeclared identifier: 'TkbmMWStringLis in the forum kbmMW 5 years, 11 months ago
hi,
I can’t compile my project on android 32 platform.
Test code:
unit Unit2;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
kbmmwglobal;type
TForm2 = class(TForm)
private
l:TkbmMWStringList;
{ Private declarations }
public
{…[Read more] - Load More
