PDA

View Full Version : Unexpected termination


FlashBulb
05-20-2008, 04:18 PM
After this past weekend, I returned to my Flex project, and something strange started happening. I noticed that I wasn't seeing the various trace outputs that I was used to when I ran it.

I realized that, whenever I run it, the following line gets output:

<terminated>file:/C:/Documents%20and%20Settings/my.name/My%20Documents/Flex%20Builder%203/MainProject/bin-debug/myProject.html

Why is my project terminating as soon as I run it? Even traces right at the start don't output! :confused:

drkstr
05-20-2008, 04:45 PM
I've run into strange permission problems before with Windows Vista. Is that what you're running? Regardless, try deleting the build files manually and then clean the project to see if that helps. Running Flex as Administrator might also help.

Hope this helps,
~Aaron

FlashBulb
05-20-2008, 04:49 PM
Thanks for the speedy response. No, I'm on Windows XP. I tried the delete-and-Clean, but it still terminates. :( How do I run Flex Builder as an Administrator?

FlashBulb
05-20-2008, 06:49 PM
Just wanted to add, this termination issue is happening with all my Flex Projects, old and new. :confused::eek:

FlashBulb
05-21-2008, 02:33 PM
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function doStuff():void{
mainPanel.alpha = mainPanel.alpha == 1 ? 0.1 : 1;
trace("Alpha change!");
}
]]>
</mx:Script>
<mx:Panel id="mainPanel">
<mx:Button id="mainButton" label="Press Me" click="doStuff()">

</mx:Button>
</mx:Panel>
</mx:Application>

It is strange, because the actionscript still works, it's just not connected to the Console window or something. In the example above, pushing the button will cause a change in .alpha, but it doesn't trace.

What could be causing this communication breakdown?

drkstr
05-21-2008, 06:21 PM
I'm sorry this is not the greatest answer, but in lieu of anything else I would completely uninstall Flex Builder and install it again. I remember having to do this on more then one occasion when I was running it in windows XP. It may be quicker then hunting for the root cause.

Good Luck!
~Aaron

FlashBulb
05-21-2008, 07:36 PM
Thank you for your brutal honesty. ;) LOL :)

FlashBulb
05-22-2008, 04:47 PM
Argh, I did the uninstall/reinstall, and the problem is still happening! HELP!!!

drkstr
05-23-2008, 04:52 PM
Ouch, that hurts. :o

Here are a few things you may want to consider.

Flash Player version? (do you have the debug version installed?)
Does installing the latest debug version help?
What browser are you using? Does it help to use a different one?
What happens if you create a new project in a different directory like C:\?
What happens if you login as Administrator and run Flex Builder?


From what I understand your projects are running ok, they just don't connect to the debugger right? This makes me think it's a problem with the debug player, but it also may be a permissions problem.

Hopefully some of this will be of help.


Good Luck!
~Aaron

FlashBulb
05-23-2008, 06:17 PM
Flash Player version? (do you have the debug version installed?)
Does installing the latest debug version help?
What browser are you using? Does it help to use a different one?
What happens if you create a new project in a different directory like C:\?
What happens if you login as Administrator and run Flex Builder?


From what I understand your projects are running ok, they just don't connect to the debugger right? This makes me think it's a problem with the debug player, but it also may be a permissions problem.

First thing I tried after reading this post - changing the launch browser from Firefox to IE resulted in non-termination, and the traces were tracin'! You, sir, are a genius, thank you!

Why would my Firefox suddenly crap out on me? It's what I've always used. Maybe some update messed it up...or maybe it's ALIVE and angry with me! :o:o:o

drkstr
05-23-2008, 07:01 PM
Microsoft insurgents have infiltrated your computer. Maybe reinstalling the flash debugger in firefox will help. Glad you got it sorted out!

~Aaron