symbian s60 上的 XML 解析错误

发布于 2024-09-07 09:07:19 字数 776 浏览 1 评论 0原文

我对 Carbide C++ 有疑问。

我正在尝试使用诺基亚论坛的功能来读取 xml 文件。于是我找到了这篇文章: http://wiki.forum.nokia.com/index.php/How_to_parse_XML_file_using_CParser_class

我创建了 XmlHandle.h 和 XmlHandle.cpp 文件。

但我不知道如何使用这个。

我尝试这样的事情:

_LIT( KConfigFile, "config.xml" );
(...)
CXmlHandler* iXmlHandler;
<br>iXmlHandler = CXmlHandler::NewL();
TFileName fileName;
fileName.Append( KConfigFile );
iXmlHandler->StartParsingWithAoL( fileName );

但是当我尝试编译项目时,我收到此错误:

No source available for "0x2539636( ekern.exe )() "
Thread myProject::myProject Panic ALLOC: 3bcb1558

有人能告诉我我能做什么吗?谢谢。

I have a problem with Carbide C++.

I'm trying to use function from Nokia Forum to read xml files. So I found this article:
http://wiki.forum.nokia.com/index.php/How_to_parse_XML_file_using_CParser_class

And I've created a XmlHandle.h and XmlHandle.cpp files.

But I don't know how I can use this.

I try something like this:

_LIT( KConfigFile, "config.xml" );
(...)
CXmlHandler* iXmlHandler;
<br>iXmlHandler = CXmlHandler::NewL();
TFileName fileName;
fileName.Append( KConfigFile );
iXmlHandler->StartParsingWithAoL( fileName );

But when I try to compile project I am receiving this error:

No source available for "0x2539636( ekern.exe )() "
Thread myProject::myProject Panic ALLOC: 3bcb1558

Can someone tell me what can I do? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青春有你 2024-09-14 09:07:19

ALLOC 恐慌意味着您还没有释放一些资源。我猜想 StartParsingWithAoL 离开了,并且 iXmlHandler 没有被删除(要么它是一个没有在析构函数中删除的成员变量,要么它是一个没有放入清理堆栈的局部变量)。如果不看到更多代码,就很难了解更多信息。

ALLOC panic means you haven't freed some resources. I guess the StartParsingWithAoL leaves, and the iXmlHandler isn't deleted (either it's a member variable that isn't deleted in destructor, or it's local variable that you haven't put on the cleanup stack). It's hard to tell more without seeing more code.

我恋#小黄人 2024-09-14 09:07:19

在编译过程中您不会收到这些错误。你在模拟器中运行时确实得到它了吗?
我没有看到:

删除 iXMLHandler;

这个错误到底发生在你的代码中的什么地方?

You don't get these errors during compilation. Did you get it actaully when running in emulator?
I don't see :

delete iXMLHandler;

Where exactly in your code does this error occure?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文