10-23-2007 07:42 PM
10-25-2007 01:34 PM
10-25-2007 01:55 PM
Thanks for the response.
When I asked again, they became uncertain that they were really running the debug version of the application.
I just wanted to verify that the debug build would catch all exceptions coming out of the app.
That's because I do know of a case where it doesn't work that way. If .net runtime is active, there are circumstances where it, not the CVI debug executable/runtime, will catch the exception.
Menchar
10-26-2007 02:40 PM
10-29-2007 11:43 PM
10-31-2007 08:13 PM
We had updated the app to use the latest version of WordReport.fp. Previously, the app was being built with old versions of WordReport.c, .h, .sub, and .fp, and Word2000.c, .h, .sub, and .fp included in the project.
We ripped these out and went with just the WordReport.fp included in the project. We did this on four different variants of the application. We have no problems except for the oldest app.
Maybe we've discovered why the original author was putting all of these files into the project instead of just the .fp. Could be it's doing something not quite right with WordReport that the other variants of the application avoid or have corrected, they were writen later.
We can't correlate the problem to any particular version of Win XP, or of Word.
It's going to be hard to localize this, since the exception isn't coming from a thread that CVI can hook, it looks like to me.
Menchar
11-01-2007 08:09 PM
LabWindows/CVI ActiveX Server Interface
CVI_AppSetBreakOnFirstChanceExceptions (CAObjHandle objectHandle, ERRORINFO *errorInfo, long enabled, long *returnValue);
|
|
Note This function signature is shown as it appears when you create a client using the LabWindows/CVI ActiveX Controller Wizard. If you create a client for the LabWindows/CVI ActiveX server interface using a different development environment, this function might be exposed differently. Some of the parameters documented here, such as objectHandle or errorInfo, are not applicable if you write a client using a different development environment. |
11-02-2007 06:54 PM
Why isn't there a WordReportSetBreakOnFirstChanceExceptions (CAObjHandle objectHandle, ERRORINFO *errorInfo, long enabled, long *returnValue);
function in WordReport.h ? Or something similar in Word2000.h?
It would seem that there should be per the CVI help file.
Menchar
11-02-2007 07:30 PM
11-05-2007 09:31 AM
For what it is worth, I'll mention that a few years ago we had weird problems putting a lot of material into Word from a CVI app via DDE. (specifically Word 2002 & XP; and no ActiveX - just basic DDE). My memory is a little foggy on the details, but the problem seemed to crop up when we exceeded a certain threshold of the number of bitmaps we pasted into the Word document. Narrowing it down was difficult and inconsistent, and depended on reboots, and the takeaway was that it was probably some memory management issue in between Windows & Word. We had some NI people in on the troubleshooting. In the end we simply limited the size of our Word files to dodge the problem.
If this seems like it is related, I could do some digging and provide more details.
Good luck,
Ian