Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Serious Bug in HistoryManager (introduced in latest release?)   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward  | 
Re: [flexcoders] Re: Serious Bug in HistoryManager (introduced in latest release?)

Here's a reply i got from one of the engineers, Alex Harai on what could be a related issue.


This error occurs for two reasons:  One is that somehow, the DragManager or DragManagerImpl is not linked into the movie.

The other, and more common reason is that more than one module is using the DragManager, but the main application does not..  Modules operate in their own application domain, and thus cannot share singletons unless that singleton is loaded by the parent application domain.  The simple solution is to link the DragManager into the main application by putting something like this in a script block

import mx.managers.DragManager;

var dm:DragManager;

This fattens your application a little.  More complex solutions involve loading the DragManager into the main application’s application domain.

The above is true for all managers handled by Singleton and lots of other shared classes in Flex as well.





On 06/02/2007, at 11:49 AM, zenwarden wrote:

I am seeing this mostly when I run unit test using the flexunit.swf.
And I am consistantly seeing it in that situation

I do occasionaly see it when running a single-swf app through the
builder (However it is making a connection to a server when it occurs).

Chris W

--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<bjorn.schultheiss@...> wrote:
>
> does your app use modules, or built using multiple swfs?
>
>
> On 06/02/2007, at 5:49 AM, zenwarden wrote:
>
> > There appears to be a failry serious bug that I think was introduced
> > in the history manager in the latest release 2.0.1
> >
> > I never got this errro until I updated and I now see it in a variety
> > of situations (including whenever I run testcases. )
> >
> > Shutting down the borwoser or even switching borwsers does NOT help. I
> > mostly see it when I am running from the flex builder, but when you
> > are trying to run tests -- this becomes failry serious and very time
> > consuming.
> >
>




Tue Feb 6, 2007 12:57 am

bjorn.schult...
Offline Offline
Send Email Send Email

Forward
 | 
Expand Messages Author Sort by Date

There appears to be a failry serious bug that I think was introduced in the history manager in the latest release 2.0.1 I never got this errro until I updated...
zenwarden
Offline Send Email
Feb 5, 2007
6:50 pm

does your app use modules, or built using multiple swfs?...
Bjorn Schultheiss
bjorn.schult...
Offline Send Email
Feb 5, 2007
9:52 pm

The only known workaround is to not use the history manager. I keep bumping this on the Adobe forums, to no avail: ...
Chris Luebcke
cluebcke
Online Now Send Email
Feb 5, 2007
11:49 pm

Sorry Bjorn, I should note: I was experiencing this problem when my app was a single monolithic SWF. When I started breaking it into modules, I started getting...
Chris Luebcke
cluebcke
Online Now Send Email
Feb 5, 2007
11:51 pm

I am seeing this mostly when I run unit test using the flexunit.swf. And I am consistantly seeing it in that situation I do occasionaly see it when running a...
zenwarden
Offline Send Email
Feb 6, 2007
12:49 am

Here's a reply i got from one of the engineers, Alex Harai on what could be a related issue. This error occurs for two reasons: One is that somehow, the ...
Bjorn Schultheiss
bjorn.schult...
Offline Send Email
Feb 6, 2007
12:57 am

I will give it a try. One question and one comment: Question: Did you actually mean drag manager or did you mean History manager? (I'll try both sperately). ...
zenwarden
Offline Send Email
Feb 6, 2007
7:43 pm

I can't test the fix because I cannot replicate the bug. It has mysteriously vanished...The next time I see it, I will try the suggested fix and report back. ...
zenwarden
Offline Send Email
Feb 7, 2007
6:07 pm

Yo Z, Each Manager is registered as a singleton. code excerpt; Singleton.registerClass("mx.managers::ICursorManager", Class ...
Bjorn Schultheiss
bjorn.schult...
Offline Send Email
Feb 7, 2007
10:27 pm

Hey, Don't get me wrong here but, what happens when you use getClassDefinition() and you didn't link in your class as a static dependency? Same error as you...
Michael Schmalle
teotigraphix
Offline Send Email
Feb 7, 2007
10:47 pm

Oh yeah one more thing. I know why they did this. At least a perspective. If you have version 2.0 linking in ManagerA and they change the implementation to...
Michael Schmalle
teotigraphix
Offline Send Email
Feb 7, 2007
10:47 pm

I believe so as well. Pretty smart. I don't think the problem is in how they register the Class ( actually i think this process is a stroke of genius ) but...
Bjorn Schultheiss
bjorn.schult...
Offline Send Email
Feb 7, 2007
11:02 pm

Hi Bjorn, These classes get statically linked when the definition is read by the flash playe IE class loading. So obviously this is why import bla, private var...
Michael Schmalle
teotigraphix
Offline Send Email
Feb 7, 2007
11:14 pm

Hey Mike, ... For sure they ( Flex Engineers ) considered this. The problem i see here is that how are you ( the app architect ) to determine what dependencies...
Bjorn Schultheiss
bjorn.schult...
Offline Send Email
Feb 7, 2007
11:39 pm

... Agreed :) ... flex engineer :) ... no comment ;-) And agreed that modules created the problem big time. Especially since I can see module sharing API's in...
Michael Schmalle
teotigraphix
Offline Send Email
Feb 7, 2007
11:50 pm

Exactly.. At the moment its not to bad because i am overseeing the development of our entire application, but when you start mentioning module sharing API's...
Bjorn Schultheiss
bjorn.schult...
Offline Send Email
Feb 8, 2007
12:13 am

I'm not sure what the particular dynamic registration code was for in this case, but I can tell you that the module code was developed entirely separately from...
Roger Gonzalez
spamspambake...
Offline Send Email
Feb 8, 2007
1:03 am

Fair enough. I welcome the introduction of modules. My favourite 2.01 inclusion. btw, which part of ApplicationDomain is basic? *joke Regards, Bjorn...
Bjorn Schultheiss
bjorn.schult...
Offline Send Email
Feb 8, 2007
1:09 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help