Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Problem in example code (Tried SplitterFrame yet minor problem.)
Re: Problem in example code [message #45944 is a reply to message #45942] Sat, 30 January 2016 06:37 Go to previous messageGo to previous message
vegaonline is currently offline  vegaonline
Messages: 35
Registered: December 2015
Location: Mumbai, India
Member

dolik.rce wrote on Sat, 30 January 2016 01:13
Hi Abhijit,

I don't immediately see any problem with your code, without actually running it...

If I were you, I'd try to add some logging into key places of the code, to figure out where exactly is the problem. Use LOG and DUMP macros, which produce a log when the application is compiled in debug mode. To see the log, just press Alt+L or go to Debug > View the logfile. I'd start with adding DUMP(json) after the loop. Also, I guess you already tried inspecting the values of id, by adding PromptOK. Does it show the names of fields you are expecting?

Also, the code seems little over-complicated. Have a look at examples in reference/Jsonize. It displays exactly what you want, saving large structures into json file (just not as dynamically as you try to do it). Also reference/SelectFile might be of some help.

Best regards,
Honza



Hi Honza,

Thanks. Earlier I tried to see the DUMP file and now again I checked. It reports " json = {}". Also PromptOK did not show as the code did not go through that "IF" loop " if (dynamic_cast<EditField *> (q)) ".

Best,
Abhi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Issues using 2015.2 version
Next Topic: How to build FREBSD *.so in Windows?
Goto Forum:
  


Current Time: Thu May 09 06:20:28 CEST 2024

Total time taken to generate the page: 0.03267 seconds