Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3276

SQLCA in a shared object (yet again)

$
0
0


I know, asked and answered - global variables are not available to shared objects. However...

 

I was looking at some old code of 11 years ago from a multi-threaded task manager that our company still uses. In most cases, SQLCA is passed in to the shared object as a user object of type transaction. In some cases, and in these cases the code seems to work fine, the shared object instantiates a nonvisual, and this nonvisual's methods use the global SQLCA. So to simplify my question - does an object instantiated by a shared object have access to the main application's global variables? By appearances, I'd say 'yes'. By the book, 'no'.

 

Larry


Viewing all articles
Browse latest Browse all 3276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>