Welcome Guest.   Make a donation to an author on the site December 18, 2014, 02:33:43 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Poss minor bug in JrDebug::ParseCommandlineArgString - version 1.01.18  (Read 6148 times)
walkerr
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« on: February 07, 2007, 06:00:12 AM »

Been using this version, and had a problem where quoted strings were in the command line - the inquote variable never gets set false basically.

The following fix seems to work

at line 60 in my copy, I have the def of the function:

bool JrDebug::ParseCommandlineArgString(const char* commandlinestr,char *arg0,bool &foundcommandlineargs)

then from line 104:

      else if ((c==34 && inquote==true) || (inquote==false && c==32) || c==0)
         {
         //rhw-marker
         inquote=false;
         //rhw-marker

The new line surrounded by marker just to reset inquote flag once quoted arg is stored

-- Rob
Logged
mouser
First Author
Administrator
*****
Posts: 33,769



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: February 07, 2007, 12:05:49 PM »

Great find, Rob, you're right - it's definitely needed.

Updating my version and i'll credit you in the release notes for next release smiley
Logged
walkerr
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #2 on: March 13, 2007, 09:47:23 AM »

You're welcome - and thanks

To be honest, I'm more of a Java programmer these days. My C++ is very rusty - JrDebug has been a big help to me untangling the rubbish code I've been writing!

- Rob
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.021s | Server load: 0.02 ]