Multiple operations from within the same XOP

Hi, I have a working XOP that interacts with hardware (it came with an API and I am basically calling the C functions from within my XOP). Now I am trying to incorporate another set of instructions for the same hardware but in a different method/operation. It says under the XOP toolkit manual that you can have more than one operation inside the XOP. Yet I am getting a crash that is not even able to be debugged. Just wondering if there are any XOP pro's out there if they could tell me if this seems like I'm on the right track, (The new operation is called Cyclops whereas the old one is called DP)

I included an extra Execute method (ExecuteCyclops), for the new operation. I also included another Register method (RegisterCyclops), and inside RegisterOperations I have included an extra line :

if (result=RegisterCyclops())
return result;

which goes underneath the existing line:
if (result=RegisterDP())
return result;


There is also another Runtimeparam structure declaration that was made using the generating starter code function in Igor.

Now I feel that this should work, does anyone have any advice or suggestions as to what could be going wrong?

Any help much appeciated!
It should work. I suspect the crash has nothing to do with the fact that you have two operations.

Set a breakpoint in your main function. If it crashes before getting to your main function (and even if it doesn't), check your XOPC resource to make sure it correctly declares both operations.

I recommend that you put the code for each operation in a separate file as this makes it easier to read the file but that is just a style thing.

I would try to determine when the crash is occurring. It could be when Igor examines the XOP's resource at launch time (when scanning extensions), it could be when the XOP's main is called, it could be in the RegisterOperation callback, it could be when the operation is compiled, it could be when the operation is executed.