Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Problem on Shutdown

Status
Not open for further replies.

CFB

Programmer
Jan 11, 2001
74
US
This is sort of a vague question, but I'm running into some trouble when closing out of VFP after instantiating a certain ActiveX control. When shutting down I receive the application error: 'The instruction at "0x004052e3" referenced memory at "0x0149326c". The memory could not be "read".' This happens in both the development environment and during run-time.

This is a custom control that was created for my company, so unfortunately it's not one people are going to be familiar with. I thought that I might not be releasing the object before shutdown causing the exception error to arise, but I don't think that's the case. Can anyone think what else might be causing this to happen? Any help would be greatly appreciated. Thanks.
 
have you tried RELEASE objectreference
before shuting down foxpro?

I found this in MSCD
An attempt was made to execute an instruction at an unaligned address and the host system does not support unaligned instruction references.

maybe you need to take this up with who developed this OCX for you.

Attitude is Everything
 
Unfortunately RELEASE doesn't seem to take care of the problem. I thought I might not be releasing the object as well, but that doesn't seem to be the case.

I plan on contacting the people who developed the control, but wanted to explore all other avenues before involving them. They aren't very familiar with VFP and it works fine in a VB/VC++ environment, so I figure it must have something to do with the way it's interacting with VFP. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top