Raised This Month: $12 Target: $400
 3% 

[ANY] Brief Question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 04-02-2012 , 17:08   [ANY] Brief Question
Reply With Quote #1

Consider the following pseudo-code:

Code:
global uninitialized A

if (CreateTimer(..., MyTimer, ...))
{
    Initialize A
}

MyTimer()
{
    Get A
}
Could I confirm, with a sufficiently small timer, that A can get accessed before it's initialized in the if-statement, and that I must choose a place like OnClientConnected to initialize the array instead (or simply initialize it from the start)?

Last edited by 11530; 04-02-2012 at 17:16.
11530 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode