From: Frederic B. <br...@ma...> - 2002-07-16 16:47:11
|
> I made a few changes in the C code recently. It's about accessing the > SDL values from caml : objects like SDL_Surface were just cast into > value . It is a little unsafe and the caml manual recommends wrapping > such pointers in caml blocks not traced by the GC (see section 17.2.3 > "Pointers outside the heap"). Hi, Thanx Olivier for working actively on the project. As you may I not as active as I should be but I'm still looking on the projects for changes. You're right about the issue of simply casting C pointers to OCaml value. I've missed this detail. Apparently using directly a pointer could cause troubles when freeing the memory in the C-side. -- Frederic Brunel (brunel @ mail.dotcom dot fr) "You can't rush art." |