delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/06/28/12:18:30

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Sun, 28 Jun 2009 11:11:10 -0500
From: "Charles Sandmann" <cwsdpmi AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <86e53db7-9815-42a4-a7bc-bcf5276da9a4 AT p18g2000pra DOT googlegroups DOT com>
Subject: Re: strange problem with disk operations
Date: Sun, 28 Jun 2009 11:10:47 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Message-ID: <1ZidnRhYjtuDC9rXnZ2dnUVZ_s6dnZ2d@earthlink.com>
Lines: 40
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 64.91.192.48
X-Trace: sv3-SAQNtolHqm9Cc78nBPBYYUcsYmkPi7LJgVTweqpXJ0JouVq/oIuafmqn0ssy3lV+XoThNBt7zxnsy7P!V5d+7/+N571fhLQlqRfJCJ7SGrfLescRmZGyXm/nzVgR0zEsJsS/bXszqqNdWlOrbey2Ukc8pSTS!8Tc9yMG8tdTthnRTFYLwFzF/pJiQRS0=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
X-Original-Bytes: 2952
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"paravashu" <paravashu AT gmail DOT com> wrote in message 
news:86e53db7-9815-42a4-a7bc-bcf5276da9a4 AT p18g2000pra DOT googlegroups DOT com...
>i m facing a strange problem with disk reads and writes through
> __dpmi_int API.
> I am trying to perform DISK reads/writes from USB (which is also a dos
> bootable). but the programs always hangs at a particular LBA value.
> very wierd behaviour..some times load error..comes...some other times
> no swap file error comes... some times crashes...:-)

Assuming you are using CWSDPMI.  Hangs and strange behavior can
come from over running the 16-bit internal stack.  Some bad Int 13
providers have been demonstrated to have excessive stack usage.
See http://clio.rice.edu/djgpp/r5bug01.txt for an example.  This might
explain why it works on one machine, but not another.

One way to analyze this is using http://clio.rice.edu/djgpp/bigstack.zip or
http://clio.rice.edu/djgpp/stacksiz.zip to see if stack overrun is the
problem.

> But with the same setup , ghost works perfectly witout any error.

Depending on which version of Ghost is used, and if it uses int 13,
that might not be important.

> the same setup n environment on a different machine works perfectly
> without any error with our application.

That points to something machine specific.  Is the USB device the
same?  If so, that points to the machine BIOS, memory size, or
memory layout.

> The problem is obvserved when we run the application from USB. please
> clarify as to why this is happening...
> just not able to find the cause of the problem at 11th time when we
> issue the __dpmi_int(0x13,&regs); interrupt.

Difficult to diagnose without very detailed information, such as the EXACT
messages to the screen each time it hangs. 


- Raw text -


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