Jump to content
Software FX Community

"Catastrophic failure" when using ChartFX 2.0


User (Legacy)

Recommended Posts

Dear all,

I am using ChartFX 2.0 allong with C++ Builder 5.0.

On my (development) machine all is well. But on a machine where Borland C++

is not installed i get problems.

When I try and modify a property e.g.

Chart->Adm[CSA_MIN]=0;

I get a "Catastrophic failure" dialog box pop up on the target machine.

Is it a clue that when I unclick the "Build with runtime packages", I then

get a error on the development machine as well: "Project xxxxxxxx.exe raised

exception class EOlsSysError with message "Unknown interface". Process

stopped. Use.....etc"

Thanks for any help, it is very much appreciated.

Regards,

Ioan Prys.

--

Ioan Prys T/a A470 Technology

Phone: +44 029 20217619

e-mail: ioanprys@a470.co.uk

web: www.a470.co.uk

Link to comment
Share on other sites

Thanks for your reply.

The graph does not show up.

I try to register the Chrt FX OCX using the function below (called from

WINAPI WinMain). I agree that it has to do with deployment; given that it

works fine on my development machine.

How would you recomend that you copy and register ChartFX OCX?

Best regards,

Ioan Prys.

//--------------------------------------------------------------------------

-

BOOL RegistryCFX ()

{

HINSTANCE hOCX;

FARPROC pReg;

#ifdef _WIN32

hOCX = LoadLibrary("CFX32.OCX");

#else

hOCX = LoadLibrary("CHARTFX.OCX");

#endif

if (!hOCX)

return FALSE; // Could not load OCX !

pReg = GetProcAddress(hOCX,"DllRegisterServer");

if (pReg)

pReg(); // Call the registration function

FreeLibrary(hOCX);

return (pReg != NULL);

}

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:aBcFyEMoEHA.3352@webserver3.softwarefx.com...

> Is the chart showing up ?

>

> I think you may have a problem deploying the control.

>

> Are you copying and registering the ChartFX OCX ?

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

1) Did you check whether or not is going through this if:

if (!hOCX)

return FALSE; // Could not load OCX !

? If this is failing, then you may either need an updated version of your OS

OLE Files or the OCX file is not in the right path. Check the return code of

GetLastError()

2) Try creating a simple application that just have a chart in a form and

deploy it to the same computer. No code. What happens ?

--

FP

Software FX

Link to comment
Share on other sites

Thanks for your reply.

The IF(!hOCX) does not fail: the function is called as follows:

if(RegistryCFX())

Application->Run();

When I create a simple application, I only get the problem if I modify a

property e.g.

Chart->Adm[CSA_MIN]=0;

With no code all is well!

What do you mean by 'deploy'? What I've done is copy the exe, dll, ocx etc.

to the target machine. Are there any other steps required?

Best regards,

Ioan Prys

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:8KuEFvXoEHA.416@webserver3.softwarefx.com...

> 1) Did you check whether or not is going through this if:

>

> if (!hOCX)

> return FALSE; // Could not load OCX !

>

>

> ? If this is failing, then you may either need an updated version of your

OS

> OLE Files or the OCX file is not in the right path. Check the return code

of

> GetLastError()

>

> 2) Try creating a simple application that just have a chart in a form and

> deploy it to the same computer. No code. What happens ?

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

If you see the chart and the crash occurs only if you use the API it is not 

a deployment problem. If the chart is showing it means it is registered and

it can run. I wasn't clear from your posting whether you saw the chart or

not when using a small sample program.

It seems that somehow the actual COM object is detached from the C++ wrapper

class, I don't know how this can happen. Have you tried Borland newsgroups ?

--

FP

Software FX

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...