Author Topic: troubles with 48h function  (Read 6026 times)

ghjjkl

  • Member
  • **
  • Posts: 53
Re: troubles with 48h function
« Reply #15 on: June 24, 2014, 10:03:51 PM »
thank you all, finally it works! Set you /CPARMAXALLOC for the greater good   :t

ghjjkl

  • Member
  • **
  • Posts: 53
Re: troubles with 48h function
« Reply #16 on: June 24, 2014, 11:19:02 PM »
but still one thing. Could you tell me, why doesnt file open? I use function 3dh, al=0, but after int 21h i get ax=05h=access denied. What should i do to open that file?

FORTRANS

  • Member
  • ****
  • Posts: 946
Re: troubles with 48h function
« Reply #17 on: June 25, 2014, 01:08:22 AM »
Hi,

   Access denied usually means that you don't have access rights
to the file (ownership), or the file has been opened by another
process and will not share it.  You can try Function 59H , Get
Extended Error, to get more information about why the error
occurred, and possible actions to take.

   Without seeing your code that is about all that can be said.

HTH,

Steve N.

ghjjkl

  • Member
  • **
  • Posts: 53
Re: troubles with 48h function
« Reply #18 on: June 25, 2014, 05:15:38 AM »
hmfff when i use afdpro, ax=0008h(insufficient memory), but when i use td, ax=0002h(file not fount),(when i use function 59h) so what if i created this file in my program? I wrote some data to it, an then closed it, and all bytes were written correctly.   :(
« Last Edit: June 26, 2014, 05:15:53 AM by ghjjkl »

dedndave

  • Member
  • *****
  • Posts: 8751
  • Still using Abacus 2.0
    • DednDave
Re: troubles with 48h function
« Reply #19 on: June 25, 2014, 05:22:06 AM »
very few forum members are familiar with AdfPro
one logical guess might be that the AdfPro debugger EXE allocates all available memory to itself
so, when you try to access it, none is available

i.e., not necessarily the fault of your code   :biggrin:

ghjjkl

  • Member
  • **
  • Posts: 53
Re: troubles with 48h function
« Reply #20 on: June 25, 2014, 05:55:59 AM »
hmfff ax=0005h but CF is turned off... magick

sinsi

  • Member
  • *****
  • Posts: 1004
Re: troubles with 48h function
« Reply #21 on: June 25, 2014, 08:15:57 AM »
DOS standard handles
  0000 STDIN
  0001 STDOUT
  0002 STDERR
  0003 STDAUX
  0004 STDPRN
So the next free handle would be...0005 (with NC)
I can walk on water but stagger on beer.

dedndave

  • Member
  • *****
  • Posts: 8751
  • Still using Abacus 2.0
    • DednDave
Re: troubles with 48h function
« Reply #22 on: June 25, 2014, 11:50:52 AM »
if the carry flag is clear, no error
well - that's how it's supposed to work

ghjjkl

  • Member
  • **
  • Posts: 53
Re: troubles with 48h function
« Reply #23 on: June 25, 2014, 06:07:10 PM »
i dont know why but now it appears to work!  :biggrin: