I asked for a workaround or a kludge, knowing full well what the issues are. Luckily a kind person who knew more than me about the matter in hand suggested one.
I have over 20 years of programming experience including at assembler level, advanced Java, etc, but thanks for trying to put me in my place :-) --- On Wed 03/29, Steven Sacks < [EMAIL PROTECTED] > wrote: From: Steven Sacks [mailto: [EMAIL PROTECTED] To: [email protected] Date: Wed, 29 Mar 2006 05:03:37 -0800 Subject: RE: [Flashcoders] PrintJob causes Abort Script error message. I have explained in detail the source of your problem. If you choose not totake the advice given to you by coders who know more than you about thesubject at hand, then why post a question to the list? You are doingyourself and your client a disservice with your blame Macromedia attitudeand finger pointing.It's not the end of the world. Your code simply does not take into accounta synchronous call. That is not PrintJob's fault. That is not the Flashplayer's fault. You should fix your code now that you understand why it'sbreaking. The fact is, there's a real solution to your problem.Whether you realize it or not, you have already admitted that it is yourcode that is to blame. You have stated twice now that the application is areal-time trading system. In all likelihood, this means you have intervalsrunning and all kinds of parsing and drawing going on most of the time. Theexact kind of processes that would go haywire should Flash have to make asynchronous call with an indeterminate response time.PrintJob makes a synchronous call and Flash is single threaded. All yourreal-time stuff is reacting to the synchronous call. When a user pressesthe print button, you need to put a halt on new processes, wait for currrentprocesses to complete and then start the PrintJob. If it's going to takemore than 250ms, throw up a window that says something like "Preparing toprint". Upon completion of the PrintJob, you need to resync with the serverimmediately, and should probably put up a window that says something like"Sending data to printer" until the application is all caught up.Your SLI injection to increase the timeout as a solution is irreponsible.It is a heavy-handed technique fraught with potential problems far worsethan your printing one and it doesn't actually solve the problem, it justmasks it, and poorly. I wouldn't go live with that."Do the right thing." - Spike Lee> -----Original Message-----> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED]> Sent: Wednesday, > March 29, 2006 4:40 AM> To: [email protected]> Subject: Re: > [Flashcoders] PrintJob causes Abort Script error message.> > > >> Danny > Kodicek...I think I remember you from my Director > days, so long ago.That's > me. And I remember that you were a > bit belligerent then too ;)Danny > > > > Ahh yes, the old Direct-L days... sigh.> > Update: that hack gets it up to > about 1 min 20 before the > alert appears instead of around 20 secs. Not > ideal, but what the heck.> > I can't "fix" code which ain't broken. 50,000 > lines of real > time trading system works perfectly. One call to PrintJob and > > it all goes horribly wrong. Its a Flash Player / PrintJob > issue.If > Macrobe want Flash to be taken seriously as an RIA > platform issues such as > this need to be fixed before > Microsoft gets us all writing C#.....> > > _______________________________________________> Join Excite! - http://www.excite.com> The most personalized portal on the Web!> > > _______________________________________________> [email protected]> To change your subscription options or search the archive:> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders> > Brought to you by Fig Leaf Software> Premier Authorized Adobe Consulting and Training> http://www.figleaf.com> http://[EMAIL PROTECTED] change your subscription options or search the archive:http://chattyfig.figleaf.com/mailman/listinfo/flashcodersBrought to you by Fig Leaf SoftwarePremier Authorized Adobe Consulting and Traininghttp://www.figleaf.comhttp://training.figleaf.com _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

