delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/05/31/02:08:56

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <556AA560.1060202@iki.fi>
Date: Sun, 31 May 2015 09:08:32 +0300
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi)" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: DJGPP v2.05: some thoughts
References: <55673F0B DOT 1090103 AT iki DOT fi> <5569d1c7$0$3304$426a34cc AT news DOT free DOT fr>
In-Reply-To: <5569d1c7$0$3304$426a34cc@news.free.fr>
X-MIME-Autoconverted: from Quoted-Printable to 8bit by delorie.com id t4V68d9d023030
Reply-To: djgpp AT delorie DOT com

On 05/30/2015 06:06 PM, Damien wrote:
> Hello,
>
> I did some test with this version 2.05 and did not get any problem using it. The change in memory 
> deallocation time is impressive (less than 1s for a bunch of deallocations when it tooks 5s with 
> version 2.04).
>
> Some time ago, I had signaled a trouble with XP NTVDM. The bug is in XP, not in DJGPP, and is 
> still present with Seven, but it could easily be workarounded in DJGPP. You can get the 
> explanation and associated patch in 
> http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp/2005/11/21/15:28:15
> The program that allows showing this is the following:
> #include <stdio.h>
> #include <string.h>
> #include <dir.h>
>
> int main(void) {
>   struct ffblk desc;
>   int status;
>
>   strcpy(desc.lfn_magic, "LFN32");
>   status = findfirst("*", &desc, FA_RDONLY | FA_HIDDEN | FA_SYSTEM | FA_LABEL | FA_DIREC | FA_ARCH);
>   while (status == 0) {
>     printf("%s\n", desc.ff_name);
>     status = findnext(&desc);
>   }
>
>   return 0;
> }
> This program shall be executed in a directoy containing 2 files (one named a_long_filename, 
> second one named €_euro_char) to show the problem.
>
>
Verified problem presence on Windows Vista and tested change.

Applied modified patch. Original patch did not apply due to other source changes.
It happens often when patch is about 10 years OK.

Andris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019