Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 23 MAY 2011 03:05:17AM Colin Rule wrote:

I am trying to interface with an OLE, and having some success, but one Get Property is causing the application to crash.

IDimensionList=OleGetProperty(DimGroupInfo,"dimensions")

dateAdded=OleGetProperty(DimGroupInfo,"dateAdded")

height=OleGetProperty(DimGroupInfo,"height")

DimensionCount=OleGetProperty(IDimensionList,"count")

The last line, 'count' is the one causing the crash, which is the number of objects in a collection.

I have traversed the object model in VB, and this works OK.

Is there any way to 'debug' an OLE link or some method to try and figure out the cause of the crash.

Colin


At 23 MAY 2011 03:26AM [email protected] wrote:

Colin,

What version of OI is this?

[email protected]

Captain's Blog

Battlestar Sprezzatura - BSG 77

Colonial leaders in all things RevSoft


At 23 MAY 2011 06:41PM Colin Rule wrote:

Version 8.0.8


At 01 JUN 2011 06:55PM Colin Rule wrote:

The problem has now been resolved.

The crashing was caused by the DLL being called, due to some minor inconsistency in the specific 'count' function within the DLL, something about inheritance, and was located and resolved in the Delphi debugger.

It seems VB does not seem to care as much when dealing with the Idispatch as much as OI does, I suspect OI is perhaps a little less forgiving. But, its nice to know it was not on the OI side.

Colin

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/b9ad0653889f3911852578990026efa5.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1