Subroutine, can't continue error

In the following script I get an error: “Capture One 10 got an error: Can’t continue Iter.” I’m not immediatlely sure why. Sorry if this is an obvious thing, I’m still finding my way around Applescript.

tell application "Capture One 10"
	set Pool to collection "Pool" of collection "Exports" of document 1
end tell

on Iter(c)
	log (c)
end Iter

You’re in an tell application block so Capture One 10 doesn’t understand the event handler. Change the call to

-- my bounces the focus back to current application
my Iter(Pool)

and you’re fine

Got it. thanks.