We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Infinite loops detection

Anonymous
Not applicable
Hi!
it would be great if Archicad could detect when an object is stuck in an infinite loop and would avoid interpreting it.
This causes crashes and is especially very annoying when the object is spread over the whole office when working in teamwork.
If you append to sync the library with a bad object it will be copied on every local copy when "send&receive" is pressed by client and is a pain to fix and causes some data loss.

Would that be possible in the future?
maybe I should make it a poll.

/olivier
2 REPLIES 2
Laszlo Nagy
Community Admin
Community Admin
Yes, I think you should make this into a wish.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
sinceV6
Advocate
Hi.

Just add a very high counter inside the loop so that if you create an infinite loop by accident, it'll stop after a certain amount of iterations.

Something like:
thisLoopCounter = 1

REPEAT

     thisLoopCounter = thisLoopCounter + 1

     the code inside the loop

UNTIL yourConditionIsTrue or thisLoopCounter > 10000
Easy to locate and fix. Hard to create the habit.

Best regards.