Message 1 of 3
Error using ADO in Add-in

Not applicable
11-09-2004
05:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I have developed an application that copy some inventor files, set properties and parameters and update the inventor files. I use a MS Access database to store the information (file path, parameter values and properties). When I run my application as an exe-file outside Inventor it works perfectly. But when I run my application as an Inventor add-in I got trouble. After I have run my application I can’t open aim-files. I get an error message and Inventor shuts down. I have attached the error message as an image. The error occurs in Windows XP, not in Windows 2000 and it only applies to iam-files, not ipt-files.
I have done a lot of debugging and found out that the error occurred after I have connected to the database. If I run my application without connecting to the database I don’t get the error when I open iam-files. I use VB6 and have used ADO 2.7 to connect to the database. I have also tested ADO 2.1, ADO 2.5 and ADO 2.6 but it doesn’t work. How do get around this?
Thanks in advance!
// Johannes
I have developed an application that copy some inventor files, set properties and parameters and update the inventor files. I use a MS Access database to store the information (file path, parameter values and properties). When I run my application as an exe-file outside Inventor it works perfectly. But when I run my application as an Inventor add-in I got trouble. After I have run my application I can’t open aim-files. I get an error message and Inventor shuts down. I have attached the error message as an image. The error occurs in Windows XP, not in Windows 2000 and it only applies to iam-files, not ipt-files.
I have done a lot of debugging and found out that the error occurred after I have connected to the database. If I run my application without connecting to the database I don’t get the error when I open iam-files. I use VB6 and have used ADO 2.7 to connect to the database. I have also tested ADO 2.1, ADO 2.5 and ADO 2.6 but it doesn’t work. How do get around this?
Thanks in advance!
// Johannes