在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
今天在测试Datasnap服务器时,运行如下代码时出现如上错误,事件赋值时,搞了半天无解,最后竟然是窗体创建顺序搞错了,低级错误。 procedure TMainForm.FormCreate(Sender: TObject); begin ReportMemoryLeaksOnShutdown := false; ServerContainer1.DSAuthenticationManager1.OnUserAuthenticate:=DSAuthenticationManagerUserAuthenticate; ServerContainer1.DSAuthenticationManager1.OnUserAuthorize:=DSAuthenticationManagerUserAuthorize; ServerContainer1.DSServer1.OnConnect:=DSServerConnect; ServerContainer1.DSServer1.OnDisconnect:=DSServerDisconnect; PageControl1.ActivePageIndex:=0; ReadConfig; end; |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论