flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > FASM write failed message (possibly bug in X86_64.INC) |
Author |
|
Tomasz Grysztar 26 Nov 2011, 23:52
fasm's error handling is exception-like, the error can be signaled at any time, the stack cleanup is usually not necessary because the compiling process or thread is ended, and where the single-threaded program needs to continue, as in FASMD, the stack pointer is restored manually to its initial state.
As for the "write error", it is usually related to something locking the output file (like the program still running), I don't know what could be the reason in your case. Are you able to find some steps to reproduce it consistently? Is the problem happening with FASMW? As a side note: If this is a problem specific to FASMW, then the report should go to "IDE development". |
|||
26 Nov 2011, 23:52 |
|
ouadji 27 Nov 2011, 00:08
shutdownall, upload your file. |
|||
27 Nov 2011, 00:08 |
|
AsmGuru62 27 Nov 2011, 11:29
It usually happens when you forget to call PostQuitMessage in your WM_DESTROY case. If you writing for Windows.
|
|||
27 Nov 2011, 11:29 |
|
shutdownall 27 Nov 2011, 14:23
1. The problem is with FASMW (IDE version) - I will open a new thread there.
2. I thought that maybe stack would be restored in another way after stopping program but was not sure. I just found this while porting the code to Z80 instructions. Quote: shutdownall, upload your file. I think this is not really a necessary step because it's an internal error of FASMW. The maybe interesting point is that I compile a FASMW source file with modified components which has the same name FASMW but is in another directory. Only changed components are tables.inc and load a z80.inc instead of a x86_64.inc. Anyway this error should not happen regardless which software I compile because it's in the inside of FASMW and don not must happen at all. It's not very stable, I can reproduce it when it happens till I close the FASMW compiling the other FASMW but can not reproduce stable. Sometimes it is working after restart, sometimes I have to kill FASMW in the task manager because after a new start of FASMW the error is still there. When stopped over task manager the Z80 version of FASMW is compiled without change of my source without error. So I would say there is not an error in my source. Of course I close always the Z80 version of FASMW. So maybe FASMW is still thinking FASMW Z80 version is still running but is always closed via right mouse click "close" which should be similar to ALT-F4. I thought it has to do with size of code but as I stripped many lines from x86_64.inc (which is about 143kB, z80.inc is about 99kB). I also changed memory in options => compiler setup => memory from 16kB to maximum 64kb but this does not affect the problem. Maybe any more ideas ? |
|||
27 Nov 2011, 14:23 |
|
shutdownall 27 Nov 2011, 14:26
Please answer here:
http://board.flatassembler.net/topic.php?p=137371#137371 |
|||
27 Nov 2011, 14:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.