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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API Call Caused an Exception

Status
Not open for further replies.
Sep 13, 2002
28
US
I get the error "API Call caused an exception" whe I try to run "BEAUTIFY" on any prg. I have uninstalled VFP (7.0 SP1) and reinstalled from scratch.

Does anyone have any ideas why this could be happening?

T!A,

Bill
 
What OS? Are you sure you have adequate rights to the directories where temp files get created?


Dave S.
[cheers]
 
I'm using XP Pro, and I have administrator rights on the machine. But I will check to see where the temp files are being created.

thanks....
 
At the risk of pointing out the obvious, you just need to make sure that when you allow rights to directories, that the changes get propogated to all files and subdirectories.
XP doesn't really do that automatically. I had it happen.


Dave S.
[cheers]
 
Bill,

I saw this happened to someone (Beautify didn't work). But I don't remember what was the problem. All I remember that after he run the VFPClean.app the problem solved.

Hope it works

-- AirCon --
 
BillGravel

Also make sure the path in the Tools->options->File locations is set to the correct Beautify.app ("c:\program files\microsoft visual foxpro 7\beautify.app")

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks to everybody who has responded to this problem.

Unfortunately, nothing has worked. I've even gone so far as upgrading the BIOS as a last step. The machine has been reformatted and everything reinstalled and service pack'd. Maybe I'd better upgrade to 8.0

 
Gee whiz. Sounds a little extreme. I haven't had any issues with beautify myself using VFP 7.
One issue I had with beautify a while back, was I had a OKL for F12:

ON KEY LABEL f12 DO mem_disp

I would get a GPF whenever I ran beautify or foxdoc.
Code:
So what I did was this:
STORE 'mem_disp' TO cmd   &&... we need to do this so FOXDOC doesn't
ON KEY LABEL f12 DO &cmd        &&... give a GPF when it documents

Dave S.
[cheers]
 
I have encountered one cause of this error -- the following statement:

m.xxx=0

or any other assignment beginning with 'm.'

........ Jim Nelson
 
Thanks again to all who responded. I found a great way to get around it....I installed 8.0.....

I reinstalled VFP 7 with SP1 and it didn't fix it. I can go to another machine, bring up the same projects (it happens on all the projects I have...about 60 or so) and beautify works fine....something in my operating system is apparently hosed....

But VFP 8 works fine...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top