Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

New to AF, Crashing App

So a little update. I've disabled one of the actors in turn. Both run successfully on their own. It's only when run together that they crash Labview. Does that give any clues?

0 Kudos
Message 11 of 13
(976 Views)

Correction to my last. Both actors will run together as long as I don't try to register one to the other.

This morning I disabled the calls to register the UI with the pump and the pump with the UI. Those seem to be the issue. I made them more sequential to better match the evaporative cooler demo. I've tried disabling each call in turn. They both are causing the failure. I've tried to probe the UI actor vi to see if the message makes it there. It seems to crash before anything makes it to that VI.

My plan this morning is to check things into source control as is, then try making the UI a nested actor of the controller. The more I think about it, there is no reason I couldn't do that. Even if that works, I'd still like to figure out why my first approach doesn't work.

0 Kudos
Message 12 of 13
(976 Views)

So I changed my code to have the GUI be a nested actor. The first run resulted in a corrupted AF. This is the second time that has happened. The first time I thought it was a fluke. I had to remove the AF code form vi.lib and repair my LV install (2015 sp1, btw). Since I've done that, the code works fine. I've also taken the added step to set all my AF libraries to read-only. Hopefully this prevents issues in the future. Not sure why LV lets you change anything in vi.lib anyway, but that's a different story. I certainly didn't change anything intentionally, but I do use the save-all option in my project, so that may have done something.

I'm moving on at this point, but if someone digs in to figure out what happened here, I would be very interested. Attached is the "corrupt" AF libraries if that helps. I did try clearing the compile cache before jumping to the step of delete and repair. That did nothing.

[edit] I did not go back and try the non-GUI nested actor version. Unfortunately I don't have time. If someone does help me dig in, I could be tempted to go back and try that.

0 Kudos
Message 13 of 13
(976 Views)