Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001586graphvizOutput Generationpublic2009-04-07 04:502011-04-28 04:03
Reporterjosh2 
Assigned Togviz 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOS*-*-OS Version
Summary0001586: Expose a public function to override error function
Description



The errorfn set in gvNEWcontext() can't be overridden outside GraphViz
because the struct GVC_s defined in gvcint.h is not exposed.



Is it possible to provide a public function to override the errorfn
so that I can redirect error messages to some places other than console?



Additional Information

[erg] If you just want to keep messages from going to the console, call

  agseterr(AGMAX);

In general, error handling needs to be redone. A library should not call exit() without involving the application.

[josh] The use of agseterror(AGMAX) doesn't meet my need. What I want to do is to redirect error messages from console to my GUI widget. I searched all public functions in GraphViz and couldn't find one that does

    gvc->common.errorfn = my_function;

As you said, you are planning to rewrite the error handling part of GraphViz. Any schedule set?
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1627
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.22.2
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker