English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Why I cannot open a graph with a specific title
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-28 (19:57)
From: Andy Yang <yyu08@y...>
Subject: [Caml-list] Why I cannot open a graph with a specific title
Hi, all

I found that with the following  code is OK:

open Graphics;;
let _ = open_graph "";;

However, if I set a title for a widnow

open Graphics;;
let _ = open_graph "hello";;

Ocaml will report "Fatal error: exception
Graphics.Graphic_failure("Cannot open display hello").

open_graph has a signature  string -> unit.

Thanks a lot!


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners