In effetti sul computer che uso ci sono una miriadi di font,
mi è stato prestato da uno studio grafico.
Per il secondo problema hai centrato la soluzione come al solito.
Fuziona sia se il timer è su un altra finestra sia che si trovi sulla stessa
del player. Grazie
Vedo con piacere che conosci bene sia RB che Mac.
Cordiali saluti
Mario Graziani
----- Original Message -----
From: "Massimo Valle" <maxduepuntozero at yahoo dot it>
To: "REALbasic NUG Italian" <realbasic-nug dot it at lists dot realsoftware dot
com>
Sent: Wednesday, June 20, 2007 10:09 PM
Subject: Re: Problemi RTFData
On 20/giu/07, at 16:55, Mario Graziani wrote:
Il file non è poi così grande, è di circa 40 Kb.
Sono circa 10/12 pagine di stampa.
In effetti ho provato con un file da circa 40KB e ci mette
un'eternità. Il tempo richiesto è esponenzialmente proporzionale alla
dimensione del documento.
Ora però, siccome il problema si presenta sia con il metodo interno
di RB e sia con il modulo che ti ho suggerito, ritengo la causa sia
esterna. Ho dato un'occhiata al codice del modulo e direi che non è
molto ottimizzato, ma facendo qualche ottimizzazione non si ottiene
nulla di straordinariamente più rapido. Ho anche notato che loopa
molto frequentemente l'elenco dei fonts e questo mi fa pensare che
tanti più fonts sono installati e tanto più tempo ci voglia. Magari
il problema sta proprio lì e forse serve (anche a RS) qualche
algoritmo migliore per la ricerca di un font, che non sia la
pedissequa scansione in un ciclo for next.
Il programma è corredato di un Help in linea sottoforma di filmati avi.
Su windows riesco a chiudere la finestra che ospita Mediaplayer alla fine
del filmato con il controllo dello stesso Stop, sul Mac con QuickTime
utilizzando lo stesso
codice dopo che si è chiusa la finestra che ospita il player
il debug esce senza avvisi se non il laconico messsagio che odio con
tutto me stesso.
Penso de devo dare un comando al player dopo la rilevazione dello stop
prima di chiudere la finestra ma non so quale, li ho provati quasi tutti.
Per non farlo uscire dovrò far chiudere la finestra all'utente, in questo
caso non esce.
Grazie ancora
A volte con alcuni controlli succede. Il comportamento da un sistema
operativo ad un altro è spesso differente.
Prova, nell'evento stop, a far partire un timer dichiarato in un
modulo come un'istanza di una sottoclasse di Timer e quindi esterno
alla finestra in cui risiede il movieplayer. Il timer dovrà
unicamente chiudere la finestra con un leggerissimo ritardo (es. 500
millisecondi).
Massimo Valle
From pinkgirl85236 at yahoo dot com dot cn
Return-Path: <pinkgirl85236 at yahoo dot com dot cn>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id 7A7652E8702E; Wed, 20 Jun 2007 22:06:04 -0700 (PDT)
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level: *************************************************
X-Spam-Status: Yes, score=49.2 required=4.5 tests=ADDR_NUMS_AT_BIGSITE,
BAYES_99,CHARSET_FARAWAY_HEADER,GAPPY_SUBJECT,NO_REAL_NAME,
RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,
RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_BL_SPAMCOP_NET,
RCVD_IN_SORBS_DUL,RCVD_IN_XBL,SUBJECT_ENCODED_TWICE,URIBL_AB_SURBL,
URIBL_BLACK,URIBL_OB_SURBL,URIBL_SC_SURBL,URIBL_WS_SURBL
autolearn=spam version=3.1.1
X-Spam-Report:
* 1.0 NO_REAL_NAME From: does not include a real name
* 1.7 SUBJECT_ENCODED_TWICE Subject: MIME encoded twice
* 2.0 GAPPY_SUBJECT Subject: contains G.a.p.p.y-T.e.x.t
* 3.2 CHARSET_FARAWAY_HEADER A foreign language charset used in headers
* 5.0 BAYES_99 BODY: Bayesian spam probability is 99 to 100%
* [score: 1.0000]
* 1.5 RAZOR2_CF_RANGE_E8_51_100 Razor2 gives engine 8 confidence level
* above 50%
* [cf: 100]
* 1.5 RAZOR2_CF_RANGE_E4_51_100 Razor2 gives engine 4 confidence level
* above 50%
* [cf: 100]
* 3.5 RAZOR2_CHECK Listed in Razor2 (http://razor.sf.net/)
* 4.0 RAZOR2_CF_RANGE_51_100 Razor2 gives confidence level above 50%
* [cf: 100]
* 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP
address
* [218.233.10.68 listed in dnsbl.sorbs.net]
* 2.0 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in
bl.spamcop.net
* [Blocked - see <http://www.spamcop.net/bl.shtml?218.233.10.68>]
* 3.9 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL
* [218.233.10.68 listed in zen.spamhaus.org]
* 3.0 URIBL_BLACK Contains an URL listed in the URIBL blacklist
* [URIs: dpopd.com]
* 4.5 URIBL_SC_SURBL Contains an URL listed in the SC SURBL blocklist
* [URIs: dpopd.com]
* 3.8 URIBL_AB_SURBL Contains an URL listed in the AB SURBL blocklist
* [URIs: dpopd.com]
* 2.1 URIBL_WS_SURBL Contains an URL listed in the WS SURBL blocklist
* [URIs: dpopd.com]
* 3.0 URIBL_OB_SURBL Contains an URL listed in the OB SURBL blocklist
* [URIs: dpopd.com]
* 1.4 ADDR_NUMS_AT_BIGSITE Has an address with lots of numbers at a big
* ISP
Received: from localhost.localdomain (unknown [218.233.10.68])
by xmail.realsoftware.com (Postfix) with ESMTP id 2ABB32E87024
for <listarchive at realsoftware dot com>; Wed, 20 Jun 2007 22:06:03
-0700 (PDT)
Received: by localhost.localdomain (Postfix, from userid 48)
id 26E49324C2B; Thu, 21 Jun 2007 13:54:27 +0900 (KST)
To: listarchive at realsoftware dot com
Subject: *****SPAM*****
=?ISO-2022-JP?B?GyRCQC1NXyRAJDEkTztfJGEkaSRsJEokJBsoQjQwGyRCOlAwSj5lGyhC?=
=?ISO-2022-JP?B?GyRCJE4kKiRQJDUkc0MjGyhC?=
From: <pinkgirl85236 at yahoo dot com dot cn>
Resent-Sender: pinkgirl85236 at yahoo dot com dot cn
Message-ID: <20070621135427 dot 63886 at yahoo dot com dot cn>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
Content-Transfer-Encoding: 7bit
Resent-Message-Id: <20070621045427 d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