Commerce Server General - Releasing Profile object..

This is Interesting: Free IT Magazines  
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..
Ravi

2005-02-28, 5:53 pm

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

arik

2005-03-10, 7:47 am

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
>
>

Ravi

2005-03-11, 5:53 pm

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.

arik

2005-03-12, 5:49 pm

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.
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com