Can anyone please through any light on my Alpha crash problem. Why should a print or preview set the scene for a crash on one computer and not another and then only if the default printer is different to the development printer?
I have spent the last 3 weeks solid tediously trying to eliminate the cause.
I have an app that runs perfectly on my computer but when installed on to a client's computer or my test model, if the default printer is different to my development default printer, the crashing occurs. Even then the app will run perfectly, accepting data and switching forms etc until a report or letter is printed or previewed. The layouts will print or preview fine but this is only the fuse for the crash. The trigger is pulled when I run the query below and then F5 key or sys_send_keys("{F5}") code.
All my reports are designed with the properties set to default printer. The crash details point to Mscvrt40.dll. If I install my print driver on the target machine and set it as a default the app runs perfectly. The form is based on a set parent linked one to one to a child 'Attend' and there is only one table open or form open.
tbl=table.current()
Query.description = "Room 6"
query.order = "dob"
query.filter = "EXCLUDE=.F..AND.attend->year>1999" 'attend->year is a one to one child
query.options="I"
i=tbl.query_create()
recs_found=i.records_get()
IF recs_found=0 then
ui_msg_box("Sorry","Room Empty")
END
else
tbl.query_create()
END IF
Appreciate anyone elses experience of this situation.
Michael
I have spent the last 3 weeks solid tediously trying to eliminate the cause.
I have an app that runs perfectly on my computer but when installed on to a client's computer or my test model, if the default printer is different to my development default printer, the crashing occurs. Even then the app will run perfectly, accepting data and switching forms etc until a report or letter is printed or previewed. The layouts will print or preview fine but this is only the fuse for the crash. The trigger is pulled when I run the query below and then F5 key or sys_send_keys("{F5}") code.
All my reports are designed with the properties set to default printer. The crash details point to Mscvrt40.dll. If I install my print driver on the target machine and set it as a default the app runs perfectly. The form is based on a set parent linked one to one to a child 'Attend' and there is only one table open or form open.
tbl=table.current()
Query.description = "Room 6"
query.order = "dob"
query.filter = "EXCLUDE=.F..AND.attend->year>1999" 'attend->year is a one to one child
query.options="I"
i=tbl.query_create()
recs_found=i.records_get()
IF recs_found=0 then
ui_msg_box("Sorry","Room Empty")
END
else
tbl.query_create()
END IF
Appreciate anyone elses experience of this situation.
Michael
Comment