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

"Use of transgressed handle" error

Status
Not open for further replies.

torturedmind

Programmer
Jan 31, 2002
1,052
PH
Is there a work-around for the "Use of transgressed handle." error message? I'm using a Foxpro 2.6 for Windows under Win98SE. It keeps on appearing whenever i press the "previous" button in the report preview screen. The underlying data, by the way, was created using a "create table" query. It also appears when i try to browse the underlying table.

Thanks in advance for the help guys.

torturedmind [trooper]

"It is much better to ask shallow questions than to wander in the depths of ignorance..."
 
Since this is really suggesting that another program or the operating system "stepped on" memory that FPW believes it properly requested and had reserved, there is nothing you can do programatically. Check for viruses, and any other DOS or Win16 apps that might be violating the Win32 memory management rules. If you run this under Win NT / 2000 / XP in a separate memory space, then you probably won't have any problems.

I've also seen this error occur on machines that had "flaky" memory. Since FoxPro exercises memory much more than most other programs, it can discover marginal memory. You may want to have your memory tested with a standard hardware diagnostic routine.

Finally, make sure you aren't trying to use more memory than FPW can actually use - make sure you have a MEMLIMIT statement in your CONFIG.FPW file. Some like this works for me:
MEMLIMIT = 60, 2048, 16384

At no time should the 3rd parameter be greater than 16384, and some recommend 16000 or less.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top