Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Exception on inline variable declarations

 Post Reply Post Reply
Author
Grube Stefan View Drop Down
New Member
New Member
Avatar

Joined: 12 May 2016
Posts: 29
Post Options Post Options   Quote Grube Stefan Quote  Post ReplyReply Direct Link To This Post Topic: Exception on inline variable declarations
    Posted: 14 Feb 2019 at 3:05pm
When the unit I want to check contains inline variable declarations FixInsight throws an exception and does not write anything more into the FixInsight message tab.

The following code is tested correctly:

  var
    I: Integer;
  begin
    ...
        for I := 0 to Segment.Data.Size - 1 do
        begin
          if SeekPtr^ in [#0..#8, #11..#12, #14..#31] then SeekPtr^ := ' ';
          Inc(SeekPtr);
        end;
    ...
  end;
-> [FixInsight Warning] STGEXIF.pas(1005): W528 Variable 'I' not used in FOR-loop

Changing the unit to use inline variable declarations:

  begin
    ...
        for var I: Integer := 0 to Segment.Data.Size - 1 do
        begin
          if SeekPtr^ in [#0..#8, #11..#12, #14..#31] then SeekPtr^ := ' ';
          Inc(SeekPtr);
        end;
    ...
  end;
-> Exception in FixInsight.Services.dll/FixInsight_10_3.bpl
exception class    : EAccessViolation
exception message  : Zugriffsverletzung bei Adresse 23FA960B in Modul 'FixInsight.Services.dll'. Lesen von Adresse 00000210.

thread $14f4 (TAnalysisThread):
23fa960b +00 FixInsight.Services.dll
5985b7e7 +2b madExcept_.bpl          madExcept HookedTThreadExecute
5985b6cd +0d madExcept_.bpl          madExcept CallThreadProcSafe
5985b732 +32 madExcept_.bpl          madExcept ThreadExceptFrame
75f00177 +17 KERNEL32.DLL                      BaseThreadInitThunk
>> created by main thread ($d58) at:
24044f06 +00 FixInsight.Services.dll

main thread ($d58):
1fcb2634 +0a0 FixInsight_10_3.bpl Fixinsight                Expert.TFixInsightExpert.OnFixInsightRunSingleUnit
1fcaea4d +07d FixInsight_10_3.bpl Fixinsight                Expert.Datamodule.TdmFixInsightExpert.actRunFixInsightForUnitExecute
Back to Top
Grube Stefan View Drop Down
New Member
New Member
Avatar

Joined: 12 May 2016
Posts: 29
Post Options Post Options   Quote Grube Stefan Quote  Post ReplyReply Direct Link To This Post Posted: 19 Feb 2019 at 1:13pm
Do you have any feedback on this?
Back to Top
Roman Yankovsky View Drop Down
New Member
New Member
Avatar

Joined: 21 Jun 2016
Posts: 26
Post Options Post Options   Quote Roman Yankovsky Quote  Post ReplyReply Direct Link To This Post Posted: 19 Feb 2019 at 8:40pm
Hi Stefan,

Sorry, I've been working on this issue and forgotten to reply. Please try this update http://sourceoddity.com/download/FixInsight_2019.01upd1_setup.exe

I hope this will help. Let me know if the issue is still there.
Back to Top
Grube Stefan View Drop Down
New Member
New Member
Avatar

Joined: 12 May 2016
Posts: 29
Post Options Post Options   Quote Grube Stefan Quote  Post ReplyReply Direct Link To This Post Posted: 19 Feb 2019 at 8:59pm
Hi Roman,

thanks for the update, works like a charm again.

One side effect though: the FixInsight toolbar has empty icons and shows just 3 transparent blocks, no hints and they're functionless as well (clicking does not trigger anything).

BR,
Stefan
Back to Top
Roman Yankovsky View Drop Down
New Member
New Member
Avatar

Joined: 21 Jun 2016
Posts: 26
Post Options Post Options   Quote Roman Yankovsky Quote  Post ReplyReply Direct Link To This Post Posted: 20 Feb 2019 at 9:00pm
I'll try to fix that...
Back to Top
Onken L. View Drop Down
Member
Member
Avatar

Joined: 16 Jun 2010
Posts: 60
Post Options Post Options   Quote Onken L. Quote  Post ReplyReply Direct Link To This Post Posted: 21 Feb 2019 at 10:49am
For me it makes a difference if the user who installs FixInsight has admin rights or not.
- If I install as admin, the registry entries end up at the wrong location and the icons are not there.
- If I install as me, it looks like some registry entries cannot be written and the icons are not there.
- If I install as me+temporary admin rights, everything works.
Back to Top
Roman Yankovsky View Drop Down
New Member
New Member
Avatar

Joined: 21 Jun 2016
Posts: 26
Post Options Post Options   Quote Roman Yankovsky Quote  Post ReplyReply Direct Link To This Post Posted: 21 Feb 2019 at 10:51am
It may sound strange, but IDE toolbar is one of the most challenging features of FixInsight. EMBT give no documentation at all :)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down