Multiple operations from within the same XOP
tangent
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!
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.
February 23, 2011 at 12:13 am - Permalink