Quick response…have to state the obvious here :-]

 

Have you double/triple checked that the service name “nenService” (with correct capitalization) actually exists? I have seen cairngorm go into a spin when you try and use a service or obtain reference to a view that does not exist, it is throwing an error; it’s just not being caught.

 

You’ll have to open up the cairngorm code and locate the throw; should help track down the problem.

 

Best,

Malcolm

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Andora, Greg
Sent: Tuesday, 4 October 2005 4:57 AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Problem with ServiceLocator in Cairngorm

 

Hello everyone,

 

I'm running into a problem using the ServiceLocator within my Delegate contructor.  The Flash Player Debugger is providing no help because it is returning an error regarding RectBorder.as and hiding the true problem.  In my code (pasted below), you can see I have an Alert.show() before and after the line used to get my service.  The first Alert is shown, the second never is.

 

Does anybody have any ideas what could be causing this?

 

/* ==============================================================

 

import org.nevis.cairngorm.business.Responder;
import org.nevis.cairngorm.business.ServiceLocator;
import mx.utils.Delegate;

 

class com.littler.nen.business.NENDelegate
{
 
 public function NENDelegate( responder : Responder )
 {
  import mx.controls.Alert;
  
  Alert.show("Before Service Call");
  this.service = ServiceLocator.getInstance().getService( "nenService" );
  Alert.show("After Service Call");
  this.responder = responder;
  
 }

 

 ==============================================================*/

 

Thank you,
Greg Andora

 

 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




----

To ensure compliance with requirements imposed by the IRS, we inform you that any U.S. federal tax advice contained in this document (including any attachments) is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding penalties under the Internal Revenue Code or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com

Reply via email to