Chris Douce
2/8/2012 5:27:00 PM
Hi all,
We have an application in which we use OCX's (VsFlexGrid and MetaDraw)
and ADO with an access database.
Everything went well until Win7.
On the Win7 systems, we get from time to time an error from
VC++ Runtime Library:
This applications has requested the Runtime to terminate in an unusual
way. There is no application name and just an OK Button.
When I say 'From time to time', I mean I cannot repeat the error and it
comes maybe twice a day or so. Only on Win7, never on XP.
I have an "On Local Error Resume Next" error trapping
But the error doesn't seem to be trapped.
This is the code where I suppose the fault comes from.
On Local Error Resume Next
frm_input_order.MDraw.LoadPicture recTmp.Fields("Pic1"),
PIC_PICTURE, PICTYPE_DEFAULT
frm_input_order.MDraw2.LoadPicture recTmp.Fields("Pic2"),
PIC_PICTURE, PICTYPE_DEFAULT
frm_input_order.MDraw3.Clear
frm_input_order.MDraw3.LoadPicture recTmp.Fields("Pic3"),
PIC_PICTUREIMAGE, PICTYPE_JPGFILE
frm_input_order.MDraw3.Picture = frm_input_order.MDraw3.PictureImage
On Local Error GoTo 0
In fact, the drawings are read from an access database. The field type
for the drawings is 'OLE Object'
I did a lot of searching on Google and found a lot of pages on this
error but none of the solutions did help.
Is there any way of trapping thsi kind of VC++ error?
Thanks in advance
Chris