Menu

#57 dTEXT

open
nobody
runtime (56)
5
2004-03-24
2004-03-24
No

The folllowing code crashes the OPL runtime, on both
the emulator and my P800. Using the 0.50 OPL build.

PROC main:
dINIT
dTEXT "","Hello"
dTEXT "","",KD,KDTextSeparator% REM This is the cuprit.
dTEXT "","Goodbye"
DIALOG
PRINT "Hi"
GET
ENDP

Discussion

  • Pawel Durys

    Pawel Durys - 2004-03-24

    Logged In: YES
    user_id=954979

    Please try this:

    PROC main:
    dINIT
    dTEXT "","Hello"
    REM dTEXT "","",KD,KDTextSeparator% REM This is the cuprit.
    REM What is this ,KD, ?
    REM KDTextSeparator% is defined in Const.oph as $800
    dText "","",$800 REM Creates a separator
    dTEXT "","Goodbye"
    DIALOG
    PRINT "Hi"
    GET
    ENDP

    BTW, The bug is different. If you press Other or OK button
    you should receive a KERN-EXEC error number 3. Only after
    pressing Continue everything works OK.

    Pawel

     
  • Nick Kennedy

    Nick Kennedy - 2004-03-24
    • summary: dTEXT "","",KDTextSeparator% --> dTEXT
     
  • Nick Kennedy

    Nick Kennedy - 2004-03-24

    Logged In: YES
    user_id=732321

    Sorry, mistyped that line. I know it should have an INCLUDE
    Const.oph at the top as well. Oops.

     

Log in to post a comment.

MongoDB Logo MongoDB