why does the placement of DEFINE_MODULE matter for Autopatch Duet Module?
pushtoplay
Posts: 12
If I place the define module in the DEFINE_DEVICE section like the following, it works fine. However if I the define_module is placed in the the DEFINE_START section, it apparently never itializes. Anybody know why this is the case?
//OK
DEFINE_DEVICE
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
//NOT OK
DEFINE_START
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
//OK
DEFINE_DEVICE
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
//NOT OK
DEFINE_START
DEFINE_MODULE 'AutoPatch_Matrix_Switcher_Comm_dr1_0_0' INST(vdvAP1, dvAP)
0
Comments
I would say off hand something in your code between the Define_Device Section and the Define_Start section is causing the problem. I would comment out all the code except Define_Device section and the Define_Module in your Define_Start and see if the module works where it belongs in Define_Start. Then slowly add back code until you find the issue.