Hi,
Is it possible to check for a bad ptr, I don't just mean checking if it is NULL?
Regards,
Steve
Hi,
Is it possible to check for a bad ptr, I don't just mean checking if it is NULL?
Regards,
Steve
Of course there isn't.
If there be such a way, it would make things easier for everybody, right?
You could read a bit about QPointer.
Regards
So nothing like if AfxIsValid or AfxIsValidAddress then?
Reason I am asking is for some reason, my dropMimeData function in my model is getting called when I double click on the table view that is using the model.
Regards,
Steve
Then why don't you use AfxIsValidAddress?
There is also a solution for Mac: http://lists.apple.com/archives/Darw.../msg00326.html.
Not sure on Linux, but there has to be.
Anyway, you could split this code in three platform dependent parts ( Win, Linux, Mac ). But this is only if you need your app running on other platforms.
Regards
Thanks for the link
Regards,
Steve
Bookmarks