Skip to main content
Mar 11, 2021 9:29 PM UTC

STOP RUN at line? in program P $ DRAWBITMAP ()

Hello. In my point of sales software, the invoice header is a .bmp which I print with the instruction. Only today on a pc my program does STOP RUN at line? in program P $ DRAWBITMAP (). I have tested the program on all PCs and only on that one does the error occur. I have verified that the .bmp file exists and replaced it with a fresh file. The problem has continued. I have uninstalled and installed rmcobol cobol version 12.17 and the problem continues. All this leads me to think that there is a problem with Windows 10 and rmcobol, can someone help me to know what is happening?

27321 CALL "P$DrawBitmap" USING "milogo.bmp",
27322 IZQUIERDO, TOPE, "Absolute", "Inches",
27323 ANCHO, ALTO, "Inches"
27324 WRITE REG-SAL FROM SPACES AFTER
27325 ADVANCING 1 LINES.

    33 replies

    Dominique Sacre
    Rocketeer
    Mar 22, 2021 7:01 PM UTC
    Good morning, Microsoft has already solved the problem and already has an update that solves the problem, although the automatic update fails if the emergency can be downloaded and installed by hand.

    Thanks!  I am not being offered this update yet, even in optional updates, but I was able to download it and install it from here:

    https://support.microsoft.com/en-us/topic/march-18-2021-kb5001649-os-builds-19041-870-and-19042-870-out-of-band-ebbe0617-3a63-467a-aaaa-2a4c68a6de33  

    For Windows 10 2004 and 20H2, the direct download page:

    https://www.catalog.update.microsoft.com/Search.aspx?q=KB5001649 

    I can confirm that it fixes the P$DRAWBITMAP problem.  Yay!

    Dominique Sacre
    Rocketeer
    Mar 30, 2021 12:18 PM UTC

    Thanks!  I am not being offered this update yet, even in optional updates, but I was able to download it and install it from here:

    https://support.microsoft.com/en-us/topic/march-18-2021-kb5001649-os-builds-19041-870-and-19042-870-out-of-band-ebbe0617-3a63-467a-aaaa-2a4c68a6de33  

    For Windows 10 2004 and 20H2, the direct download page:

    https://www.catalog.update.microsoft.com/Search.aspx?q=KB5001649 

    I can confirm that it fixes the P$DRAWBITMAP problem.  Yay!

    Hi everybody,

    Thanks for the solution regarding Windows 10.

    Do anybody know what is the update for Windows server 2012 R2 ?

    Dominique Sacre
    Rocketeer
    Mar 30, 2021 9:03 PM UTC

    Hi everybody,

    Thanks for the solution regarding Windows 10.

    Do anybody know what is the update for Windows server 2012 R2 ?

    According to Microsoft, KB5001649 should also address this issue on Windows Server 2012 R2:

    https://docs.microsoft.com/en-us/windows/release-health/resolved-issues-windows-10-20h2#1573msgdesc 

    And, the patch update packages for affected Windows Server operating systems should be available on the Microsoft Update Catalog direct link page:

    https://www.catalog.update.microsoft.com/Search.aspx?q=KB5001649 

    However, you will need to download the package for the version(2004 or 20H2), which, matches that of your operating system.

    You can obtain Windows version information either with the "winver" command, or, by following the instructions provided on the following Microsoft support page:

    https://support.microsoft.com/en-us/windows/which-version-of-windows-operating-system-am-i-running-628bec99-476a-2c13-5296-9dd081cdd808#ID0EBBD=Windows_8.1 

     

    **As a note; I have not verified any of this, as, I do not have access to a Windows Server 2012 R2 environment.