A5 has crashed on me more than 10 times since yesterday morning.
It happens frequently but not consistantly when running the following xbasic from a button push.
Does anything in this script look like it may cause an a5 crash?
I did do a one step doc with the a5 documenter addin yesterday morning as well. I do not know if that has done something.
Any thoughts would be appreciated.
Tony
It happens frequently but not consistantly when running the following xbasic from a button push.
Code:
'************************************************************ 'open the cl_team form. Get id and delete record. '************************************************************ dim clid as c dim tbl as p tbl = table.open("cl_team",FILE_RW_SHARED) tbl.fetch_first() tbl.batch_begin() while .not. tbl.fetch_eof() if tbl.Picked= .t. then clid = tbl.cl_id '***delete client for cl_team table tbl.change_begin(.t.) tbl.delete() tbl.change_end(.t.) '************************** '***open the clients table '************************** dim atbl as p atbl=table.open("clients",FILE_RW_SHARED) '***filter to client id atbl.index_primary_put("client_id") atbl.fetch_find(var->clid) '***delete the clients picture if it exists dim img as c img=atbl.Client_picture dim name as c dim bname as c dim fullpath as c name = word(img,-1,"\\",1) bname=word(name,1,chr(34)) fullpath=a5.get_path()+chr(92)+"images"+chr(92)+"ClientPictures"+chr(92)+bname if file.exists(fullpath) then file.remove(fullpath) end if '***delete the client atbl.change_begin() atbl.delete() atbl.change_end(.t.) atbl.close() '************************** '***open the cl_exer table '************************** dim btbl as p btbl=table.open("cl_exer",FILE_RW_SHARED) btbl.delete_range("client_id="+s_quote(clid)) btbl.close() '************************** '***open the cl_workout table '************************** dim ctbl as p ctbl=table.open("cl_wrkout",FILE_RW_SHARED) ctbl.delete_range("client_id="+s_quote(clid)) ctbl.close() '************************** '***open the cl_notes table '************************** dim dtbl as p dtbl=table.open("cl_notes",FILE_RW_SHARED) dtbl.delete_range("client_id="+s_quote(clid)) dtbl.close() end if end while tbl.batch_end() tbl.close() '************************************************************ 'refresh the form '************************************************************ athlete_Browse.refresh() athlete_Browse.fetch_first()
Does anything in this script look like it may cause an a5 crash?
I did do a one step doc with the a5 documenter addin yesterday morning as well. I do not know if that has done something.
Any thoughts would be appreciated.
Tony
Comment