Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Height: Expression evaluated to an illegal value

Status
Not open for further replies.

gothbabe55

Technical User
Jun 5, 2002
25
AU
Hello everybody, I am hoping somebody can help with this one.
I have a client who is running our software (written in VFP8) through a Citrix session. They switch between the Citrix session and an Excel spreadsheet that is running locally on their workstation. On returning to the VFP app in the Citrix session, they are getting either "Height: Expression evaluated to an illegal value" or "Width: Expression evaluated to an illegal value". It seems to be occurring at no specific point in the application, and I am unable to reproduce at all.
Has anybody run into this one at all??

Thanks!
 
I usually get these errors when a grid is made too small - height or width. For instance when someone has lots of windows open and uses the Tile Windows option.


Hope that helps,

Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Gothbabe55,

You'll need to figure out exactly where it's happening in your code.

Assuming you have an error-trapping routine in force, make a note of the contents of PROGRAM() and LINENO(). Thats will tell you which line of code is causing the problem, which in turn will tell you which control is getting the illegal height or width.

Once you've got that info, report back.

MIke


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Stewart - thank you for your reply. Unfortunately, it's definitely not Tile Windows in this case.

Mike,thank you too. I have the full error info . They are:

Program: MYHANDLER.MYRESIZE.BCKMAIN.RESIZE
Line: 6
Error Message: Error with cntMain - Height: Expression evaluated to an illegal value.

The strange thing is that when my programmers look at line 6 in the RESIZE method of BCKMAIN, it is commented out. We are all just at a total loss here!
 
Gothbabe55,

It does seem odd that the line causing the error is commented out.

Is there any code at all in the Resize method that is changing the height property of any object? If not, then something very strange is happening.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Just a thought, is the source you are looking at the same source that generated the executable you are running on your Citrix box?

It could be that someone has already had this problem, hence the commenting out, and you have inadvertantly loaded an older version of the system... check the file dates and times.

B-)

Good luck...

Regards

Griff
Keep [Smile]ing
 
Another thing you could do is to set a breakpoint on the Height property in the debugger. That will tell you every time that the height changes, whether in code or by user action.

But, to do that, you would have to know which object is causing the problem. Presumably, you don't know that.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Hello All

Thanks for all your replies. Griff, you were right - the code has indeed changed since the version my client is on. Unfortunately they are the only people that this error is happening with, and given that their system is in production and our current version is still in development, there is no way for me to do any debugging for this darn thing!

The only other piece of info that the client has given me is that they are also getting another error straight afterwards, which is has a Microsoft Office Outlook titlebar, and the message "Can't open the object. Object is static; operation not allowed"

The whole thing just gets more and more bizarre by the minute.

Cheers
Amanda
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top