E32USER-CBASE 90

Login to reply to this topic.
Mon, 2008-08-18 11:56
Joined: 2008-08-08
Forum posts: 20

my applications is gettin panic E32USER-CBASE 90 . i know the problem might be iam not popping cbase pointer.but i think all right.so plz help me out.

AttachmentSize
raj1.txt2.89 KB

Mon, 2008-08-18 12:20
Joined: 2005-11-20
Forum posts: 1242
Re: E32USER-CBASE 90

Why don't you debug and tell which line causes the error then?

Errors like that are so easy to find with the help of the debugger.


René Brunner

Mon, 2008-08-18 12:33
Joined: 2008-08-08
Forum posts: 20
Re: E32USER-CBASE 90

in my apllications when dial number matches the ccontact database number ,iam display name in a note there i got error.

AttachmentSize
raj1.txt585 bytes
Mon, 2008-08-18 12:51
Joined: 2005-11-20
Forum posts: 1242
Re: E32USER-CBASE 90

The line with the 'CMapUtil' call, is that the line with the error?

If yes, what's 'CMapUtil'? Who wrote that class?

By the way, it would be better to include smaller code samples directly in your post instead of using attachments.


René Brunner

Mon, 2008-08-18 13:00
Joined: 2004-08-17
Forum posts: 9
Re: E32USER-CBASE 90

For me it seems that if you have both firstNameBuf and MobileNumber in CleanupStack, you are popping them in wrong order. CleanupStack is a stack which means that the last one going in has to be popped out first. So, you should change the order of those two calls to be:

if (firstNameBuf)
CleanupStack::PopAndDestroy(firstNameBuf);

if(MobileNumber)
CleanupStack::PopAndDestroy(MobileNumber);

CBase 90 actually tells this quite clearly: "The panic is raised as a result of a call to the Pop() and PopAndDestroy() static member functions of the CleanupStack class. The panic occurs when an the item to be popped is not the expected item."

Mon, 2008-08-18 14:13
Joined: 2005-11-20
Forum posts: 1242
Re: E32USER-CBASE 90

Well, should have seen that myself, having checked the source code in this regard ....

rajeshpadhiary, if you could not tell the line with the error because you don't really debug, here my standard advice in this situation: Learn how to use emulator and debugger as soon as possible. You won't get very far without them.


René Brunner

Thu, 2008-08-21 08:52
Joined: 2008-08-08
Forum posts: 20
Re: E32USER-CBASE 90

CleanupStack::PopAndDestroy(iContactItem); here iam getting error.

AttachmentSize
raj.txt2.75 KB
raj.txt2.75 KB
Thu, 2008-08-21 10:21
Joined: 2003-12-05
Forum posts: 672
Re: E32USER-CBASE 90

Of course you are getting the panic there, since the iContactItem is not on the top of the cleanup stack but the MobileNumber variable.

You are misusing the cleanup stack big time here. You must make sure, considering the conditional blocks, that everything you push there will be popped out in the correct order. It's a cleanup stack dude. The last thing you push there, must be the one popped out next -- in all conditions, considering your conditional code (if sentences).

And pushing member variables to the cleanup stack is a huge mistake. If your iContactItem really is a member variable, as the name suggests (didn't bother to check) then you will have problems if the leave happens and you correctly delete iContactItem in the class destructor (you will have double delete resulting to a crash).

  • Login to reply to this topic.