英文:
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:
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:
> 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年前发布的版本!
- 如果你有现代许可证 - 为什么不使用EurekaLog的最新/现代版本(7.11.x)?
- 如果你确实使用了EurekaLog的最新/现代版本 - 那么这条消息可能不是来自你的应用程序,而是来自某个其他模块(DLL),它是用旧版EurekaLog编译的。
现在,回到问题上来。
当你的应用程序没有嵌入EurekaLog的选项和调试信息时,会显示这条消息。这意味着应用程序没有被后处理以注入所需的信息。
你可以通过使用开始 / 程序 / EurekaLog / 工具 / PE分析器
工具来双重确认这一点,用于分析你编译后的可执行文件。我强烈怀疑它会显示你的应用程序没有EurekaLog的数据。
现在,一旦确认你的应用程序没有使用EurekaLog编译 - 你就必须找出原因。
通常的方法是查看编译器的输出(查看 / 工具窗口 / 消息
,通常位于IDE底部)。那里应该有来自EurekaLog的输出。看看它是否运行或失败。如果失败 - 应该有指示失败原因的信息。
这篇文章包含了一份逐步指南的疑难解答。你说
> 按照文档的步骤操作
你看到/按照那篇文章了吗?它包含了每个步骤和每个正确输出的截图。
如果你仍然无法解决问题 - 请贴出每个步骤描述的截图和输出,特别是回答以下问题:
- 你在IDE中是否看到了EurekaLog的菜单项?
- 你的项目是否通过
项目 / EurekaLog选项
进行了配置? - 你的项目是否将映射文件设置为
详细
? - 你的项目是否定义了
EUREKALOG
条件符号? - 你在IDE的项目编译进度对话框中是否看到了“EurekaLog”阶段?
- 你是否在IDE的构建日志中看到了来自EurekaLog的输出(检查两个选项卡)?如果是的话 - 复制/粘贴它在这里。
- 清除所有旧的
*.dcu
文件并重新安装EurekaLog。有时你的IDE可能会使用旧的和新的EurekaLog文件的混合体。例如,如果你以兼容性模式运行IDE,某些文件可能会进入WindowsVirtualStore
并覆盖实际的/现代的Program Files
文件夹中的文件。 - 如果其他所有方法都失败了 - 检查你是否确实在看正确的可执行文件。
附注:还有一个非常相似的错误,解决步骤类似。
英文:
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!
- If you have a modern license - why you are not using the latest/modern version of EurekaLog (7.11.x)?
- 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:
- Do you see EurekaLog's menu items in IDE?
- Is your project configured via
Project / EurekaLog options
? - Does your project have map file set to
Detailed
? - Does your project have
EUREKALOG
conditional symbol defined? - Do you see "EurekaLog" stage in IDE's project compilation progress dialog?
- Do you see output from EurekaLog in IDE's build log (check both tabs)? If yes - copy/paste it here.
- 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 WindowsVirtualStore
and override the actual / modern files fromProgram Files
folder. - 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论