Jump to content

Access violation accessing session variables within a thread


Recommended Posts


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




produces the exception.


Thanks in advance


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...