Whats new:

2.2.0.1
o Added support for C/C++ (CppParse.dll)
o Added delete to start of line (Ctrl+Shift+BackSpace)
o Added delete to end of line (Ctrl+Shift+Delete)
o Fixed some code block bugs (cpp) in RAEdit
o Fixed some comment block bugs (cpp) in RAEdit
o Fixed some DBCS (Chinese) problems in RAEdit.
0 Added Collapse addin. Saves collapsed blocks to project file.
o Fixed bugs in AlexMenu addin.
o Added masmType.api file. Improves data type parsing in masm.

KetilO
Posted on 2005-05-04 04:51:01 by KetilO
Collapse addin doesn't work for me.
I installed it. Collapsed some blocks. Closed project. Opened it again, the blocks weren't collapsed.
Posted on 2005-05-06 05:41:33 by The Svin
Strange

The addin is very simple. Are the states saved to the project file?

KetilO
Posted on 2005-05-06 06:20:16 by KetilO
I'm not sure how should they look like, IMHO - no, I can not see anything relative to block collapsing.
Posted on 2005-05-06 07:00:19 by The Svin
There is also remaining problem with F2 feature, sometimes it works OK, sometimes (mostly) in my machine after F2 pressed - RadAsm goes into some endless job, not responding to any action from the user.
Posted on 2005-05-06 07:25:17 by The Svin
In the project file you should find something like this:

6=0,0,0,0,0,0,0,0,0,0,0,0,-1073717248,8192,0,0,0,0,0,0
2=0
24=0,0,0
34=0,0

Try to download a complete RadASM from the website.

KetilO
Posted on 2005-05-06 08:08:30 by KetilO
No Collapse section in my rap.
May it's this way 'cause the project had been started (created) before the addin was installed?
Posted on 2005-05-06 10:00:59 by The Svin
No, does not matter.
Did you activate the addinn with addin manager?

KetilO
Posted on 2005-05-07 02:45:40 by KetilO
Yes, I did. As I wrote in the first post "I installed it. Collapsed some blocks...."
"I installed it" means here I installed in with the Addin Manager. It's active now.
BTW. What is difference in "full install"?
I replaced the following with your latest download package:
RACad.dll
RACodeComplete.dll
RadASM.exe
RAEdit.dll
RAFile.dll
RAGrid.dll
RAHexEd.dll
SprSht.dll
WBDll.dll

Isn't it enough to make things work?
Posted on 2005-05-07 15:58:07 by The Svin
You must also replace the addins and update the ini files.

KetilO
Posted on 2005-05-08 03:28:26 by KetilO
I updated addinns.
As to inis - I hesitate to replace them blindly, since over years there are many manully setted lines to customise. Usually when appropriate you inform us in partial packages what and how should be added or changed in the inis. I've been updating inis according your notes and usually it was enough to do so.
Might be you can tell me - what sections in the inis relate to saving collapsing positions and how to change or write in them to make things work?
I'm using just masm  (though dreaming to set it also for PICs ;))
Posted on 2005-05-08 04:39:46 by The Svin
There is nothing in the ini files except the addin itself and the block definitions
Obviously the open collapsed option will override the addin.

radasm.ini

xx=Collapse.dll,0,1

masm.ini

1=$ proc,? endp,,,6
2=.if,.endif,.elseif,.else,0
3=.while,.endw,.break,,0
4=$ struct,? ends,,,6
5=$ struc,? ends,,,6
6=$ macro,endm,,,14
7=.data,,,,16
8=.data?,,,,16
9=.const,,,,16
10=BEGIN,END,,,0
11=Method,MethodEnd,,,6
12=Object,ObjectEnd,,,4
13=Switch,endsw,Case,Default,0
14=;##\,;##/,,,4
15=.code,,,,16

KetilO
Posted on 2005-05-08 05:12:27 by KetilO
Hi!

> xx=Collapse.dll,0,1

Is the first zero required? I have removed them from my ini file.. so if I should put them back, do they need to be there for every adding?
Posted on 2005-05-08 05:37:40 by Milos
It seems to me that I know the area (not a particular cause though) where the problem is.
I usually work in WinNT 4.0
There have been to persisting problems: F2 goes into internal loop, and collapse-save problem.
It tried my RadAsm package whithout any changes in WinXP.
None of the mentioned problems appeared in WinXP.
More info - in files that were involved in WinNT in the two operations (F2 and Collapse Save) WinXP found errors.
I hope I can make carefull assumpion that the problem is in the way that RadAsm handling file operations while doing work for F2 feature and Collapse Save.
You see, most of the times when RadAsm goes into infinite loop after F2 pressed the file that has the "declare" of word under cursor wasn't open. So bad things happen somewhere after opening file to find declare in. Collapse save also needs to write in file.
And it's done well in XP but not in NT 4.0.
RadAsm is using some methods (algos) to perform those file relative operations that works for 2000 and XP but not for NT.
To find a problem cause you need to find it working in NT.
Posted on 2005-05-08 05:51:05 by The Svin
before anything you pardon by the language, the English is not my first language.
I believe that I have found a bug, or on the contrary that is what I am making bad.
in the example that I put it sees what I mean, collapse the text block, but sometimes
it is not possible to be uncollapse, why?


block 0

.if 0
.elseif 1
.elseif 2
.else
.endif

block 1

.if 0
0 ; <- what happens!!
.elseif 1
1 ; <- what happens!!
.elseif 2
2 ; <- what happens!!
.else
3 ; <- what happens!!
.endif



both blocks are equal, one before and another one later, only to show the example.
with ".if/.elseif/.else/.endif" the bug is random, with "switch/case/endsw" the bug is always.
in order to fix the "failure", I select all the block and I indent it (F9), of that way the lines
that before were hidden return to appear.

radasm perhaps the best IDE never created.

a greeting and thanks
Posted on 2005-05-08 10:59:46 by denise_amiga
Hi Milos

>  xx=Collapse.dll,0,1

The 0 (default) is the parameter (options), the 1 (default) tells radasm to load the dll.

>  xx=Collapse.dll == xx=Collapse.dll,0,1

KetilO
Posted on 2005-05-08 15:24:18 by KetilO
Hi The Svin

I don't have access to NT 4

The only file access by the collapse addin is read and write to ini (project) file.

This is part of the collapse addin code.

mov eax,.ADDINDATA.nRadASMVer
.if eax>=2201
mov eax,RAM_EDITOPEN or RAM_EDITCLOSE
.else
;Don't hook anything
xor eax,eax
.endif


It means that you must have at least RadASM.exe version 2.2.0.1 for the addin to work.

KetilO
Posted on 2005-05-08 15:33:32 by KetilO
Hi denise_amiga

I can't make the collapse / expand fail.
Both the if and the switch blocks works well.
Could you state the version of RadASM and also post what your
section looks like.

KetilO
Posted on 2005-05-08 15:38:28 by KetilO
It means that you must have at least RadASM.exe version 2.2.0.1 for the addin to work.
Of course I have it, and it works on XP, I just suggested that most probably the reson it doesn't work on NT (as F2 feature that creates constant problem) is somhow related to file open\read operations. If I were you I'd look if there is something iffy over the actions parts that involve file operation.
You see problen with collapse - is something that 'cause RadAsm not possible to write to file,
problem with F2 - something related to opening\reading to file.
Kinda "debug" version that would monitor (through mesboxes or other way) activity of RadAsm related to file operation could help, I could try then it on NT.
Let RadAsm say something - does it actually writes to file? what it can say about errors if any during opening\writing to file? The same about F2 feature - what happens why it went into infinite loop? Does RadAsm think it opens the file well or what?
Posted on 2005-05-08 19:10:30 by The Svin
hi ketilo.

in masm.ini:

...

1=$ proc,? endp,,,6
2=.if,.endif,.elseif,.else,0
3=.while,.endw,.break,,0
4=$ struc,? ends,,,6
5=$ struct,? ends,,,6
6=$ macro,endm,,,14
7=.data,,,,16
8=.data?,,,,16
9=.const,,,,16
10=BEGIN,END,,,0
11=Method,MethodEnd,,,6
12=Object,ObjectEnd,,,4
13=switch,endsw,case,default,0
14=;##\,;##/,,,4
15=.code,,,,16
...

in radasm.ini:

...

1=AddinMana.dll,1
2=BitMask.dll,1,1
3=Collapse.dll,0,1
4=DlgToWin.dll,1,1
5=flipcase.dll,159,1
6=RadHelp.dll,1,1
7=RADbg.dll,0,1
8=ReallyRad.dll,1,1
...

radasm ver 2201

windows pro xp sp2
Posted on 2005-05-09 02:39:38 by denise_amiga