Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How to prevent program from crashing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-31 (07:13)
From: Angela Zhu <angela.zhu@c...>
Subject: Re: Re: Re:Re: [Caml-list] How to prevent program from crashing
> Yeah, this is an abort from a failed assertion in C,
> so it isn't an Ocaml exception.
> I don't know how GTK handles this, that is, whether there is
> a way to register an error handler. You should ask
> Jacques Garrigue that.. hmmm. no I'll post this to the list
> because this is quite an interesting issue.
Thank you very much for your attention.
I wish this can be solved any way. :(

Best regards,
Dept. of CS, Rice Unitersity

> It would appear that this line in your code, which calls the
> GTK binding:
>  let appp = program2#buffer#get_text()
> is the source of the problem, and that would be a bug in the Ocaml
> library, not your code. Even if the buffer is empty, at least Ocaml
> the library should handle this.
> -- 
> John Skaller <skaller at users dot sf dot net>
> Felix, successor to C++: