symbian s60 上的 XML 解析错误
我对 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
在编译过程中您不会收到这些错误。你在模拟器中运行时确实得到它了吗?
我没有看到:
删除 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?