Read-only archive of the All About Symbian forum (2001–2013) · About this archive

mPoupup on S80 does not run ?!

5 replies · 2,114 views · Started 23 February 2005

I have the following code:

LOCAL MenuRet%
MenuRet%=mPOPUP(AtX&,AtY&,2,"Option 1�",%a,"Option 2�",%b,"Option 3�",-%c,"Close",%e)
IF MenuRet%=%e
STOP
ELSEIF MenuRet%=%a
GIPRINT "Option 1 was selected"
ELSEIF MenuRet%=%b
GIPRINT "Option 2 was selected"
ELSEIF MenuRet%=%c
GIPRINT "Option 3 was selected"
ENDIF
ENDP

When I run the code and select an option the program crashes with the messsage "KERN-EXEC No. 3)

Any idea ?

Have you tried substituting integers for the AtX& and AtY&? As far as I can remember they are integer variables, not longs (shouldn't make a difference though). What happens if you do mPOPUP(10,10,....) for example?

Another thing to test is to add an ALERT("mPOPUP closed"😉 directly after the mPOPUP call. If you see the message, then mPOPUP terminates normally and the problem is somewhere else in the code (not very likely though).

I'll also check this in the emulator today (don't have a 9500) and let you know what I find.

Ok, I didn't have time to check it yesterday, but I'll give it a try in the emulator today and let you know.

Fortunately, the bug is reproducable in the emulator. It was probably introduced when the menu compatibility mode was introduced in OPL for EPOC R6.

It's fixed now (need to do some more testing though) so it won't appear in the next release of OPL anymore and you can use mPOPUP without any problems. I'll check when the new version can be released and let you know.

Arjen wrote:Fortunately, the bug is reproducable in the emulator. It was probably introduced when the menu compatibility mode was introduced in OPL for EPOC R6.

It's fixed now (need to do some more testing though) so it won't appear in the next release of OPL anymore and you can use mPOPUP without any problems. I'll check when the new version can be released and let you know.


Any news about new OPL release? I have the same problem on my UIQ phone.

Will new OPL release ever see the light?... :frown: