From: "Steven Levine" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTP id 11710874 for ecs-isp@2rosenthals.com; Sun, 05 Jan 2025 02:57:59 -0500 Received: from secmgr-va.randr ([192.168.200.201]:60682 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtp (Exim 4.97.1) (envelope-from ) id 1tULWA-00000000724-1DIT for ecs-isp@2rosenthals.com; Sun, 05 Jan 2025 02:57:50 -0500 Received: from mta-202a.earthlink-vadesecure.net ([51.81.232.240]:58063) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.97.1) (envelope-from ) id 1tULW1-000000003yl-02Dk for ecs-isp@2rosenthals.com; Sun, 05 Jan 2025 02:57:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; bh=Gjfvd+4vFRx7VVIRJ2WFpDTqWwOOS5ZXn3rGiT Uf1eA=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-unsubscribe-post: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=dk12062016; t=1736063859; x=1736668659; b=qMZJc00KCEgE63svp5lff2LxQUJ BCqoTZTU2QUALv1kb8dmODQIu3f5QHqdakLyAAzHJS+B/Bar5L9S4SxY8ablHciKqfgxBap 4W8IgI6jwu5VyfsIkfdnEB/MV6khhvmYPokJJFQRgi9QhhfmqXzZAFNUb1iZvznJCAbQ7Qz 8KAaDT6IpCEL5+6ZU68SCJy2WhhdSgxJo2nLbeZsPrN7jaJRw9xcwKtnEIdUAaswSEWutjP K69RB+Eutu699s83IYflcmcn+gXbbil7DMArReYxQXjeGzviJLSvH3+JIwNM10zq6k7UDrX pb8nDVUuYWV3NrPQHW0JwaMfw6E7/FQ== Received: from slamain ([172.56.178.196]) by vsel2nmtao02p.internal.vadesecure.com with ngmta id 025988c2-1817bce1db39834f; Sun, 05 Jan 2025 07:57:39 +0000 Message-ID: <677a3305.2.mr2ice.fgrirsq@earthlink.net> Date: Sat, 04 Jan 2025 23:21:41 -0800 To: "eCS ISP Mailing List" In-Reply-To: Subject: Re: [eCS-ISP] Getting started with Let's Encrypt X-Mailer: MR/2 Internet Cruiser Edition for OS/2 v3.00.11.24/60 In , on 01/05/25 at 04:51 PM, "Peter Moylan" said: Hi Peter, >This is a long shot. I suspect my problem is unsolvable. Yee of little faith. :-) >Has anyone else had problems with VioWrtCharStr? Not really. It just works as long as you respect the limits. As we know a VIO app cannot have more than 256 threads. Also since under the covers, this is a 16-bit API, any buffers need to be in lower memory or the thunking will fail. >in the execution.) No trap file, no POPUPLOG entry, no symptoms at all >except that the program exits. That's odd. I have to suspect that the exception is hidden by one of the PM exception handlers. >The code in question is > rc := OS2.VioWrtCharStr (p^, amount, CurrentRow,CurrentColumn, 0); > IF rc <> 0 THEN > HALT; > END (*IF*); >The HALT is there because I was searching for a way to discover the value >of rc, but it turns out that the exit occurs before an rc value can be >returned. The parameter values: CurrentRow=19, CurrentColumn=0, amount is >something like 50, and p points to a character string that is guaranteed >not to cross a 64K boundary in memory. I wonder if the modula runtime has a new to us thunking issue. If I compare the above, to what WriteStringAt does there is a difference. Your new code passes a pointer to a buffer. The WritestringAt code copies the string to the stack and passes a pointer to a copy of the buffer on the stack. What happens if you modify the failing code to use WriteStringAt rather calling OS2.VioWrtCharStr? >By stepping through machine instructions I found that the problem is >somewhere in a module called BVHWNDW$, in something called from DOSCALL1, >but I haven't been able to pin it down more precisely than that. This makes sense if you are running your app in a VIO session. BVHWNDW.DLL supports using VIO APIs in a VIO Session which is really a PM window. Will the debugger allow you to step into the BVHWNDW code? If so, what's the last cs:ip before the code goes away? Steven -- ---------------------------------------------------------------------- "Steven Levine" Warp/DIY/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ----------------------------------------------------------------------