[Other] Very small trivial test C++ project for Visual Studio 2005 (attached) crashes on gvFreeLibrary
Ported Issue from Mantis Original ID: 2180 Reported By: aniri
SEVERITY: CRASH Submitted: 2012-01-02 09:05:27
OS: MS WINDOWS XP PROF. SP2
OS BUILD: BUILD 5.1.2600
PLATFORM: X86-32
DESCRIPTION
Here is the text of a program: int _tmain(int argc, _TCHAR* argv[]) { Agraph_t *g; GVC_t *gvc; gvc = gvContext(); g = agopen("g", AGRAPHSTRICT);
Agraph_t* subGraph = agsubg(g, "cluster_star_0");
//agsafeset(subGraph, "label", "net star", "");
Agnode_t* cn = agnode(subGraph, "subgraph_node");
gvLayout(gvc, g, "circo");
gvRenderFilename(gvc, g, "gif", "out.gif");
gvFreeLayout(gvc, g); //here it crashes
agclose(subGraph);
agclose(g);
gvFreeContext(gvc);
}
Under debugger it raises access violation at gvFreeLayout. When executed from command line it prints to the console: "Error: agstrfree lost (some non-ascii characters)".
Output "exe" is written to the graphviz "bin" directory, that's why missing of some libraries or files is apparently not the case.
STEPS TO REPRODUCE
Just compile and run this program.
ADDITIONAL INFORMATION
Hopefully, you resolve it.