On 31/03/2010 00:48, Dino Viehland wrote:
Absolutely -- the fix already made it in for 2.6.1 and it does cover
all methods on IsolatedStorageFile -- so this should just work.
Cool - thanks. :-)
Michael
*From:* users-boun...@lists.ironpython.com
[mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Michael Foord
*Sent:* Tuesday, March 30, 2010 4:41 PM
*To:* Discussion of IronPython
*Subject:* Re: [IronPython] IsolateStorage.GetUserStoreForApplication
throws SystemError in IronPython 2.6
On 31/03/2010 00:37, Michael Foord wrote:
For what it's worth I've just hit this problem too, but with
GetUserStoreForApplication.
Bah, and store.FileExists(...). Probably all methods in that api. :-(
Any chance of fixing this for 2.6.1?
Michael
Michael
2010/3/16 Dino Viehland <di...@microsoft.com <mailto:di...@microsoft.com>>
A possible work around for this is:
def f():
for i in xrange(200):
try:
return
System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite()
except: pass
After enough invocations we will no longer use reflection to call it.
We just need to add IsolatedStorageFile to a black list of things that
shouldn't
be invoked via reflection.
> -----Original Message-----
> From: users-boun...@lists.ironpython.com
<mailto:users-boun...@lists.ironpython.com> [mailto:users- <mailto:users->
> boun...@lists.ironpython.com <mailto:boun...@lists.ironpython.com>]
On Behalf Of Lukas Cenovsky
> Sent: Tuesday, March 16, 2010 6:37 AM
> To: Discussion of IronPython
> Subject: [IronPython] IsolateStorage.GetUserStoreForApplication throws
> SystemError in IronPython 2.6
>
> Hi all,
> one cannot use IsolatedStorage in IronPython 2.6.
> Calling IsolatedStorageFile.GetUserStoreForApplication() throws
>
> SystemError: Application code cannot access
> System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForSite()
> using Reflection.
>
>
> It works fine in IronPython 2.0.2.
>
> I've entered a bug:
> http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26488
>
> --
> -- Lukáš
>
> _______________________________________________
> Users mailing list
> Users@lists.ironpython.com <mailto:Users@lists.ironpython.com>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com <mailto:Users@lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
_______________________________________________
Users mailing list
Users@lists.ironpython.com <mailto:Users@lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your
employer, to release me from all obligations and waivers arising from any and all
NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap,
confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS
AGREEMENTS") that I have entered into with your employer, its partners, licensors,
agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges.
You further represent that you have the authority to release me from any BOGUS AGREEMENTS
on behalf of your employer.
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com