cancel
Showing results for 
Search instead for 
Did you mean: 

Recursion in RM

Former Member
0 Kudos
60

Hi all,

We are using EP6 SPS17 I have developed a recursive application that simply goes through any desired repository and store all the subfolders in a vector and then enable certain CM services of the stored subfolders. The application was working fine in the development environment but after applying the application on real-time repository with a huge number of subfolders the application gives a “stack overflow error”.

Any idea how to overcome this error.

Thanx,

Javed

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Well, recursion is dangerous if you don't plan for potential link or bind loops. Im KM, there's an IHierarchyWalker interface and an implementation you way want to use.

Best regards, Julian

Answers (1)

Answers (1)

former_member189326
Active Participant
0 Kudos

Javed,

<a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4609">this blog entry on recursive processing</a> gives an example of how to use the HierarchyWalker that Julian mentions, and it also explains where the error you are getting may be coming from.