在Delphi6中服务器的线程有以下几种:
single
apartment
free
both我设置成both模式
  TComponentFactory.Create(ComServer, Trsgl,
    Class_rsgl, ciMultiInstance,tmboth);
在客户端退出是服务器要报错:说该程序执行了非法操作,在MSVCRT.DLL中导致无效的页面。如果设置成以下就不会包错
  TComponentFactory.Create(ComServer, Trsgl,
    Class_rsgl, ciMultiInstance);
这是怎么一回事?