FastMM4Messages.pas 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. Fast Memory Manager: Messages
  3. Simplified Chinese translation by JiYuan Xie.
  4. }
  5. unit FastMM4Messages;
  6. interface
  7. {$Include FastMM4Options.inc}
  8. const
  9. {The name of the debug info support DLL}
  10. FullDebugModeLibraryName32Bit = 'FastMM_FullDebugMode.dll';
  11. FullDebugModeLibraryName64Bit = 'FastMM_FullDebugMode64.dll';
  12. {Event log strings}
  13. LogFileExtension = '_MemoryManager_EventLog.txt'#0;
  14. CRLF = #13#10;
  15. EventSeparator = '--------------------------------';
  16. {Class name messages}
  17. UnknownClassNameMsg = '未知';
  18. {Memory dump message}
  19. MemoryDumpMsg = #13#10#13#10'由指针所指地址开始, 256 个字节的内存当前的内容 ';
  20. {Block Error Messages}
  21. BlockScanLogHeader = '被 LogAllocatedBlocksToFile 记录的已分配内存块. 大小是: ';
  22. ErrorMsgHeader = 'FastMM 已检测到一个错误, 当时正在进行 ';
  23. GetMemMsg = 'GetMem';
  24. FreeMemMsg = 'FreeMem';
  25. ReallocMemMsg = 'ReallocMem';
  26. BlockCheckMsg = '扫描自由内存块';
  27. OperationMsg = ' 操作. ';
  28. BlockHeaderCorruptedMsg = '内存块头部内容已被破坏. ';
  29. BlockFooterCorruptedMsg = '内存块尾部内容已被破坏. ';
  30. FreeModifiedErrorMsg = 'FastMM 检测到对已释放内存块内容的修改. ';
  31. FreeModifiedDetailMsg = #13#10#13#10'被修改字节的偏移地址(以及长度): ';
  32. DoubleFreeErrorMsg = '试图释放/重新分配一个尚未分配的内存块.';
  33. WrongMMFreeErrorMsg = 'An attempt has been made to free/reallocate a block that was allocated through a different FastMM instance. Check your memory manager sharing settings.';
  34. PreviousBlockSizeMsg = #13#10#13#10'上次使用时的内存块大小是: ';
  35. CurrentBlockSizeMsg = #13#10#13#10'内存块的大小是: ';
  36. PreviousObjectClassMsg = #13#10#13#10'该内存块上次被用于一个属于以下类的对象: ';
  37. CurrentObjectClassMsg = #13#10#13#10'该内存块当前被用于一个属于以下类的对象: ';
  38. PreviousAllocationGroupMsg = #13#10#13#10'分配组是: ';
  39. PreviousAllocationNumberMsg = #13#10#13#10'分配号码是: ';
  40. CurrentAllocationGroupMsg = #13#10#13#10'分配组是: ';
  41. CurrentAllocationNumberMsg = #13#10#13#10'分配号码是: ';
  42. BlockErrorMsgTitle = '检测到内存错误';
  43. VirtualMethodErrorHeader = 'FastMM 检测到对已释放对象的虚方法的调用. 一个访问冲突异常现在将被引发以中止当前的操作.';
  44. InterfaceErrorHeader = 'FastMM 检测到对已释放对象的接口的使用. 一个访问冲突异常现在将被引发以中止当前的操作.';
  45. BlockHeaderCorruptedNoHistoryMsg = ' 不幸地, 由于内存块头部的内容已被破坏, 无法得到该内存块的使用历史.';
  46. FreedObjectClassMsg = #13#10#13#10'被释放的对象所属的类: ';
  47. VirtualMethodName = #13#10#13#10'虚方法: ';
  48. VirtualMethodOffset = '偏移地址 +';
  49. VirtualMethodAddress = #13#10#13#10'虚方法的地址: ';
  50. {Stack trace messages}
  51. CurrentThreadIDMsg = #13#10#13#10'当前线程的 ID 是 0x';
  52. CurrentStackTraceMsg = ', 导致该错误的堆栈跟踪(返回地址): ';
  53. ThreadIDPrevAllocMsg = #13#10#13#10'该内存块上一次分配于线程 0x';
  54. ThreadIDAtAllocMsg = #13#10#13#10'该内存块分配于线程 0x';
  55. ThreadIDAtFreeMsg = #13#10#13#10'该内存块上一次释放于线程 0x';
  56. ThreadIDAtObjectAllocMsg = #13#10#13#10'该对象分配于线程 0x';
  57. ThreadIDAtObjectFreeMsg = #13#10#13#10'该对象随后释放于线程 0x';
  58. StackTraceMsg = ', 当时的堆栈跟踪(返回地址): ';
  59. {Installation Messages}
  60. AlreadyInstalledMsg = 'FastMM4 已经被安装';
  61. AlreadyInstalledTitle = '已经加载';
  62. OtherMMInstalledMsg = 'FastMM4 无法被安装, 因为其他第三方内存管理器已先自行安装.'
  63. + #13#10'如果你想使用 FastMM4, 请确认在你项目的 .dpr 文件的 "uses" 部分中, '
  64. + #13#10'FastMM4.pas 是第一个被使用的单元.';
  65. OtherMMInstalledTitle = '无法安装 FastMM4 - 其他内存管理器已先被安装';
  66. MemoryAllocatedMsg = 'FastMM4 无法安装, 因为此前已通过默认内存管理器分配了内存.'
  67. + #13#10'FastMM4.pas 必须是你项目的 .dpr 文件中第一个被使用的单元, 否则可能在'
  68. + #13#10'FastMM4 得到控制权之前, 应用程序已经通过默认内存管理器分配了内存.'
  69. + #13#10#13#10'如果你使用了异常捕捉工具, 象 MadExcept(或任何将修改单元初始化顺序的工具),'
  70. + #13#10'请到它的配置页面,确保 FastMM4.pas 单元在任何其他单元之前被初始化.';
  71. MemoryAllocatedTitle = '无法安装 FastMM4 - 之前已经分配了内存';
  72. {Leak checking messages}
  73. LeakLogHeader = '一个内存块已泄露. 大小是: ';
  74. LeakMessageHeader = '这个应用程序存在内存泄露. ';
  75. SmallLeakDetail = '小内存块的泄露有'
  76. {$ifdef HideExpectedLeaksRegisteredByPointer}
  77. + ' (不包括已按指针注册的预知泄露)'
  78. {$endif}
  79. + ':'#13#10;
  80. LargeLeakDetail = '已泄露的中等及大内存块的大小是'
  81. {$ifdef HideExpectedLeaksRegisteredByPointer}
  82. + ' (不包括已按指针注册的预知泄露)'
  83. {$endif}
  84. + ': ';
  85. BytesMessage = ' 字节: ';
  86. AnsiStringBlockMessage = 'AnsiString';
  87. UnicodeStringBlockMessage = 'UnicodeString';
  88. LeakMessageFooter = #13#10
  89. {$ifndef HideMemoryLeakHintMessage}
  90. + #13#10'注意: '
  91. {$ifdef RequireIDEPresenceForLeakReporting}
  92. + '只有当 Delphi 同时运行在同一计算机上时才会进行内存泄露检查. '
  93. {$endif}
  94. {$ifdef FullDebugMode}
  95. {$ifdef LogMemoryLeakDetailToFile}
  96. + '内存泄露的详细信息已经被记录到与本应用程序同一目录下的一个文本文件中. '
  97. {$else}
  98. + '请启用 "LogMemoryLeakDetailToFile" 条件编译开关以得到一个包含关于内存泄露的详细信息的日志文件. '
  99. {$endif}
  100. {$else}
  101. + '要得到一个包含关于内存泄露的详细信息的日志文件, 请启用 "FullDebugMode" 和 "LogMemoryLeakDetailToFile" 条件编译开关. '
  102. {$endif}
  103. + '要禁止内存泄露检查, 请关闭 "EnableMemoryLeakReporting" 条件编译开关.'#13#10
  104. {$endif}
  105. + #0;
  106. LeakMessageTitle = '检测到内存泄露';
  107. {$ifdef UseOutputDebugString}
  108. FastMMInstallMsg = 'FastMM 已被安装.';
  109. FastMMInstallSharedMsg = '正共用一个已存在的 FastMM 实例.';
  110. FastMMUninstallMsg = 'FastMM 已被卸载.';
  111. FastMMUninstallSharedMsg = '已停止共用一个已存在的 FastMM 实例.';
  112. {$endif}
  113. {$ifdef DetectMMOperationsAfterUninstall}
  114. InvalidOperationTitle = '卸载之后发生了 MM 操作.';
  115. InvalidGetMemMsg = 'FastMM 检测到在 FastMM 被卸载之后调用了 GetMem.';
  116. InvalidFreeMemMsg = 'FastMM 检测到在 FastMM 被卸载之后调用了 FreeMem.';
  117. InvalidReallocMemMsg = 'FastMM 检测到在 FastMM 被卸载之后调用了 ReallocMem.';
  118. InvalidAllocMemMsg = 'FastMM 检测到在 FastMM 被卸载之后调用了 AllocMem.';
  119. {$endif}
  120. implementation
  121. end.