Sample app: Limit output window queue to avoid out of memory exception