J
JimO
The problem is that a global boolean variable is being changed from true to
false, sometimes. We saw it happen three out of 11 tests. It is not being
reset by code. How can this happen?
The biggest fears is that if the value of one variable can be changed by the
"system" then any variable can be changed by the system.
Facts.
The database references the boolean variable only five times and never in
either code library.
Once to declare: Public gbooUseCDO as Boolean
Once when intializing and the initialization routine is executed only
once per run.
If conditions = true
gbooUseCDO = true <====== Set to true here
else
gbooUseCDO = false
end if
Twice at various points.
if gbooUseCDO then <====== three out of ten times the
value was False at this point.
code
else
code
endif
Additional information.
The database was originally coded in Access 2000, ported to 2002, and now
2003. "Track name AutoCorrect Info" was enabled on until recently, although
this variable was added after disabling the option.
References
Visual Basic for Applications
Microsoft Access 11.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.7 Library
Microsoft Excel 11.0 Object Library
and the two .mda code librarys
System configuration
MS Windows Server 2003 Standard Edition SP 1
Access 2003 SP2 (MS Office Professional Edition)
The server is being accessed by remote desktop via a VPN connection .
false, sometimes. We saw it happen three out of 11 tests. It is not being
reset by code. How can this happen?
The biggest fears is that if the value of one variable can be changed by the
"system" then any variable can be changed by the system.
Facts.
The database references the boolean variable only five times and never in
either code library.
Once to declare: Public gbooUseCDO as Boolean
Once when intializing and the initialization routine is executed only
once per run.
If conditions = true
gbooUseCDO = true <====== Set to true here
else
gbooUseCDO = false
end if
Twice at various points.
if gbooUseCDO then <====== three out of ten times the
value was False at this point.
code
else
code
endif
Additional information.
The database was originally coded in Access 2000, ported to 2002, and now
2003. "Track name AutoCorrect Info" was enabled on until recently, although
this variable was added after disabling the option.
References
Visual Basic for Applications
Microsoft Access 11.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.7 Library
Microsoft Excel 11.0 Object Library
and the two .mda code librarys
System configuration
MS Windows Server 2003 Standard Edition SP 1
Access 2003 SP2 (MS Office Professional Edition)
The server is being accessed by remote desktop via a VPN connection .