-
TomYU replied to the topic Issue of DEFINE KBMMW_SUPPORT_MRWSLOCK in the forum kbmMW 4 years, 7 months ago
I’m not sure. I just want to test FLock.BeginWrite work as expected?
-
TomYU started the topic Issue of DEFINE KBMMW_SUPPORT_MRWSLOCK in the forum kbmMW 4 years, 7 months ago
hi,
Can’t compile project when i used DEFINE KBMMW_SUPPORT_MRWSLOCK,
function TkbmMWThreadedCircularBuffer.BeginRead(const ATimeOutMS:integer = 0):TkbmMWCircularBuffer;
begin
FLock.BeginRead(ATimeOutMS);;//[DCC Error] kbmMWDataStructures.pas(1697): E2034 Too many actual parameters
Result:=FBuffer;
end;best regards
Tom YU.
-
TomYU replied to the topic kbmMWClientConnectionPool1 can't free. in the forum kbmMW 4 years, 7 months ago
Default compilation variables used:
{$DEFINE KBMMW_SUPPORT_FASTMRWSLOCK} // If to use native very fast Multiple Reader Exclusive Writer lock. -
TomYU replied to the topic kbmMWClientConnectionPool1 can't free. in the forum kbmMW 4 years, 7 months ago
The pause method does not work as expected on the Android platform:
procedure TkbmMWCustomThread.Pause;
-
TomYU replied to the topic kbmMWClientConnectionPool1 can't free. in the forum kbmMW 4 years, 7 months ago
As a new development, I found that the code implemented in this way can execute normally on android platform.
procedure TForm1.Button2Click(Sender: TObject);
begin
rs:=TkbmMWPooledDatasetRefreshScheduler.Create(Self);
rs.StopScheduling; //not frozen when TkbmMWPooledDatasetRefreshScheduler.Owner<>nil.
rs.Free;
rs:=nil;
end;
-
TomYU replied to the topic kbmMWClientConnectionPool1 can't free. in the forum kbmMW 4 years, 7 months ago
When the application is closed, kbmMWClientConnectionPool1 will be released.
and kbmMWClientConnectionPool1 will execute the following methods:
FRefreshScheduler. StopScheduling;
On the Android platform, this line of code is frozen and will not continue.So the application can’t exit normally!
fixed code:
procedure…[Read more]
-
TomYU replied to the topic App crash on android upgrade to Delphi 11.1 in the forum kbmMW 4 years, 7 months ago
I found the cause of this problem, but I don’t know how to modify the code.
Problems caused by kbmMWGetCurrentThreadIDÂ function on Android platform.
This function generates an exception when the boundary check compilation option is turned on.
I recorded more details here:
-
TomYU replied to the topic kbmMWClientConnectionPool1 can't free. in the forum kbmMW 4 years, 7 months ago
hi,
I did this just to redisplay the problem.
When the application is closed, because this component cannot be released normally, the application cannot exit normally. When the application is restarted, the application is stuck.
This is a problem on the Android platform.best regards
Tom YU.
-
TomYU started the topic kbmMWClientConnectionPool1 can't free. in the forum kbmMW 4 years, 7 months ago
hi,
create a blank fmx project, put a kbmMWClientConnectionPool1 on form, run on android.
app not close.
code:
unit Unit1;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
kbmMWCustomConnectionPool, kbmMWClientDataset,…[Read more] -
TomYU started the topic App crash on android upgrade to Delphi 11.1 in the forum kbmMW 4 years, 8 months ago
Upgrade to Delphi 11.1 and crash when running app on Android platform after using kbmmw。
1.create fmx project
2. uses kbmMWlog
3.run on android
4.crash!!!
-
TomYU started the topic Undeclared identifier: 'LMarshaller' in the forum kbmMW 4 years, 8 months ago
[DCC Error] kbmMWLog.pas(4619): E2003 Undeclared identifier: ‘LMarshaller’
-
TomYU replied to the topic Error in 5.18 in the forum kbmMW 5 years, 1 month ago
Has this problem been solved?
-
TomYU started the topic Issue of kbmMWClientQuery.Undo in the forum kbmMW 5 years, 4 months ago
hi,kim
The record after Undo is still…[Read more]
-
TomYU started the topic Could not convert variant of type (Null) into type (OleStr) in the forum kbmMW 5 years, 5 months ago
hi,kim
What better way for REST services to handle returned error messages than this one?
best regards
Tom YU.
-
TomYU replied to the topic Update of kbmMWClientQuery in the forum kbmMW 5 years, 5 months ago
A ClientQuery has F1,F2,F3 fields, F1 is primary key,when i modify F2, I want to generate SQL like this: update testtable set (f1,f2) values (‘aaa’,’bbb’) where f1=xxx.
-
TomYU started the topic Update of kbmMWClientQuery in the forum kbmMW 5 years, 5 months ago
hi,
For ClientQuery, when parsing on the server side, if a field is not modified, I don’t want it to be generated in the Set clause of Update.
What should I do?
best regards
Tom YU.
-
TomYU replied to the topic SmartBind have xxxxx:DataSet not in edit mode error message. in the forum kbmMW 5 years, 6 months ago
hi, kim
In fact, this problem has existed since 5.10.10, and we look forward to official corrections.
best regards
Tom YU.
-
TomYU replied to the topic SmartBind have xxxxx:DataSet not in edit mode error message. in the forum kbmMW 5 years, 6 months ago
fixed code:
procedure TkbmMWBindingDataSourceNavigator.SetValue(const AName:string; const AValue:TValue);
var
fld:TField;
begin
if IsValid then
begin
fld:=FDataSource.Dataset.FindField(AName);
if fld<>nil then
begin
if not (FDataSource.Dataset.State in [dsEdit,dsInsert]) then…[Read more] -
TomYU started the topic SmartBind have xxxxx:DataSet not in edit mode error message. in the forum kbmMW 5 years, 6 months ago
hi,kim
NavigatorPH: IkbmMWBinding;
NavigatorPH.Navigator.Append;
NavigatorPH.Navigator.Value[‘fcs’] := 6;// Show xxxx.DataSet not in edit mode .
kbmMW 5.15.10
best regards
Tom YU.
-
TomYU replied to the topic FilePool of FileService in the forum kbmMW 5 years, 8 months ago
thanks!
- Load More
