Thanks for reply,, this error it happened only in one program calls an other 2 programs,
the called program reads a record form Indexed file then it called a sub-program which makes some calculations in that record and gets the results back to the called program.
I'm in editing phase I tried to animate it, but no progress, because it happens after reading hundreds of records, I made a manual break point to the certain record no when it stops, but I did not reach that number because it does't stop on the record number,,
I've read a lot in the Web concerning this error, mostly they say the mfc42.dll is corrupted and needs to be reinstalled.
therefore I made a trial installation for Netexpress 5.1 in other machine with a fresh Windows 7 installation, then everything works fine.
in my situation I can't do that because I'm restricted with installed response key for Netexpress.
so I thought of an other solution: I copied all the logic for the called program and I put it in the calling program and instead of calling that sub-program I used Perform statement ,, then it works fine.
as you know this solution is not always right,