|
Home > Archive > Commerce Server General > March 2005 > Releasing Profile object..
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Releasing Profile object..
|
|
|
| Hi,
Is it necessary to dispose the instance of the profile object created
in aspx.vb page ? For Ex:
Dim UserProfileObject as Profile
UserProfileObject = CommerceContext.Current.UserProfile
'Read the profile or update the profile
After this, Is it necessary to call UserProfileObject.Dispose() ?
Will this release the memory ? I am getting the following error:
The profile object cache has become full. Please release dirty entries,
and try your operation again.
I was wondering releasing the object will fix this. Any ideas
appreciated.
Thanks,
Ravi
| |
|
| Have you found a way to solve the problem ?
arik
"Ravi" wrote:
> Hi,
> Is it necessary to dispose the instance of the profile object created
> in aspx.vb page ? For Ex:
>
> Dim UserProfileObject as Profile
> UserProfileObject = CommerceContext.Current.UserProfile
>
> 'Read the profile or update the profile
>
> After this, Is it necessary to call UserProfileObject.Dispose() ?
> Will this release the memory ? I am getting the following error:
>
> The profile object cache has become full. Please release dirty entries,
> and try your operation again.
>
> I was wondering releasing the object will fix this. Any ideas
> appreciated.
>
> Thanks,
>
> Ravi
>
>
| |
|
| No. I have not. But i went through the original code of Retail2002 that
i downloaded from Microsoft and there also, the object is NOT disposed.
I checked with C++ guys and what they say is, if you are not creating
a NEW instance, then it is NOT necessary to release it. The object will
get destroyed once if it goes out of the scope.
| |
|
| Thanx Ravi
I'll try with Microsoft people
arik
"Ravi" wrote:
> No. I have not. But i went through the original code of Retail2002 that
> i downloaded from Microsoft and there also, the object is NOT disposed.
> I checked with C++ guys and what they say is, if you are not creating
> a NEW instance, then it is NOT necessary to release it. The object will
> get destroyed once if it goes out of the scope.
>
>
|
|
|
|
|