View Single Post
Posts: 669 | Thanked: 433 times | Joined on May 2010
#14
First - An impressive application

from command line i get many times the following error:

---
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted
---

i find it very inconsistent - there are times that i paste the same command line to x-term and it works and some other times it gives this error - maybe a parsing issue - might be related to email address.

for example - this command gives the error:

/opt/watchdog/bin/watchdog -m 20 -i /home/user/MyDocs/DCIM/MotionDetection/ -s 1280 960 -r 1 2 -t 00:01:00 -e 'johns@gmail.com' 'Last image' 'Motion Detection' y

and this one doesn't:


/opt/watchdog/bin/watchdog -m 20 -i /home/user/MyDocs/DCIM/MotionDetection/ -s 1280 960 -r 1 2 -t 00:01:00 -e 'j@gmail.com' 'Last image' 'Motion Detection' y

the change is in the email address - i thought that it might be related to the length of the command but it isn't - i even tried shortening other values with no change - the error still happened.

Last edited by impeham; 2012-10-20 at 12:34.
 

The Following User Says Thank You to impeham For This Useful Post: