The specified version variable was not found

delphi package - automated exception handling
Post Reply
klaatu
Posts: 4
Joined: Mon Jan 09, 2006 9:00 pm

The specified version variable was not found

Post by klaatu »

I'm getting the above error with Delphi 2006 and madExcept 3.0b beta 2.
This is what I have in my project.mes file:

VersionVariable=MainUnit.Version

and here's my code (in unit MainUnit):

Code: Select all

var
  MainForm: TMainForm;

  Version : string;
Version gets assigned during execution.

Am I doing something wrong?

Steve
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Please try this:

var
Version : string = 'blabla';

You need to predefine it, even if you assign the valid value later. Otherwise madExcept is not able to find the variable.
klaatu
Posts: 4
Joined: Mon Jan 09, 2006 9:00 pm

Post by klaatu »

That works fine, many thanks.

Steve
Post Reply