06-26-2008 12:56 AM
06-26-2008 04:54 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
06-27-2008 12:26 AM
06-27-2008 01:57 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
08-20-2008 11:25 AM
Matthias:
I have a similar problem. I am running the same code, and it fails on the dispToCmd.CreateDispatch statement:
if( dispToCmd.CreateDispatch("diadem.tocommand", err) == FALSE)
{
pServer->m_log << "DIAdem Instancing Failure. \n";
throw err;
}
Do you, or does anyone have an idea how to fix this.
Tom
08-20-2008 01:13 PM
Hello Tom!
Have you run DIAdem with admin rights after installing? This is necessary to register the DIAdem OLE Server.
If you did it please try this VBS code in Windows (Paste it to a file with a vbs extension and doubleclick it in the explorer):
Option Explicit Dim oToCommand Set oToCommand = CreateObject("DIAdem.ToCommand")
You can also check the registration in the registry. Try to find out if this Key HKEY_CLASSES_ROOT\CLSID\{285E4FB2-F633-11D1-85DC-008048D9A408}\LocalServer32 exists and its value is your DIAdem executable.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
08-20-2008 01:52 PM
Matthias:
Thanks for the reply!
I am running as admin.
I ran the script that you sent, but did not see any output. It ran for about 12 seconds and consumed memory and CPU.
The key that you questioned is in the registry.
Tom
08-20-2008 02:12 PM
Matthias:
When I run the VBS script as you recommended, Diadem starts, and then exits after about 12 seconds.
When I try to execute my code, Diadem starts, runs for abnout 12 seconds, and does not exit. I have to use task manager to end the process.
Tom
08-20-2008 02:22 PM
Hello Tom!
The script does the same as your C++ code. No output means no error! The time is consumed because DIAdem is started in the background. At the moment I have no idea anymore what causes your C++ code to crash. I have a test program in my office. I will try it tomorrow and give you feedback.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
08-21-2008 01:53 AM
Hello Tom!
Can you please try this code instead and report the content of the messagebox:
ITOCommand dispToCmd ; COleException oEx; if( dispToCmd.CreateDispatch( (LPCTSTR)_T("diadem.tocommand"), &oEx) == FALSE) { oEx.ReportError(); return; }
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |