The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: KetilO on March 11, 2009, 02:38:00 PM

Title: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 11, 2009, 02:38:00 PM
Whats new:
----------------
o Added resource type RT_HTML
o Code lines now has a yellow indicator for unsaved chanees, green for saved changes.
o Better code complete support for C/C++ (locals (Ctrl+Shift+Space) and casted structures).
0 Added protection against malicious project files (.rap). A dialog shows the command that will be
  executed. It is up to you to accept the command or not. There is also a 'Don't ask again' option.
  Even with this added protection you should always open a project file from a non trusted source
  in text edit mode (File / Open File) and verify that it not executes any suspicious commands.
o Fixed RadASM Project File (.rap) Stack-Based Buffer Overflow Vulnerability.
o Fixed bug with environment variable that caused crash on win 2000.

Get it here:
https://fbedit.svn.sourceforge.net/svnroot/fbedit/RadASM/RadASM2216.zip

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: donkey on March 11, 2009, 03:45:12 PM
Hi Ketil,

Having a bit of a problem with comment blocks, when I use GoAsm /*...*/ comments it uses the comment color for everything to the end of the file, closing the project and reopening it fixes this but the comment will no longer collapse. The hilighting problem only seems to happen when the */ is on a different line. Are there changes to make to my GoAsm ini file for this version ?

(http://img237.imageshack.us/img237/8890/comment.jpg)

Edit:
Code block from GoAsm.ini

11=/*,*/,,,32

Edgar
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: donkey on March 11, 2009, 03:53:00 PM
Also, when I have a project open and double click a rap file to open a different project I get a few error dialogs, this problem dates back a few versions, it just never bothered me enough to report it since I usually use Open Project.

(http://img264.imageshack.us/img264/3157/open.jpg)

The shell open command from my registry:

"C:\Programming\RadASM\RadASM.exe" "%1"

.RAP files have been associated with RadASM
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: Ficko on March 11, 2009, 07:49:19 PM
Hi Ketil!

Thanks for the update.

I had noticed some propably unwanted changes.

Using "comment *" in MASM loosing the comment color on the following lines.

Screenshot attached.

[attachment deleted by admin]
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 12, 2009, 12:21:51 PM
Thanks donky and Ficko

New upload.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: PauloH on March 12, 2009, 04:15:05 PM
Hi KetilO!

I can't record RadASM macros anymore. When the Macro-->Record menu item is clicked nothing happens.

Thank you and kind regards.

PauloH.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: donkey on March 12, 2009, 09:54:27 PM
Hi Ketil,

Still an issue with comment blocks, this will still cause the same effect...

/* Won't be ported to Win64 */

It's the quote in the line that is causing the problem.

Edgar
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 13, 2009, 06:15:56 AM
Hi PauloH

The macro recorder works as it should here.
I am guessing that your path for macros is the problem.
Check Option / Path Setup and verify that the Macro ($M) path exist.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 13, 2009, 06:16:45 AM
Thanks donkey

New upload.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: donkey on March 13, 2009, 08:32:32 PM
Hi Ketil,

Thanks for the fix, There seems to be a problem with search. When I search inside the main file everything works fine but when I search through an entire project the header files (.h) are not searched, even if the header is my actively open file.

From "Code Editor options"

Code Files = .asm.h.rc.tpl.rad.a.

This is the result of a search in a .h file, if the Project box is checked no .h files will be searched. As you can see the string I am searching for is in the file and I selected direction all, though it was reset after the search, however the cursor was above the search target in any case.

(http://img214.imageshack.us/img214/1946/search.jpg)
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 14, 2009, 02:34:48 PM
Thanks donkey

New upload.

KetilO

Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: Monolith on March 14, 2009, 04:58:39 PM
Thank you for your hard work in adding better support for c++ locals (I can finely drop the large, now useless, c++ ide, and just use radasm). It is working very well, however, it doesn't support (not really a bug) using pointers, for example,

RECT rc = {0,0,20,20};   
SendMessage(hw,EM_CHARFROMPOS,0,(LPARAM) &rc.right); // <----- wont work when & is placed before local

Anyway, keep up the fantastic work.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: donkey on March 14, 2009, 05:04:59 PM
Thanks Ketil,

I've been using it pretty heavily this morning and have found no bugs.

For the release I have attached the new GoAsm files for RadASM, it includes new templates, GoAsm.ini, the template master files, a new copy of my version of vKim's debug as well as the new RadHelp and source. Help2 Viewer is not included but the exe and source are available at my website, since it is a RadASM project and written by me you can include it with any distribution if you like, I am still working through HTML Help1.x files but should have support for them soon, I am still waiting for the docs on Help3.

Edgar

[attachment deleted by admin]
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 15, 2009, 11:07:37 PM
Hi all

New upload with minor fixes.

Masm:
o Fixed comment block bug if char is ' or "
All assemblers:
o Fixed block guide paint bug on segment blocks.
C/C++:
o Fixed code complete bug on pointer to structure (&rc.left).

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: PauloH on March 16, 2009, 03:40:52 AM
Hi, KetilO.

Good updates! But about the macro record problem, I still haven't any success, even after a manual path setting. I'm running Vista. Is there any issue with Vista ?

Thank you in advance.

PauloH.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 16, 2009, 06:01:30 AM
Hi PauloH

I am running Vista and it works here.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: BlackVortex on March 16, 2009, 10:21:23 AM
Quote from: PauloH on March 16, 2009, 03:40:52 AM
Hi, KetilO.

Good updates! But about the macro record problem, I still haven't any success, even after a manual path setting. I'm running Vista. Is there any issue with Vista ?

Thank you in advance.

PauloH.
What folder have you set it to ?  Maybe it's a UAC problem (I don't know if radasm is UAC-aware)

Or run radasm as administrator and test.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 16, 2009, 12:43:54 PM
Yes, RadASM is UAC aware. The user must have read/write access to the Macro folder for it to work.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: PauloH on March 17, 2009, 12:37:49 AM
Hello, guys.

Thank you for your answers. I'm running Vista as administrator and the folder I set is C:\Radasm\Masm\Macro.
RadASM creates a .kbm file with zero length. When Record item is clicked nothing happens. The little dialog box with the "stop record" command doesn't appear and I can't save any new macro. By the way, the old saved macros don't work also. Am I doing something wrong?

Kind regards.

PauloH.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 17, 2009, 06:45:34 AM
Hi PauloH

I have no idea why it fails. I have tested on Vista SP1 and Vista RC SP2, bouth 32 bit, and it works as it should.
What version of Vista are you running?

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: UtillMasm on March 17, 2009, 09:08:32 AM
I found a F2 bug!!!

atachment include something about the F2 bug.

[attachment deleted by admin]
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 17, 2009, 12:01:58 PM
Thanks UtillMasm

New upload.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: PauloH on March 17, 2009, 04:51:00 PM
Hello guys.

The problem is the UAC! I turned it off and RadASM macros are working again. I'm running Vista Home Premium SP1.
And now, I have another question. Is there any way to edit these macros? The .kbm files are very friendly...  :green2

Kind regards.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 17, 2009, 10:53:14 PM
Hi PauloH

Sorry, there is no way to edit the macros.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: ideasun on March 22, 2009, 01:33:11 PM
Hi, KetilO
    I'm a chinese, I am using the RadASM 2.1.5 in windows 2000. but when I try to change the "Environment Variables", it will crash.
it works OK,in XP or vista.

the tips was:

Module name: USER32.dll (RadASM version 2.2.1.5)
Windows 2000 Service Pack 4
Exception code: C0000005h
EXCEPTION_ACCESS_VIOLATION
Instruction pointer: 77E08CE8h

Registers:
eax=00649B50h ebx=00000000h ecx=0007033Eh
edx=00600650h esi=000702E0h edi=00000111h
ebp=0012F7CCh esp=0012F7ACh eip=77E08CE8h

Segment registers:
CS=001Bh DS=0023h SS=0023h
ES=0023h FS=0038h GS=0000Flags: PF IF
Flags: PF IF
FDS=0023h SS=0023h
ES=0023h FS=0038h GS=0000h


Stack:
00634208 00000111 00649B50 BE0A05F3
0012F7F0 77E0B841 32010450 00000001
0012F7FC 77DF622E 0007033E 00000111
000003EA 000702E0 00000000 00637650

Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: UtillMasm on March 22, 2009, 01:49:02 PM
2.1.5 is not exist!!! I assume you are using 2.2.1.5.

Set "path" environment variable for MASM:

       First

            RadAsm Menu -> Project -> Set Assembler -> MASM

       Second

            RadAsm Menu -> Option -> Enironment Variables

               Name:
                   path
               Value:
                   c:\masm32\bin;

-----------------------------------------
我爱中国,我爱毛泽东!
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on March 22, 2009, 06:44:20 PM
Thanks IdeaSun

The bug is now fixed in 2.2.1.6

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: UtillMasm on April 02, 2009, 07:37:19 AM
File Brower Problem:

I have a '.mySecretFolder' directory, but RadASM cann't see it.

Thanks.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on April 02, 2009, 10:27:03 AM
Thanks UtillMasm

I will have a look at it.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: UtillMasm on April 02, 2009, 01:05:38 PM
another F2 bug

Line1 .code
Line2  start:ret
Line3 end start

move caret to Line3's start word, then press F2, nothing happend.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on April 02, 2009, 02:29:28 PM
Hi UtillMasm

Sorry, nothing to do about that. The parser will not recognize it as a label.
However start: ret will work. So just put a space after the colon.

KetilO
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: Monolith on April 08, 2009, 08:22:13 PM
When working in C, after pressing 'return' inside a procedure (working line after line, with only } at the end) , Radasm looses which procedure it is in not allowing it to recognize locals. For instance:

void _fastcall GetFileName(HWND hw)
{
  OPENFILENAME ofn = {0};
  ofn.lStructSize = sizeof(OPENFILENAME);
  ofn.hwndOwner = hw;                                <-------------------------------------------- Radasm won't recognize ofn as a local.
}

If I just click the up button, then back down, it will rescan an see it as a local again.
Title: Re: RadASM 2.2.1.6 bugtest (2009-03-11)
Post by: KetilO on April 09, 2009, 09:31:59 AM
Thanks Monolith

RadASM 2.2.1.6 has been released.

Get it here:
http://radasm.110mb.com/

KetilO