Jump to content

Access violation accessing session variables within a thread


estrify

Recommended Posts

Hi,
 

We need some light with this problem: access violation exception accessing session variables within a thread.

 

The problem is that UniMainModule is a function that returns TUniMainModule(UniApplication.UniMainModule) and we suppose that UniApplication is another function. Please, we need to know the necessary direct casting we have to do to access session's data avoiding the usage of such functions within the thread.

 

We attach the progress bar example modified to conceptually do what we need. In progressbartest.pas, the line


 

Index_Max:=UniMainModule.Index_Max


 

produces the exception.
 

 

Thanks in advance

20130131_Access_Session_Data_Within_A_Thread.rar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...