Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - PX_ Property Exchange bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PX_ Property Exchange bug?

 Post Reply Post Reply
Author
Message
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Topic: PX_ Property Exchange bug?
    Posted: 25 January 2009 at 5:12pm
Version 10.42

Not sure if this is by design, but I did discover a problem with the property exchange mechanism while saving.

Lets say you have a string that is preceded by a space " ". Now we use that string to make a property.

tStr = _T(" All");
PX_Bool(&px,tStr,bVal);

During the "create" process GetEntryNode is called:

CXTPDOMNodePtr xmlEntryPtr = GetEntryNode(pszPropName, TRUE);

The process asserts in ASSERT(xmlNodeEntryPtr != 0);

xtppropexchange.cpp

removing the space allows the process to complete normally.



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2009 at 1:56am
Hi,
It have to be valid XML node string. Don't add this space.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2009 at 12:10am
Ya.. that's pretty much what I discovered thank you 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.