News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Very serious bug!

Started by ramguru, February 12, 2006, 01:23:40 PM

Previous topic - Next topic

ramguru

I have the code below:

.486                      ; create 32 bit code
.model flat, stdcall      ; 32 bit memory model
option casemap :none      ; case sensitive

include    \poasm\include\kernel32.inc
includelib \poasm\lib\kernel32.lib

HEXEDIT STRUCT
_font  dd ?
colors dd 12 DUP ?
HEXEDIT ENDS

.data
hexed HEXEDIT <>
.code
start:
    mov    hexed._font, 1
    invoke ExitProcess, 0
end start



I know that the code isn't correct, should be [colors dd 12 DUP (?) ]. By pressing Build I expect one or two error reports and guess what I get... Actually the same error is reported far more times than once  :tdown - INFINITE LOOP and CPU ~100% usage. ...yep that's what I get. Of course then I must kill poasm process.

Vortex

Yes, you are right. The infinite loop outputs the message :

error: Invalid use of '{error}'.

The statement
colors dd 12 DUP (?)
solves the problem.