flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Fixed FasmIDE bug which caused replaces to quit prematurely

Author
Thread Post new topic Reply to topic
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany
MCD
I found a simple way to fix the bug, which apparently occurs only on windows98 (95,ME) in the Fasm IDE if one tries to replace sequences of strings with the replace dialog. Since somewhere between version 1.46 and version 1.55, the IDE quits prematurely after the FIRST replace is done even if one clicked "yes" to continue.

This behaviour is caused due to a bug (destroyed registers) in the message handling from Windows 98.

A simple workaround would be to change just 3-4 lines in the FasmW.asm file:
(old code starting at line 1368)
Code:
      .replace:
        invoke  SendMessage,ebx,EM_REPLACESEL,TRUE,replace_string
      .replace_next:
    

should be changed into:
Code:
      .replace:
        push    ebx edi
        invoke  SendMessage,ebx,EM_REPLACESEL,TRUE,replace_string
        pop     edi ebx
      .replace_next:
    

_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 17 Sep 2004, 13:39
View user's profile Send private message 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-2019, Tomasz Grysztar.

Powered by rwasa.