News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

troubles with 48h function

Started by ghjjkl, June 23, 2014, 05:01:58 PM

Previous topic - Next topic

ghjjkl

thank you all, finally it works! Set you /CPARMAXALLOC for the greater good   :t

ghjjkl

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

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

#18
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.   :(

dedndave

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

hmfff ax=0005h but CF is turned off... magick

sinsi

DOS standard handles
  0000 STDIN
  0001 STDOUT
  0002 STDERR
  0003 STDAUX
  0004 STDPRN
So the next free handle would be...0005 (with NC)
🍺🍺🍺

dedndave

if the carry flag is clear, no error
well - that's how it's supposed to work

ghjjkl

i dont know why but now it appears to work!  :biggrin: