Ticket #4 (closed defect: invalid)

Opened 8 years ago

Last modified 4 years ago

COBIALoadTest fails

Reported by: michelpons Owned by: jasper
Priority: major Milestone: Phase II
Component: COBIA core Version: 1.0
Keywords: Cc: wbarrett

Description

I have downloaded commit 28 of COBIA Phase 1 and generated the solutions

as Release x86 in Visual Studio Community 2015 edition.

I have executed the Unitary Tests. First one (COBIALoadtest) fails,
all the others succeed.

Source: basictest.cpp line 22
Message: Assert failed, COBIA Load failure.

Change History

comment:1 Changed 8 years ago by jasper

If COBIA is not in one of its default locations, please make sure that the registry key HKEY_CURRENT_USER\SOFTWARE\COBIA has a default value that contains the COBIA folder.

Placing registerCobiaFolder.vbs (Utils folder) in the COBIA binary folder and executing it will do this.

comment:2 Changed 8 years ago by michelpons

Which is the COBIA binary folder?

I have downloaded the files from the SVN repository within a folder named "COBIA" under the Visual Studio 2005\Projects folder. Under this "COBIA" folder, there are 6 sub-folders: "COBIA", "Documentation", "IDL", "Middleware", "Test" and "Utils". Within the "COBIA" sub-folder, there are 11 subfolders including another "COBIA" subfolder. Within this next level "COBIA" sub-folder, I find four sub-folders including a "Debug", a "Release" and a "x64" subfolder.

Which one is the COBIA binary folder? Are there several?

comment:3 Changed 8 years ago by jasper

There where your compiled COBIA.dll, COMBIA.dll etc live. For VS this is configured to be the Release sub-folder of the COBIA folder (or Debug in case of the Debug build).

comment:4 Changed 8 years ago by michelpons

I have re-generated the release solution for x86. After creation of entire solution, I have exercized the registerCobiaFolder.vbs in the COBIA Release folder. There is a message box appearing giving a path. I have then executed the tests. The COBIALoadTest still fails. The other tests succeed. Is there a message that registerCOBIAFolder.vbs should deliver in case of failure or success?

comment:5 Changed 8 years ago by jasper

If loading fails, the other tests are not actually executed.

Can you share your desktop so that we can check together what is the issue?

comment:6 Changed 8 years ago by michelpons

There is a Release sub-folder under COMBIA as well. There is another Release sub-folder under COBIAResource. Finally I have moved the RegisterCobiaFolder?.vbs to Projects\COBIA\COBIA\Release and that worked: all 27 tests are successful. Couldn't there be a way to get the vbs file to the right folder through the solution itself?

comment:7 Changed 8 years ago by jasper

Rather not - this is an installer task. The vbs is just a developer helper tool for running directly from the solution folder. Compare to regsvr32 (which some people indeed include as post-build step; I prefer to arrange registrations manually to avoid unexpected behaviour).

comment:8 Changed 8 years ago by jasper

Note the installer will not use the vbs

comment:9 Changed 8 years ago by jasper

  • Status changed from new to closed
  • Resolution set to invalid

comment:10 Changed 4 years ago by michelpons

  • Milestone set to Phase II Runtime

comment:11 Changed 4 years ago by michelpons

  • Milestone changed from Phase II Runtime to Phase II
Note: See TracTickets for help on using tickets.