|
Hi there, i seem to have hit a BIG problem! Im building a new system for users at work and the functionality of the system so far is good. However a lot of the functionality is based on permissions applied to the user after they have logged in - there is a global variable that stores every users login name 'loginname'. However at some point, (although not always) if the user is doing a lot of work in the system by entering activity, creating companies, contacts etc then they will receive a message stating 'Error 94: Invalid use of null' and when I go to debug it will highlight a line of code that inevitably depends on the 'loginname' global variable. I have a little text box that holds the loginname after the user has logged in and it will disappear from there after the error message so it seems that the global variable is not persisting for the duration of the users login. Does anyone know why this might be the case? The main problem is i know why the error message appears but there seems to be no consistency in being able to replicate a scenario in which the global variable is dropped.
Can anyone help!?
Thanks,
Rhys. |