I did as you suggested to no avail. After repairing my CVI install and
launching the treecopy sample by itself (not from CVI) I still got the same
GP on exiting the program.
Since I had ran my CVI apps with no problem only a few months ago, I
suspected that there must be a conflict with some other software that I had
installed recently. This turned out to be the case. I ran a system monitor
program called taskinfo (www.iarsn.com) and looked for any processes that
I didn't recognize and I noticed one called, "OCR Aware (32-bit)" launched
by
\Program Files\ScanSoft\OmniPagePro12.0\Opware12.exe.
So I terminated this process and ran treecopy again and this time it exited
with no GP! I repeated this test and looked at the modules loaded by
treecopy_dbg.exe before (with GP) and after terminating opware12 process
(no GP) and noticed that there was an ophook.dll loaded when the GP happened
but it was _not_ loaded when running treeinfo after terminating
opware12.exe.
This appears to be part of the OmniPagePro OCR scanner softwre that
I installed a few months ago.
I searched google for "ophook.dll" and found only one hit that mentioned
somebody else having an exception when running their Java app. This leaves
me wondering why having Omnipagepro's opware12.exe running in the
background causes both a CVI app and a Java app to GP fault and why
would the ophook.dll be loaded by them?
I can send you taskinfo's process snaphots if that helps. Even though
I know whats causing the problem, I'd like to know why its happening.
Thanks for any light you can shed on this.
"JuanCarlos" wrote in message
news:506500000005000000CD790100-1079395200000@exchange.ni.com...
> Hello,
>
> This is quite a strange problem. Seems to me that something went wrong
> with you CVI installation. The first thing to try here is to "Repair"
> the CVI installation; go to Add/Remove programs, select "NI Software"
> look for CVI and launch the repair option. This should go through and
> check that all the files that CVI needs to run properly.
>
> After this repair you can run some of the example projects ([CVI
> DIR]\samples. Make sure that you get those working correctly inside
> the IDE and running the EXEs outside of the CVI environment.
>
> Please keep me posted.
>
> Regards,
> Juan Carlos