This project has moved. For the latest updates, please go here.

Object is not a function error

Feb 10, 2016 at 4:49 PM
Hi,

I Am trying to use global objects member within event handler, when event fired it throws exception "obj.PROCESSFAX is not a function". code is
var obj=new FaxProcessor.FaxProcess.Main();
var conncect=HotKeyNotifier.HotKeyPressed.connect(function(obj){
    obj.PROCESSFAX('sample.png');
}
does objects static member cause this error. works with other objects and outside of event handler.

Thanks and Regards
Praveen Kumar
Coordinator
Feb 10, 2016 at 8:06 PM
Hello Praveen,

Given the code above, your event handler's obj parameter hides the global object with the same name. Could that be the problem?

Thanks!