Groups > dBase > dBase Internet > Re: memory access violation




memory access violation

memory access violation
Mon, 24 Mar 2008 15:59:15 -040
Can anyone tell me why I get a memory access violation on the DELETE ALL 
line?

       SELECT 1
        USE :UBIquotes:eDetail_report.dbf  EXCLUSIVE
        DELETE ALL
        PACK
        GO TOP

-- 
Dan Anderson
UBI Processing Dept.
andersond@ubinc.com
800-444-4824 ext 101 

Post Reply
Re: memory access violation
Tue, 25 Mar 2008 02:47:02 -040
In article <upGn0vejIHA.960@news-server>, andersond@ubinc.com says...
> Can anyone tell me why I get a memory access violation on the DELETE ALL 
> line?
> 
>        SELECT 1
>         USE :UBIquotes:eDetail_report.dbf  EXCLUSIVE
>         DELETE ALL
>         PACK
>         GO TOP


Dan,

A guess: the table is not actually open exclusively (but it is open). 
Remember, dB+ will still USE a table even if it is already open 
elsewhere. Alternatively, the table is corrupt.

If I recall correctly, you are using the latest dBASE PLUS, so you could 
use the OOP techniques (the DATABASE.emptyTable() ). Even with the old 
commands, ZAP does the same thing as DELETE ALL with PACK.

-- 
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.|        dBASE info at http://geocities.com/geoff_wass       |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
Post Reply
about | contact