Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5357

GPF + ChainPanelCallback -> theory

$
0
0

So I've been making a nifty library based in party by the time control library I made.  This new one takes a panel handle and turns chains a new callback onto it for handling proper sizing/scaling/moving the panel and its controls.  It's code that I tend to copy & paste a lot between projects, and which requires a lot of global variables and messy initialization.

 

So a lib made sense to me.  I got it all done and then implemented into a fairly large project which has five panels that called the lib.  But one of them was causing GPFs on a table on two different click events (Row/Col, and Right).  

 

I tracked it down to my usage in that table callback of assigning panel callbackData.

 

So here's my theory: whenever you do a callback chain (or possibly install as well, see my other post here), it's likely that the callbackData (if any) is getting corrupted on the stack, and therefore later when you pop it back off, it's not there.

 

Thoughts?

 

 

 


Viewing all articles
Browse latest Browse all 5357


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>