1. EDS Database choking?

An interesting problem I am haveing now....

Below is a partial trace of code that happened when
db_delete_table( ) was called.

The table does exist I have confirmed this by reading 
the database.

line 456 in database.e is what fails

456.    safe_seek(addr-4)
457.    put4(size) -- in case size was not updated by db_free()

it looks to me that addr is 0 when I get here so It must be a bug
in database.e "Robert"?

or,

Is this happening because the last table is what I'm deleting
and it has 0 keys or data attached to it?

C:\EUPHORIA\include\file.e:29 in function seek() 
type_check failure, pos is -4 
    fn = 3
    pos = -4

... called from C:\Euphoria\MY2\database.e:288 in procedure safe_seek()  
    pos = -4

... called from C:\Euphoria\MY2\database.e:454 in function db_allocate()  
    n = -6
    free_list = 339217
    size = 0
    size_ptr = 339221
    addr = 0
    free_count = 5
    remaining = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0}
    i = 1

... called from C:\Euphoria\MY2\database.e:487 in procedure db_free()  
    p = 339301
    psize = 10
    i = <no value>
    size = <no value>
    addr = <no value>
    free_list = 339217
    free_list_space = -4
    new_space = -6
    to_be_freed = 339217
    prev_addr = <no value>
    prev_size = <no value>
    free_count = 5
    remaining = <no value>

... called from C:\Euphoria\MY2\database.e:834 in procedure db_delete_table()  
    name = {84'T',114'r',105'i',97'a',108'l'}
    table = 176982
    tables = <no value>
    nt = <no value>
    nrecs = <no value>
    records_ptr = <no value>
    blocks = <no value>
    p = <no value>
    data_ptr = <no value>
    index = <no value>
    remaining = <no value>


Thanks,

Euman

new topic     » topic index » view message » categorize

2. Re: EDS Database choking?

Euman writes:
<bug report about EDS>

Thanks.
I'll take a look at it. 
If the trace back isn't enough, I might have to ask for 
your program so I can reproduce the problem.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu