•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 363,445 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,234 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser:
Views: 369 | Replies: 3
![]() |
•
•
Join Date: May 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
hello,
i have a problem in my assembly program.
i have a problem with open and create files.
in my program i always open and create a new files ,but after 5-6 open\create ,the program stop working.
i think the problem is that my file handle is not available (after error ,ax=0004).
how it can be? 5-6 time its going very well but after thar their is an error?
i have a problem in my assembly program.
i have a problem with open and create files.
in my program i always open and create a new files ,but after 5-6 open\create ,the program stop working.
i think the problem is that my file handle is not available (after error ,ax=0004).
how it can be? 5-6 time its going very well but after thar their is an error?
•
•
•
•
Moderator's Note
Since the code seemed to break the forum formatting, it has been removed from the post and made into an attachment instead. Please find the code attached in the file 'code.txt'.
Last edited by ~s.o.s~ : May 4th, 2008 at 1:37 pm. Reason: Edited the original post and added the entire code as an attachment.
Phew! Next time make sure you attach your code instead of dumping the entire 1.6K line thing on the message boards.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
> i think the problem is that my file handle is not available (after error ,ax=0004).
According to THIS, the error code means "too many files open".
So I'm going to guess that not all your open's are matched with close's. As such you leak handles then run out of them.
Get the whole Ralph Brown list if you ever want to make serious use of such low-level programming.
According to THIS, the error code means "too many files open".
So I'm going to guess that not all your open's are matched with close's. As such you leak handles then run out of them.
Get the whole Ralph Brown list if you ever want to make serious use of such low-level programming.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
Similar Threads
- New member with a system file problem... (Windows NT / 2000 / XP / 2003)
- Basic File I/O problem (C++)
- can't shut down some download file (OS X)
- help me wth file (C)
- File parsing in 'C' (C)
- Problem Bridge.dll error & Freeze at Desktop (Viruses, Spyware and other Nasties)
- problems with reading random access line from a file (C++)
- aim profile problem (Web Browsers)
Other Threads in the Assembly Forum
- Previous Thread: Help me about Interrupt 10h and functions of interrupt 10h
- Next Thread: Integer Unsigned numbers



Linear Mode