App can't get past call to Create() for the CTChart object
Posted: Thu Nov 20, 2003 1:16 pm
Both workstations that do not have the TeeChart Pro V6 registered installation on them (two out of the three developers working on this application do not have a licensed installation) are not able to run the code they build themselves.They cannot get past the point where the CTChart object's Create() is called without a crash. If those workstations run the code that was compiled on the licensed machine they have no such problem. They have tried to build both debug and release versions.
I am linking in those wrapper classes needed to create our particular chart into a static library that then gets linked into the .exe. We are using Visual C++ 6.0.
Here is the relevant part of the stack at the point of the crash in a debug build:
MFCO42D! 5f51121f()
CTChart::Create(const char * 0x005ff894, const char * 0x005ed13c, unsigned long 268435456, const tagRECT & {top=-858993460 bottom=-858993460 left=-858993460 right=-858993460}, CWnd * 0x00f360b8 {CClockDataBaseWindow hWnd=0x0015072c}, unsigned int 905, CCreateContext * 0x00000000) line 52 + 57 bytes
CClockDataBaseWindow::OnCreate(tagCREATESTRUCTA * 0x0012da84) line 79 + 47 bytes
etc
The error message is:
First-chance exception in uim.exe (MFCO42D.DLL): 0xC0000005: Access Violation.
Those two workstations are not actually doing any development using TeeChart Pro V6. They are just trying to recreate the object code from scratch.
It is necessary that they be able to use the TeeChart control with code built on their workstation. If this problem's cause is obvious to anyone, could someone please outline some possible solutions?
I am linking in those wrapper classes needed to create our particular chart into a static library that then gets linked into the .exe. We are using Visual C++ 6.0.
Here is the relevant part of the stack at the point of the crash in a debug build:
MFCO42D! 5f51121f()
CTChart::Create(const char * 0x005ff894, const char * 0x005ed13c, unsigned long 268435456, const tagRECT & {top=-858993460 bottom=-858993460 left=-858993460 right=-858993460}, CWnd * 0x00f360b8 {CClockDataBaseWindow hWnd=0x0015072c}, unsigned int 905, CCreateContext * 0x00000000) line 52 + 57 bytes
CClockDataBaseWindow::OnCreate(tagCREATESTRUCTA * 0x0012da84) line 79 + 47 bytes
etc
The error message is:
First-chance exception in uim.exe (MFCO42D.DLL): 0xC0000005: Access Violation.
Those two workstations are not actually doing any development using TeeChart Pro V6. They are just trying to recreate the object code from scratch.
It is necessary that they be able to use the TeeChart control with code built on their workstation. If this problem's cause is obvious to anyone, could someone please outline some possible solutions?