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.
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, Ac20-Ac27
Loving Archicad since 1995
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.

Start a new conversation!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!