It depends. Most of the “createNew()” functions just do
return new SomeConstructor();
Should that fail, then things are TARFU anyway (see
https://en.wikipedia.org/wiki/List_of_military_slang_terms#TARFU :-)
In a few cases, however, the “createNew()” function takes some extra
parameter(s). If these parameter(s) are invalid, then the “createNew()”
function returns NULL. An example of this is
"ByteStreamFileSource::createNew()”, which takes an extra ‘fileName’ parameter.
If that file does not exist (or could not be opened for reading), then
“createNew()” returns NULL.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel