flat assembler
Message board for the users of flat assembler.

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

Thread Post new topic Reply to topic

Joined: 21 Aug 2004
Posts: 602
Location: Germany
MCD 17 Sep 2004, 13:39
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)
        invoke  SendMessage,ebx,EM_REPLACESEL,TRUE,replace_string

should be changed into:
        push    ebx edi
        invoke  SendMessage,ebx,EM_REPLACESEL,TRUE,replace_string
        pop     edi ebx

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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.