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

From: Jochen Eisinger (jochen.eisinger@gno.de)
Date: Fri Oct 20 2000 - 13:32:46 PDT

  • Next message: Sebastien Sable: "Re: Problems with Acer ScanPrisa 640S"

    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.

    -- jochen

    --
    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 : Fri Oct 20 2000 - 14:38:59 PDT