如果两个过程同时更改vcl的属性就会导致你的这个问题,还是查查什么地方在修改captio属性吧

解决方案 »

  1.   

    那好像修改button的caption就没有问题,为什么修改 form的就有问题了?
      

  2.   

    Use ShowModal to show a form as a modal form.  When the form is shown in a modal state, the application can抰 continue to run until the form is closed.To close a modal form, set its ModalResult property to a nonzero value.ShowModal returns value to which the ModalResult property is set when it closes the form.
    简单的解决办法是将两个事件中的showmodal语句换成show;
      

  3.   

    不是一起调用时出现问题,而是showmodal->close->showmodal就出问题了。把showmodal改成show也不行。
      

  4.   

    你的 Form1 是不是主 Form,如果是的话,Close 之后它会被自动 Free 掉,如果不是的话,那绝对不会出问题
      

  5.   

    你不妨检查一下你在Form的Oncreate事件中是否有改变属性的语句,因为Create 后才Show.
      

  6.   

    不是以上的任何问题,而是在onformcreat里有不该有的代码出现了问题。但是,还是给分吧。