User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 374,004 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 2,759 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: 383 | Replies: 3
Reply
Join Date: May 2008
Posts: 1
Reputation: khyaniv24 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
khyaniv24 khyaniv24 is offline Offline
Newbie Poster

file problem

  #1  
May 3rd, 2008
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?

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.
Attached Files
File Type: txt code.txt (32.6 KB, 1 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 3,040
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 19
Solved Threads: 343
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: file problem

  #2  
May 3rd, 2008
Great, perhaps next time you could read the forum rules of posting formatted code before dumping such a huge mess on a message board.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 6,731
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 323
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Rebellion Revamped

Re: file problem

  #3  
May 4th, 2008
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."
Reply With Quote  
Join Date: Dec 2005
Posts: 3,040
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 19
Solved Threads: 343
Colleague
Salem's Avatar
Salem Salem is offline Offline
void main'ers are DOOMed

Re: file problem

  #4  
May 4th, 2008
> 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.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Assembly Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 10:20 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC