For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

AIS_InteractiveObject: Initialization bug

Paul Jimenez's picture
Forums: 

After spending a few hours trying to track down a strange behavior, I found the reason for it. It only happens when I try to run a Delphi application that uses a DLL which makes heavy use of OCC. When it runs in C++, the strange behavior does not pop up.

In my copy of OCC 6.3, in file ais_interactiveobject.cxx, lines 56 to 69: myHasTransformation is NOT initialized. It should be set to Standard_False. It caused detected/selected shapes to be given a different location, thus making them impossible to track.

I modified my local copy to include the fix, and I hope you include it also in OCC's code.

P Dolbey's picture

OCCPATCH

(see http://www.opencascade.org/org/forum/thread_12668/ )

Paul Jimenez's picture

Good idea! It won't only help you, it will also help anyone looking for patches.

Dima's picture

Please show an example of use OpenCascade in Delphi. Very much I want to work with OpenCascade.

Pawel's picture

... not incorporated in OCCT 6.5.2

Pawel

Pawel's picture

Hello Paul,

I hope you don't mind me reporting this bug on the dev website...

http://tracker.dev.opencascade.org/view.php?id=22945

Paul Jimenez's picture

Hi Pawel.

I don't mind, but I thought the fix had been included already. I switched to my own visualization framework long ago now, so I wouldn't have known anyway.

Paúl.