![]() |
CXTPControl causing CArchiveException |
Post Reply ![]() |
Author | |
johnmichael ![]() Groupie ![]() Joined: 30 June 2009 Location: United Kingdom Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() Posted: 17 May 2013 at 7:06am |
Hi
I've been making a patch to following function:
I created a new Schema version and set it to the current version in XTPPropExchange.inc ...
.... Inside the DoPropExchange function I added: ... ... The idea being that storing the numerical number for id is pretty bad since the resource.h file that these ids are defined in can change underneath the toolkit invalidating the registry. So instead I look up and store the actual string tag name, and resolve that back into / from the ID when saving and loading. However, despite adding a new schema for my specific change I am now getting CArchiveException thrown, and caught the cause parameter indicates 'badindex'. However I placed breakpoints on everywhere in the xt code I could find the CArchiveException being thrown and I could not find anywhere it was being thrown. Looks like its coming from within microsofts platform libraries. Any help / better understanding on what I could be doing wrong would be great. I've debugged my new parameter and it is indeed being resolved correctly. to the string and vice versa. However I cannot check the registry values because they appear to be a compressed byte stream of the objects serialised. This is making it all very hard to debug and understand what has gone wrong. The only thing I can think off is that I've exceeded some capacity limit on the amount of data the control object can serialize however that seems a rather arbitrary reason. Has anyone got any experience with this? Many thanks Jm
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |