chriscrowhurst
IS-IT--Management
Hi,
My organisation is upgrading to Office 2010 soon. I am currently testing out some of our customisations made in some VBA apps. Several of these VBA apps both Word and Excel are crashing whenever they are accessing some DLLs written in VFP. The CreateObject call works fine, but as soon as I access any properties, BOOM!
For example :
Public Sub Test()
Dim o As MyVFPDLL.MyClass
Set o = CreateObject("MyVFPDLL.MyClass")
o.DatabaseUserName = "CHRISC" <----- CRASHES HERE
Set o = Nothing
End Sub
When the Office app crashes I get the standard "Microsoft Excel has stopped working" error, then it restarts again, but gives no indication of what has gone wrong. I have tried Windows 8.1 and 7.
This problem so far seems to only affect VFP calls. I tried some testings calling ADODB.Connection and ADODB.RecordSet and they are working fine.
Has anyone experienced this problem before and got any suggestions on how to fix it ?
My organisation is upgrading to Office 2010 soon. I am currently testing out some of our customisations made in some VBA apps. Several of these VBA apps both Word and Excel are crashing whenever they are accessing some DLLs written in VFP. The CreateObject call works fine, but as soon as I access any properties, BOOM!
For example :
Public Sub Test()
Dim o As MyVFPDLL.MyClass
Set o = CreateObject("MyVFPDLL.MyClass")
o.DatabaseUserName = "CHRISC" <----- CRASHES HERE
Set o = Nothing
End Sub
When the Office app crashes I get the standard "Microsoft Excel has stopped working" error, then it restarts again, but gives no indication of what has gone wrong. I have tried Windows 8.1 and 7.
This problem so far seems to only affect VFP calls. I tried some testings calling ADODB.Connection and ADODB.RecordSet and they are working fine.
Has anyone experienced this problem before and got any suggestions on how to fix it ?