+ Reply to Thread
Results 1 to 2 of 2

Thread: seg fault when disabling callbacks

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    1

    seg fault when disabling callbacks

    Passing NULL as the 4th param XlineConfigureChangedInputsCallback() to disable the callback is causing a segmentation fault on my wheezy build raspi (3.1.9+ #272 PREEMPT). Even the sample app iodemo does this for me so hopefully easy enough to reproduce.


    Perry

  2. #2
    Heber - Support nigelb's Avatar
    Join Date
    May 2010
    Posts
    26
    Perry,

    The function ConfigureChangedInputsCallback() takes three parameters, so I am guessing you are placing NULL into parameter three the callback function pointer. If this is the case NULL will be called causing the SEG FAULT. You can always pass a empty function pointer that does nothing.
    Nigel Brown
    Product Support Engineer
    Heber Ltd.
    SKYPE: nigel_b_heber

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts