Open topic with navigation

TIBCO GridServer® 7.1.0

# Using Global Statics in C++ Service Code

By default, the Linux C++ Driver loads application libraries with `RTLD_LOCAL`, which only makes statics available within an object. This is done primarily to ensure that statics defined in a Service Session is unique.

However, this can cause issues in your application, such as when using dynamic cast with RTTI. Instead, you can use `RTLD_GLOBAL`, which makes statics available by any object in a process. There is an Engine Configuration option to set `RTLD_GLOBAL` to true to handle such cases.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO GridServer®

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.