Icon View Incident Report

Minor Minor
Reported By: Edmund Wong
Reported On: 9/21/2012
For: Version 1.00 Build 1
# 3658 Saving a Project with the Same Name as a Unit Can Cause Access Violation

I just created a new project.

Placed a label on the form.

Saved file as 'test.wbs'
Saved project as 'test' (project file)

clicked "Compile project."

Immediately I get an Error:

[Error] test.wbp (3,26): Duplicate identifier declaration Failed (0 hints, 0 warnings, 1 errors)

So I change the 2nd 'test' to 'xtest' in the program source (see below).

Click Compile project again.

Get this:

"Access violation at address 0060A205 in module 'webbuilder.exe'. Read of address 0000001C.

I click OK

Now, no matter what I do, I get the above Access violation error. I File->Exit. I get that message.

File->Save. Get that AV error.

I can't close WB, so I go into Task Manager and process-kill it.

Project:

project test;

uses WebForms, WebCtrls, test;

begin
  Application.Theme := 'Default';
  Application.Desktop.Height := 768;
  Application.Desktop.AutoWidth := True;
  Application.Desktop.Color := clDesktopBackground;
  Application.ImagePath := 'images';
  Application.ThemePath := 'themes';
  Application.Initialize;
  Form1:=TForm1.Create(Application);
  Application.Run;
end.



Comments Comments and Workarounds
The workaround is to manually change the names of the unit/program so that they are not duplicates.


Resolution Resolution
Fixed Problem on 9/23/2012 in version 1.01 build 1


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image