flat assembler
Message board for the users of flat assembler.

Index > Windows > Compile Error: "Write Failed"

Author
Thread Post new topic Reply to topic
smoke



Joined: 16 Jan 2006
Posts: 42
smoke 21 Jan 2006, 18:58
hello all Smile , um i'm a newbie asm coder (inspired by fasm , hehehe) and i cant understand whats wrong with this code ?! Confused
Code:
include 'win32ax.inc'

.data
     badCaption   db   'badmsg',0
     badText      db   'badmsg',0
     goodCaption  db   'goodmsg!',0
     goodText     db   'goodmsg',0
.code
     start:
           mov eax,2AEh
           mov ebx,2BCh
           add eax,ebx
           cmp eax,ebx
           jne badboymsg
           invoke    MessageBox,NULL,goodText,goodCaption,MB_OK
           invoke    ExitProcess,0

     badboymsg:
               invoke    MessageBox,NULL,badText,badCaption,MB_OK
               invoke    ExitProcess,0
.end start
    


when i try to compile the sources it pops an error out and it says "Write Failed" ! um plz dont laugh at the app because im still getting to know with fasm Smile
Post 21 Jan 2006, 18:58
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 21 Jan 2006, 19:09
You must have this executable still running somewhere in background.
Post 21 Jan 2006, 19:09
View user's profile Send private message Visit poster's website Reply with quote
smoke



Joined: 16 Jan 2006
Posts: 42
smoke 21 Jan 2006, 21:30
thats probably it , now it works ! um btw Tomasz i really admire your work ! well done and keep up the good work !
Post 21 Jan 2006, 21:30
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 23 Jan 2006, 10:40
@smoke: Usually I get such errors if the program:
1) is in an infinite loop
2) is being debugged at the moment
3) is being viewed under blocking hex-editor

All these problems arise because the executable is being USED and you can't write to it.
Post 23 Jan 2006, 10:40
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 23 Jan 2006, 17:09
press CTRL+ALT+DEL to get into task manager, find process whose name is same as executable's name and stop it
Post 23 Jan 2006, 17:09
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.