I still use ctrl-w on occasion and don't think that's your issue. This does 
ring some bells related to the SCT possibly being corrupted or getting 
corrupted. Once in a blue moon, I will close a form and get a message that the 
SCT is missing. When that happens, the only thing I can do is the 3 finger 
salute to kill VFP and restore from a backup. What I have noticed when that 
happens is there's a file with a temp name saved in the same folder as my 
source. My theory is that's the SCT but I've never been so far off with my 
backups when this happens that I try a rename.

Does this happen in specific forms/classes or randomly? 
Any other patterns you can spot when you lose code? 
AV or other realtime file scanning processes that might be getting in the way?
Hardware or Windows file cache settings? If your system is set to do delayed 
writes, turn that off. The performance boost isn't worth the aggravation of 
corrupted files.

Other things to try:
Copy the scx/sct via Windows and see if the copy exhibits the same problem.
Copy the form uses xBase or SQL commands. See if that copy exhibits the same 
problem.
Compile the form.
Open the form as a DBF and pack it.

rk

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Jack Skelley
Sent: Friday, October 08, 2010 9:37 AM
To: [email protected]
Subject: VFP9 SP2: Losing Method Code

Good Morning All:
Ok so what am I doing wrong? I moved one of my apps from VFP8 to VFP9 SP2 and 
like in VFP8 I am losing method code on the objects. For example, the click 
event on a button.
I had this issue in 8 and couldn't stop it, so the consensus here was move it 
to 9. So I did. But it is only slightly better.
I have a habit of using ctrl W to close a method and the form when done with 
it. Is this my issue? Does anyone one else here have similar issues? In VFP6 
have never lost a line of code much less full methods. Should I be using the 
save menu pad instead? 
I am crazed with this and have zero confidence with the code saving. From what 
I can tell the method code is lost in the scx field but the objcode remains. Is 
this an issue with the sct file?
Any insight would be helpful at this point.
Thanks!
Regards,


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd04419091f8...@ackbwddqh1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to