Home > Archive > FoxPro Help and Support > October 2005 > Now everything freezes...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Now everything freezes...
Jud

2005-10-27, 8:34 am

This is all VFP6.

On my MAIN form there is a "Housekeeping" Button. Click it and the
HOUSE form opens. There, you can do Backups, Import / Export and make
choices, like whether or not to show ToolTips. Until a couple of days
ago! Now the HOUSE form opens and if you click on anything, including
the form itself, there is just a "tick" and nothing happens. You can't
even make the "Close" Button work. Only after pressing "Esc" can you
click on something and have it work.

I used "SET COVERAGE TO "BUGFILE.LOG" and found this:

.........
18.654,,main.housbutn. click,1,c:\work\form
s\main.sct,2
0.000,,house.closebutn. click,1,c:\work\form
s\house.sct,4
0.000,,house. unload,1,c:\work\for
ms\house.sct,3
0.000,,main. activate,1,c:\work\f
orms\main.sct,2
.........

Apparently, everything done between "main.housbutn.click" and
"house.closebutn.click" didn't happen (like house.activate) or wasn't
captured in BUGFILE.LOG although a lot happened including an effort to
activate "ON KEY LABEL ALT+S SUSPEND" which I had set up to be able to
suspend at the point where everything was frozen. Also, the things in
"house.activate" were not done either, because ToolTips were not shown
even though the check box said they were supposed to. The Cursor moved
around normally but clicking didn't do anything.

I suspected the Combo Listbox I added not long before this happened, so
I removed it. Now, before the HOUSE form opens I get an error "Data
type is invalid for this property". But, when I look in the Debug
window, it points to "THISFORM.SHOWTIPS = TTIPS" in "house.activate"
(which wasn't triggered when the Combo Listbox was in the form). Ttips
is Public and set to .F. and hasn't changed for months!

I'm stumped, any help would be appreciated.

Jud

Lee Mitchell

2005-10-27, 8:34 am

Hi Jud:

I would try recompiling the form (COMPILE FORM <form_name> ). Try deleting
the Foxuser (.DBF and .FPT) files.


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/i...cid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


[color=darkred]
>On my MAIN form there is a "Housekeeping" Button. Click it and the
>HOUSE form opens. There, you can do Backups, Import / Export and make
>choices, like whether or not to show ToolTips. Until a couple of days
>ago! Now the HOUSE form opens and if you click on anything, including
>the form itself, there is just a "tick" and nothing happens. You can't
>even make the "Close" Button work. Only after pressing "Esc" can you
>click on something and have it work.


>I used "SET COVERAGE TO "BUGFILE.LOG" and found this:


.........
> 18.654,,main.housbutn. click,1,c:\work\form
s\main.sct,2
> 0.000,,house.closebutn. click,1,c:\work\form
s\house.sct,4
> 0.000,,house. unload,1,c:\work\for
ms\house.sct,3
> 0.000,,main. activate,1,c:\work\f
orms\main.sct,2

.........

>Apparently, everything done between "main.housbutn.click" and
>"house.closebutn.click" didn't happen (like house.activate) or wasn't
>captured in BUGFILE.LOG although a lot happened including an effort to
>activate "ON KEY LABEL ALT+S SUSPEND" which I had set up to be able to
>suspend at the point where everything was frozen. Also, the things in
>"house.activate" were not done either, because ToolTips were not shown
>even though the check box said they were supposed to. The Cursor moved
>around normally but clicking didn't do anything.


>I suspected the Combo Listbox I added not long before this happened, so
>I removed it. Now, before the HOUSE form opens I get an error "Data
>window, it points to "THISFORM.SHOWTIPS = TTIPS" in "house.activate"
>(which wasn't triggered when the Combo Listbox was in the form). Ttips
>is Public and set to .F. and hasn't changed for months!


>I'm stumped, any help would be appreciated.


>Jud




Jud

2005-10-27, 8:34 am

Hi Lee,

Thanks for the help. I just have 3 quick questions before I try your
suggestion:

1. I work in the Form Designer. When I hit CTRL-S to save and then
close the Form Designer doesn't the form get compiled automatically as
with "MODI COMM"?

2. Isn't Foxuser the Resource file?

3. What happens then, when I don't have a Resource file?

Dan Freeman

2005-10-27, 8:34 am

Jud wrote:
> Hi Lee,
>
> Thanks for the help. I just have 3 quick questions before I try your
> suggestion:
>
> 1. I work in the Form Designer. When I hit CTRL-S to save and then
> close the Form Designer doesn't the form get compiled automatically as
> with "MODI COMM"?


Not always.

>
> 2. Isn't Foxuser the Resource file?


Yes. And they're known to be flaky.

>
> 3. What happens then, when I don't have a Resource file?


Foxpro doesn't need a resource file to run. (My config.fpw includes the line
RESOURCE = OFF.) If SET RESOURCE is ON then VFP will create a new, empty
resource file on startup.

The resource file stores things like font choices, window positions, etc. --
most of which I prefer not be remembered anyway. <shrug>

Dan


Jud

2005-10-27, 8:34 am

Hi,

Well, I recompiled the form. Nothing changed.

Then, since I want Foxuser to remember things for me, since I can't
remember where I am half the time with OOP I tried to browse Foxuser.
I "SET RESOURCE OFF" and proceeded to USE Foxuser. But I work in
"C:\WORK\" on projects. So, I went into Windows Explorer and found
Foxuser.dbf and then copied (CTRL-C) the entire path in the address
window: "C:\Program Files\Microsoft Visual Studio\Vfp98". Then I went
to my Command window typed in "USE " and hit CTRL-V, added "\FOXUSER"
and hit Enter. I got an error message "Command contains unrecognized
phrase/keyword". Then I tried "USE HOME(0)FOXUSER" and got the same
error. Why won't this thing accept it's own home address? I even
tried removing the spaces (they're asc(32)) from the address I'd copied
from Windows Explorer i.e.. "USE
C:\ProgramFiles\Micr
osoftVisualStudio\Vf
p98\FOXUSER". That got me
"File does not exist".

I "SET RESOURCE ON" and will wait for someone to help me understand
this.
Thanks in advance,

Jud

Rush Strong

2005-10-27, 8:34 am

When using blanks in a file address, the address must be quotated - try:

USE "C:\Program Files\Microsoft Visual Studio\Vfp98" + "\FOXUSER"

or, of course;

USE "C:\Program Files\Microsoft Visual Studio\Vfp98\FOXUSER
"

or;

USE HOME() + "\FOXUSER"

- Rush

"Jud" <judsonrp@fastmail.fm> wrote in message
news:1128800383.419384.259120@g49g2000cwa.googlegroups.com...
> Hi,
>
> Well, I recompiled the form. Nothing changed.
>
> Then, since I want Foxuser to remember things for me, since I can't
> remember where I am half the time with OOP I tried to browse Foxuser.
> I "SET RESOURCE OFF" and proceeded to USE Foxuser. But I work in
> "C:\WORK\" on projects. So, I went into Windows Explorer and found
> Foxuser.dbf and then copied (CTRL-C) the entire path in the address
> window: "C:\Program Files\Microsoft Visual Studio\Vfp98". Then I went
> to my Command window typed in "USE " and hit CTRL-V, added "\FOXUSER"
> and hit Enter. I got an error message "Command contains unrecognized
> phrase/keyword". Then I tried "USE HOME(0)FOXUSER" and got the same
> error. Why won't this thing accept it's own home address? I even
> tried removing the spaces (they're asc(32)) from the address I'd copied
> from Windows Explorer i.e.. "USE
> C:\ProgramFiles\Micr
osoftVisualStudio\Vf
p98\FOXUSER". That got me
> "File does not exist".
>
> I "SET RESOURCE ON" and will wait for someone to help me understand
> this.
> Thanks in advance,
>
> Jud
>



Dan Freeman

2005-10-27, 8:34 am

Or USE (Sys(2005))

<g>

Dan

Rush Strong wrote:[color=darkred
]
> When using blanks in a file address, the address must be quotated -
> try:
>
> USE "C:\Program Files\Microsoft Visual Studio\Vfp98" + "\FOXUSER"
>
> or, of course;
>
> USE "C:\Program Files\Microsoft Visual Studio\Vfp98\FOXUSER
"
>
> or;
>
> USE HOME() + "\FOXUSER"
>
> - Rush
>
> "Jud" <judsonrp@fastmail.fm> wrote in message
> news:1128800383.419384.259120@g49g2000cwa.googlegroups.com...


Jud

2005-10-27, 8:34 am

Hi,
Sorry this has taken so long.
This is VFP6.
I removed form HOUSE from the Project Manager and renamed it OLDHOUSE
in Windows Explorer.
I pressed "New" in Project Manager and "MODIFY FORM OLDHOUSE" in the
Command Window.
I then built the New form element by element copying each one from
OLDHOUSE and pasting it into the New form which I named "HOUSE". After
each element was added I ran the project. Eventually, I brought
"THISFORM.SHOWTIPS = TTIPS" over and pasted it in "house.activate".
There was the problem! I then typed "THISFORM.SHOWTIPS = TTIPS" in to
the first line of "house.activate" and deleted the suspicious one and
the following blank line. Problem solved! I copied over all the rest
of the elements of OLDHOUSE and it is working! There was nothing
visible or obviously wrong with the old "THIS....." line, but VFP6
thought so.

Then, as I continued to work on the new HOUSE, I realized that every
time I "Modify"d HOUSE and saved a change, the next time I "Modify"d it
again it was 4 pixels wider!

And while I'm at it, when I press "Modify" for my MAIN form I get an
error message "File 'C:\work' does not exist", I press "OK" and
everything proceeds without incident. The MAIN form is the first I
created. It was in VFP6's home directory, then I decided to create the
C:\WORK directory where I have been working on this project. I copied
the original MAIN form into the C:\WORK area. I think I've been
getting the error ever since. I browsed through main.scx/sct and found
"c:\work" in a couple of memo fields. I asterisked them out one at a
time and ran the project. No change, so I took out the asterisks. I
haven't looked in the mainproj.pjx/pjt files.

Any help would be appreciated,
Jud

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com