Print Page | Close Window

Session Variables corrupted

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=5715
Printed Date: 01 May 2024 at 2:33pm


Topic: Session Variables corrupted
Posted By: danarthurs
Subject: Session Variables corrupted
Date Posted: 06 Mar 2009 at 11:28am

Hi there!  I am having problems with session variables and was wondering if anyone has seen this problem before.

What is happening is that after I create the report, I store it in a Session variable (ch 14/Vol 2 of Brian's book) so that i can use it the second time around.  During the Page Unload, I Close and Dispose of my originating Report variable (crDoc) and certain fields on the Session Variable are corrupted.  So then when i go to use it the second time, it fails on a 'Load Report' failure.
 
I can't see any way to post my before or after image to this post (so you can see the session variables being destroyed, but if you'd like more information, let me know and i'll send you what i have.
 
Thanks in advance!



Print Page | Close Window