Delphi打开窗体时报"Corrupt Portfolio Stream"

今天在打开一个Delphi窗体时报了这么一个错误:

  Corrupt Portfolio Stream

查了一下,主要是由于Delphi窗体的*.ddp文件损坏引起的.

解决方法: 删除.ddp 文件,重新打开窗体即可。

有时候还是不行,这个时候用记事本打开 那个.dfm文件,通常窗体都是以Text形式存储的,如果发现是二进制代码,那么八成窗体文件也坏了,这个时候删除这个窗体文件, 把 *.~dfm备份文件改名字成 *.dfm ,然后就可以了。

关于*.ddp file,

Delphi Diagram Portfolio (*.ddp) files contain documentation diagrams created with Diagram tab near the bottom right corner of the Editor window. For more information, please see the "About the Diagram page" Delphi Help topic. 

原文地址:https://www.cnblogs.com/cpprun/p/2660746.html