Hi Phil:

I have found a bug in the "catch(char *)" commands used in
drivers/wxwidgets.cpp.  I have discovered this bug from my attempts to
use throw("some message") style exceptions in my (currently unpushed)
-DPL_WXWIDGETS_IPC2=ON version of wxPLDevice::TransmitBuffer.  Those
catches did not work (i.e., the messages were being ignored) until I
changed them to "catch(const char *)" (because const char * and NOT
char * is the type of any fixed string such as "some message"). Note
this fix is recommended by
<http://stackoverflow.com/questions/33410536/how-to-catch-char-exceptions-in-c/33410593>.

Now that I am finally getting specific exception messages for my
-DPL_WXWIDGETS_IPC2=ON code, I am debugging a specific exception that
has been revealed by this change.  When that effort is done (some time
tomorrow after I get some sleep), I plan to change "catch(char *)" to
"catch(const char *)" everywhere in drivers/wxwidgets.cpp to follow
what I have done for the -DPL_WXWIDGETS_IPC2=ON version of
wxPLDevice::TransmitBuffer. This fix should make the messages for all
exceptions caught by that drivers/wxwidgets.cpp code much more
specific.

I think you can likely tell from this particular episode and other
evidence that I am getting much more comfortable with C++ now.  So
that, the above bug fix, and some of your reorganization ideas
inspired by my transmitBytes and receiveBytes methods of the
PLMemoryMap class are already good results from this effort.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to