Re: make dll.c robust against it being listed in its configuration file...

From: Oliver Rauch (oliver.rauch@Wolfsburg.DE)
Date: Sat Oct 21 2000 - 00:54:53 PDT

  • Next message: abel deuring: "Re: scanimage: open of device sharp-s:/dev/sg0 failed: Invalid argument"

    Jochen Eisinger wrote:
    >
    > Hi!
    >
    > [Oliver Rauch]
    > > Hi Jochen,
    > >
    > > I think the right way is to look for "dll" in dll.conf and ignore it.
    > >
    > > There is a good reason for the links form libsane.so to sane/libsane-dll.so:
    > > All sane libraries can be used directly. You can link from
    > > sane/libsane-mustek.so to libsane.so and the mustek backend is loaded directly.
    > >
    > > If someone adds dll to dll.conf it is his fault, if I program a recursive loop
    > > that allocates memory I also get in trouble. So checking for dll in dll.conf
    > > is the correct way. dll should print a warning when it finds "dll" in dll.conf
    > > and ignore that.
    >
    > ... but that's what I suggested and Petter didn't like... what should we
    > do? I think you're right, Oliver. All we can do is to avoid loading dll
    > multiple times.

    Hi Jochen, hi Petter,

    I don`t think Petter is agains this solution, because it is not
    a "bad bugfix", it is the correct way to avoid recursive infinite calls
    of libsane-dll. - Correct Petter?

    Bye
    Oliver

    -- 
    Homepage:	http://www.wolfsburg.de/~rauch
    sane-umax:	http://www.wolfsburg.de/~rauch/sane/sane-umax.html
    xsane:		http://www.wolfsburg.de/~rauch/sane/sane-xsane.html
    E-Mail:		mailto:Oliver.Rauch@Wolfsburg.DE
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Sat Oct 21 2000 - 00:41:35 PDT