Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
对象在编译到macOS X时被释放_Macos_Delphi_Osx Snow Leopard_Delphi Xe5 - Fatal编程技术网

对象在编译到macOS X时被释放

对象在编译到macOS X时被释放,macos,delphi,osx-snow-leopard,delphi-xe5,Macos,Delphi,Osx Snow Leopard,Delphi Xe5,我正在重写一个在VirtualBox中运行的OSX应用程序。当我编译时,我的所有对象都被释放。我是一个新手程序员,这是我的第一个mac应用程序,所以我甚至不能完全确定这是问题所在 我已将RAD PASServer安装到OS X。在此终端中,我收到以下错误消息: __NSAutoreleaseNoPool(): Object 0x4237a10 of class NSPathStore2 autoreleased with no pool in place - just leaking __N

我正在重写一个在VirtualBox中运行的OSX应用程序。当我编译时,我的所有对象都被释放。我是一个新手程序员,这是我的第一个mac应用程序,所以我甚至不能完全确定这是问题所在

我已将RAD PASServer安装到OS X。在此终端中,我收到以下错误消息:

 __NSAutoreleaseNoPool(): Object 0x4237a10 of class NSPathStore2 autoreleased with no pool in place - just leaking

__NSAutoreleaseNoPool(): Object 0x664dc3c of class NSCFString autoreleased with no pool in place - just leaking
这些只是大量错误消息的两个示例,它们都以uu NSAutoreleaseNoPool开头

RAD Studio XE-5在编译到OS X或Win32目标平台时不会给出任何错误消息

我希望已经充分地通知你了

更新:

我已经在我的表格中添加了一个TCalendarEdit。当我在OS X中单击它时,程序崩溃,我在PASServer终端中收到以下运行时错误消息:

malloc: *** error for object 0x127e99d4: incorrect checksum for freed object - object was probably modified after being freed.
更新2:

似乎不是每个物体都被释放。此代码适用于:

procedure TForm4.Button1Click(Sender: TObject);
begin
  label1.Text := 'bladibla';
end;
当我以这种方式重新创建TCalendarEdit功能时,一切都很好:

var
  CalendarButton: TButton;

procedure TForm4.Button7Click(Sender: TObject);
begin
  Calendar1.Visible := true;
  Calendar1.Position.X := Button7.Position.X;
  CalendarButton := Button7;
end;

procedure TForm4.Calendar1DateSelected(Sender: TObject);
begin
  if CalendarButton = Button6 then
    Button6.Text := DateToStr(Calendar1.Date);
  if CalendarButton = Button7 then
    Button7.Text := DateToStr(Calendar1.Date);

  Calendar1.Visible := false;
end;

究竟是什么产生了这些错误消息?这些是运行时消息?你有任何代码吗?在TCalendarEdit的示例中,我实际上没有代码。请看我的更新。相同的代码在Windows上工作还是特定于OS X?@birger在Windows上一切正常。我只在OSX上有问题