delphi ios grid bug

BindSourceDB4.DataSet :=nil;

BindSourceDB4.DataSet :=FDMemTable1;

grid绑定后显示数据正常,第二次赋值BindSourceDB4.DataSet就报错了。RAD berlin 存在此问题。

windows平台下正常,IOS下报错。

Data.Bind.DBScope.pas

function TCustomBindSourceDB.CreateSubDataSource: TDataSource;
begin
  Result := TSubDataSource.Create(Self);
  Result.Name := ‘SubDataSource‘; // Do not localize
  Result.SetSubComponent(True);
end;

procedure TCustomBindSourceDB.SetDataSet(const Value: TDataSet);
var
  LDataSource: TDataSource;
begin
  if Value <> DataSet then
  begin
    if Value <> nil then
    begin
      if (FDataSource = nil) or (not (csSubComponent in FDataSource.ComponentStyle)) then
      begin
        LDataSource := CreateSubDataSource;
        LDataSource.DataSet := Value;
        Self.DataSource := LDataSource;
      end;
    end
    else
      DataSource := nil;
    if FDataSource <> nil then
    begin
      FDataSource.DataSet := Value;
      SetLinks(FDataSource);
    end;
  end;
end;

DataSource := nil;

change to

if DataSource<>nil then      
      DataSource.DisposeOf;
      DataSource := nil;

时间: 2024-11-05 22:39:33

delphi ios grid bug的相关文章

苹果开发证书相关BLOG与Delphi IOS环境安装(超详细)

注:有好的资源,请添加了上传,上传后,通知管理员,删除旧文件,累积相关的学习资源,方便新手学习 一.相关论坛http://www.2ccc.com/ delphi 合子 www.2pascal.com (移动开发群主推论坛)https://quality.embarcadero.com 官方QC,看哪些bug有人提交过了没 http://dn.embarcadero.com/firemonkey EDN 二 相关个人BLOg.文章等: 万一的BLOg--DELPHI大百科全书http://www

Delphi IOS环境安装

http://www.cnblogs.com/cb168/p/4793913.html Delphi IOS环境安装 RAD Delphi XE/10 Seattle 安装IOS.OSX环境安装,IOS模拟器,MAC X 真机可以调试 http://community.embarcadero.com/blogs/entry/rad-studio-trial-fully-testeable http://www.embarcadero.com/starthere/seattle/mobdevset

iOS Orientation bug

Every September now, means pain for the iOS developers. Because you need not only to update to the latest iOS system, but also to support old iOS versions with newer version SDK. More stuff coming, equally amount of stuff deprecated. This bug I encou

Delphi iOS 开启文件共享 UIFileSharingEnabled

Apple 在 iOS 提供了文件共享(FileSharing)功能,让 App 有一个对外窗口的目录,透过 iTunes 可以任意管理这个目录的文档内容(可拖入文档,也能将文档拖出备份). 如果 App 需要文件共享,只需要在 Delphi 的 Project Option 需要加入 UIFileSharingEnabled(如上图)并设定为 true. 开启文件共享后,里面所有的文档会备份到 iCloud,因此 Apple 对这部份的审核比较严格,如果没有必要备份的文档需要关闭,请参考: [

delphi IOS BLE 代理

代理方法 centralManagerDidUpdateState: peripheralManagerDidUpdateState:代理方法. centralManager:willRestoreState peripheralManager:willRestoreState:代理方法 - (void)centralManager:(CBCentralManager *)central willRestoreState:(NSDictionary *)state { NSArray *peri

Delphi IOS 后台运行

audio location voip newsstand-content external-accessory bluetooth-central bluetooth-peripheral fetch remote-notification https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundE

Delphi IOS 上架

http://docwiki.embarcadero.com/RADStudio/Seattle/en/IOS_Mobile_Application_Development https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide_zh_CN/Chapters/UploadingBinariesforanApp.html#//apple_ref/d

ios常见bug

1.Unable to run app in Simulator An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4) 出现上述问题的时候: iOS Simulator -> Reset Contents and Settings... -> Reset 即可恢复正常. 1.Enable NSZombie Objects(开启僵尸对象) Enable NSZombie

delphi vlc 安装bug 处理编译错误"0" is an invalid value for the "DebugInformation" parameter of the "DCC"

处理编译错误"0" is an invalid value for the "DebugInformation" parameter of the "DCC" [摘要:http://blog.csdn.net/jiaxing1208/article/details/38071301 处置惩罚编译毛病"0" is an invalid value for the "DebugInformation" parameter of the "DCC" t