Error using ADO in Add-in

Error using ADO in Add-in

Anonymous
Not applicable
204 Views
2 Replies
Message 1 of 3

Error using ADO in Add-in

Anonymous
Not applicable
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
0 Likes
205 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Wild guess...do you use any Apprentice calls? "dolphan" wrote in message news:33209301.1100008659032.JavaMail.jive@jiveforum1.autodesk.com... 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
0 Likes
Message 3 of 3

Anonymous
Not applicable
Nope, no apprentice
0 Likes