UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 24672

9.1i EDK- A try-catch block does not work on a Xilkernel thread

Description

Keyword: try-catch block, xilkernel, C++  

 

When using a try-catch block in C++ with Xilkernel, the exception is not caught in the threads. It works only in the main function.

Solution

C++ requires larger stacks than C applications, and the default thread stack size in Xilkernel is low (1000 byte).  

 

This try-catch block will work when increasing the stack size for threads to 4000 bytes or higher, depending on your actual application. The related parameter is pthread_stack_size in the xilkernel definition.

AR# 24672
Date Created 09/04/2007
Last Updated 05/20/2014
Status Archive
Type General Article