flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > [SUG] free memory in W32 console to support batch operation |
Author |
|
a115433 13 Apr 2010, 06:33
not freeing memory before exit is a serious flaw.
|
|||
13 Apr 2010, 06:33 |
|
Tomasz Grysztar 13 Apr 2010, 08:20
That's another DOS legacy in work - since there memory was naturally freed on exiting, the interface (which was the base for all later ports) didn't have anything like that. Though, perhaps, if I knew that Win32 console works this way, I would have done something with this earlier.
|
|||
13 Apr 2010, 08:20 |
|
TmX 14 Apr 2010, 12:32
I applied this fix on FASM 1.69.13
Now every time I compile a program, FASM will crash. But the program is compiled. I'm on Windows 7, BTW.
|
|||||||||||
14 Apr 2010, 12:32 |
|
revolution 14 Apr 2010, 13:14
TmX: You should use "push" not "call" -
Code: call [memory_start] ;<----use PUSH |
|||
14 Apr 2010, 13:14 |
|
TmX 14 Apr 2010, 14:50
Ah silly me.
Now FASM runs fine. Thanks |
|||
14 Apr 2010, 14:50 |
|
revolution 27 Apr 2010, 01:59
This patch is still needed for fasm 1.69.14
I have fixed it the the fasmarm v1.16 release. |
|||
27 Apr 2010, 01:59 |
|
Tomasz Grysztar 27 Apr 2010, 11:57
Since this is part of interface, not core, they fix doesn't require core version change. Thus I'm just updating the 1.69.14 package.
|
|||
27 Apr 2010, 11:57 |
|
revolution 27 Apr 2010, 12:03
Thanks for fixing. I don't mind making a few patches when each new version comes out, but when those patches get integrated into the official package it makes my life easier.
|
|||
27 Apr 2010, 12:03 |
|
revolution 27 Apr 2010, 12:12
Tomasz: I think that is the first time you have ever included one of my patches without any modification.
I was expecting something like this: Code: movzx ebx,al push MEM_RELEASE 0 [memory_start] call [VirtualFree] push ebx call [ExitProcess] |
|||
27 Apr 2010, 12:12 |
|
Tomasz Grysztar 27 Apr 2010, 12:17
Well, this time I really liked it the way it was.
|
|||
27 Apr 2010, 12:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.