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

Compile source of OCC with VS2005

°×ÏþÁÁ(Bai Xiaoliang)'s picture
Forums: 

Hi,
I successfully compiled source of OCC with VS2005. It sames all right, but all samples have memery leakage. In my opinion, it is caused by the different default setting of vs2005 and vs2003. Could anyone have the experience tell me am I right and how to correct it.

thanks.

Mikael Aronsson's picture

Hi!

First you should have a look at some old posts about this in the archive.

Visual studio will print out a message about memory leaks for any object that is not deleted before the application terminates, this does NOT mean that it is a memory leak.

One example is that you allocate a single object at the start and use this through out the lifetime of the application and igonore to delete it at termination, this is not a memory leak but will be displayed as such by VS.

OCC use it's own memory allocator and I guess this allocates lots of big chunks that is then used to allocate smaller objects and it is possible that it is those you see.

But then, of course it is also possible that you do have a memory leak...,
in the end, to get any use of the leak detector in VS you must have applications and libraries that free all objects at the end vene if it not needed, otherwise you ruin the idea with the leak detector.

Mikael

°×ÏþÁÁ(Bai Xiaoliang)'s picture

Every thing is right. And no memory leakage detected while I changed the setting of OCC according to old posts.
thanks.

Wi Wi Wi's picture

xlbai, how did you change the setting of OCC according to old posts. could you please let me know?

marco's picture

Hi,
are you able to debug Draw Test Harness?

°×ÏþÁÁ(Bai Xiaoliang)'s picture

Sorry, I do not known how to debut draw test harness.

°×ÏþÁÁ(Bai Xiaoliang)'s picture

Sorry, I do not known how to debug draw test harness.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.