无法在模块中使用Eureka日志功能。

huangapple go评论64阅读模式
英文:

Can not use Eureka Log function in module

问题

I am getting some error while running my Delphi XE2 application with Eureka log. I have a licensed copy of Eureka Log and follow all the steps as per document, but still getting the error below:

无法在模块中使用Eureka日志功能。

EurekaLog 7.0.7.1 crash report

Cannot use EurekaLog's functions in module (censored) without activated EurekaLog.<br>
Use IDE's "Project/EurekaLog Options..." menu item to activate EurekaLog.

This error is coming when I try to run the application. Compiler directives are correct and all the included files and components are also correct. My application was working fine 3 months ago but suddenly it stopped.

I checked the license: it is up-to-date. Checked Project/Eureka Log Options as well: everything is good.

英文:

I am getting some error while running my Delphi XE2 application with Eureka log. I have a licensed copy of Eureka Log and follow all the steps as per document, but still getting the error below:

无法在模块中使用Eureka日志功能。

> EurekaLog 7.0.7.1 crash report
>
> Cannot use EurekaLog's functions in module (censored) without activated EurekaLog.<br>
> Use IDE's "Project/EurekaLog Options..." menu item to activate EurekaLog.

This error is coming when I try to run the application. Compiler directives are correct and all the included files and components are also correct. My application was working fine 3 months ago but suddenly it stopped.

I checked the license: it is up-to-date. Checked Project/Eureka Log Options as well: everything is good.

答案1

得分: 2

以下是翻译好的内容:

房间里的大象:

> 我检查了许可证,它是最新的

你的截图显示EurekaLog版本为7.0.7.1。这是10年前发布的版本!

  1. 如果你有现代许可证 - 为什么不使用EurekaLog的最新/现代版本(7.11.x)?
  2. 如果你确实使用了EurekaLog的最新/现代版本 - 那么这条消息可能不是来自你的应用程序,而是来自某个其他模块(DLL),它是用旧版EurekaLog编译的。

现在,回到问题上来。

当你的应用程序没有嵌入EurekaLog的选项和调试信息时,会显示这条消息。这意味着应用程序没有被后处理以注入所需的信息。

你可以通过使用开始 / 程序 / EurekaLog / 工具 / PE分析器工具来双重确认这一点,用于分析你编译后的可执行文件。我强烈怀疑它会显示你的应用程序没有EurekaLog的数据。

现在,一旦确认你的应用程序没有使用EurekaLog编译 - 你就必须找出原因。

通常的方法是查看编译器的输出(查看 / 工具窗口 / 消息,通常位于IDE底部)。那里应该有来自EurekaLog的输出。看看它是否运行或失败。如果失败 - 应该有指示失败原因的信息。

这篇文章包含了一份逐步指南的疑难解答。你说

> 按照文档的步骤操作

你看到/按照那篇文章了吗?它包含了每个步骤和每个正确输出的截图。

如果你仍然无法解决问题 - 请贴出每个步骤描述的截图和输出,特别是回答以下问题:

  1. 你在IDE中是否看到了EurekaLog的菜单项?
  2. 你的项目是否通过项目 / EurekaLog选项进行了配置?
  3. 你的项目是否将映射文件设置为详细
  4. 你的项目是否定义了EUREKALOG条件符号?
  5. 你在IDE的项目编译进度对话框中是否看到了“EurekaLog”阶段?
  6. 你是否在IDE的构建日志中看到了来自EurekaLog的输出(检查两个选项卡)?如果是的话 - 复制/粘贴它在这里。
  7. 清除所有旧的*.dcu文件并重新安装EurekaLog。有时你的IDE可能会使用旧的和新的EurekaLog文件的混合体。例如,如果你以兼容性模式运行IDE,某些文件可能会进入Windows VirtualStore并覆盖实际的/现代的Program Files文件夹中的文件。
  8. 如果其他所有方法都失败了 - 检查你是否确实在看正确的可执行文件。

附注:还有一个非常相似的错误,解决步骤类似

英文:

The elephant in the room:

> I checked license it is up-to-date

Your screenshot says EurekaLog version is 7.0.7.1. It was released 10 years ago!

  1. If you have a modern license - why you are not using the latest/modern version of EurekaLog (7.11.x)?
  2. If you are using the latest/modern version of EurekaLog - then this message comes not from your application, but perhaps from some other module (DLL), which was compiled with old EurekaLog version.

Now, back to the question.

The message is displayed when your application does not have embedded EurekaLog's options and debug information. This means that the application was not post-processed to inject required information.

You can double-confirm this by using the Start / Programs / EurekaLog / Tools / PE Analyzer tool for your compiled executable. I highly suspect that it will show you that your application does not have EurekaLog's data on board.

Now, once you have confirmed that your application was not compiled with EurekaLog - you have to find the reason why that is.

The usual way would be to look at the compiler's output (View / Tool Windows / Messages, usually located at the bottom of the IDE). There should be output from EurekaLog there. See if it runs or chokes. If it fails - there should be a reason indicated.

This article contains a troubleshooting guide with step by step instructions. You said

> follows all the steps as per document

Did you see / follow that article? It contains screenshots of every step and every correct output.

If you still fail to resolve your issue - please, post screenshots and outputs from each step described in your article, specifically - answer the following questions:

  1. Do you see EurekaLog's menu items in IDE?
  2. Is your project configured via Project / EurekaLog options?
  3. Does your project have map file set to Detailed?
  4. Does your project have EUREKALOG conditional symbol defined?
  5. Do you see "EurekaLog" stage in IDE's project compilation progress dialog?
  6. Do you see output from EurekaLog in IDE's build log (check both tabs)? If yes - copy/paste it here.
  7. Wipe all old *.dcu files and reinstall EurekaLog. Sometimes it is possible that your IDE will use a mix of old and new EurekaLog's files. For example, if you run your IDE in compatibility mode, some files may go into Windows VirtualStore and override the actual / modern files from Program Files folder.
  8. If everything else fails - check if you are actually looking at the correct executable.

P.S. There is also a very similar error with similar resolution steps.

huangapple
  • 本文由 发表于 2023年5月22日 22:29:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/76307228.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定