Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 4 results for
getchildnode
- Page 1
printf and reference issue
Programming
Software Development
16 Years Ago
by Shay_
… get a value in an XML file : [code]sscanf(xEffect.
getChildNode
("mpmodif").getAttribute("value"), "%d"…
Re: printf and reference issue
Programming
Software Development
16 Years Ago
by Salem
Show us how test->GetMpModif() is implemented. If in debug, the member variable is fine, then my guess would be either - the 'get' function is doing the wrong thing. - the class instance may already have gone out of scope (check the dtor to see if it's called).
Re: printf and reference issue
Programming
Software Development
16 Years Ago
by Shay_
The getter is the below : [code]const int GetMpModif() const {return mpModif_;}[/code] In debug, the member variable is fine SOMETIMES. It does not seem to be a dtor problem but I think the variable affectation does not work for a strange reason... :(
Re: printf and reference issue
Programming
Software Development
16 Years Ago
by Salem
Seems to me that you have an unrelated memory overrun in another part of the program. As soon as you've set the value, and can verify that the correct value is stored, use the debugger to add a "watch" on that variable instance to detect another attempt to write to that location. Then allow the code to run (probably slowly if …
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC