﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Where is logical place to create global object that will live throughout session?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 04 Jun 2026 04:30:36 GMT</lastBuildDate><ttl>20</ttl><item><title>Where is logical place to create global object that will live throughout session?</title><link>http://forum.strataframe.net/FindPost9363.aspx</link><description>Hi,&lt;P&gt;Where would be the logical place to instantiate a global COM object that should live throughout the life of a session.&amp;nbsp; This object will be used to communicate with a VFP layer and will be accesed from many places in the application.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alex</description><pubDate>Wed, 06 Jun 2007 12:51:26 GMT</pubDate><dc:creator>AlexSosa</dc:creator></item><item><title>RE: Where is logical place to create global object that will live throughout session?</title><link>http://forum.strataframe.net/FindPost9380.aspx</link><description>[quote][b]Ben Chase (06/06/2007)[/b][hr]Place it in a Shared (static) variable on a class somewhere. Then, instantiate it in the InitApplication() method of the AppMain.vb (Program.cs) file and you will be able to access it from anywhere by typing ClassName.GlobalVariableName.[/quote]&lt;br&gt;
&lt;br&gt;
Ben, any chance you could offer a sample please?</description><pubDate>Wed, 06 Jun 2007 12:51:26 GMT</pubDate><dc:creator>Ben Hayat</dc:creator></item><item><title>RE: Where is logical place to create global object that will live throughout session?</title><link>http://forum.strataframe.net/FindPost9367.aspx</link><description>Place it in a Shared (static) variable on a class somewhere.&amp;nbsp; Then, instantiate it in the InitApplication() method of the AppMain.vb (Program.cs) file and you will be able to access it from anywhere by typing ClassName.GlobalVariableName.</description><pubDate>Wed, 06 Jun 2007 11:07:44 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>