On Sat, 2019-01-05 at 11:30 +0000, Nicholas Wilson via Digitalmars-d-learn wrote: > […] > Could you post a minimised example? Its a bit hard to guess > without one.
Indeed. I should do that to see if I can reproduce the problem to submit a proper bug report. […] > From the name, File_Ptr sounds like it is wrapping a reference to > a resource. So compare with C's FILE/ D's File which is a > reference counted wrapper of a FILE*. Would you ever use a File* > (or a FILE**)? Probably not, I never have. File_Ptr is wrapping a dvb_file * from libdvbv5 to try and make things a bit for D and to ensure RAII. libdvbv5 is a C API with classic C approach to handling objects and data structures. My DStep/with manual binding is at https://github.com/russel/libdvbv5_d and the application using it (which is causing the problems) is at https://github.com/russel/DVBTune I have a feeling that I am really not doing things in a D idiomatic way. -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk
signature.asc
Description: This is a digitally signed message part