Discussion:
Omnis 5 to Studio
Steve Finger
2008-11-01 20:29:39 UTC
Permalink
Hi,

Sorry for the long message....

I never used Omnis 5 as I started with the first version of Omnis 7 and
have a potential customer that wants to convert their Mac Omnis 5 app to
Studio on Windows.

I cannot open the file with Omnis 7v3 7.1 on the Mac. I guess the
creator type needs to be updated somehow? I forget how to do that on a Mac

So I opened the library and datafile with Omnis 7v3 7.1 on Windows and
it seems to convert and appears to work. However I cannot get into the
code or window layouts at all. Double-clicking on any object doesn't do
anything, Ctrl-W doesn't do anything etc.

So.. I then opened it with Studio 4.3.1. It converted but there were
errors showing up in the log but it hit an error and I got this message:

Quitting Omnis due to unrecoverable error:
A class cannot be loaded because it appears to be damaged
APPFMT.CPP:4645

Opening the library a second time with Studio seems to have everything
in the browser.

I can see all the objects in the Studio browser but trying to get at
menu code Studio disappears the message above Double-clicking on a
window brings up a black background window with no fields and looking
at the methods. I can see some methods but others when clicking on them
I get the same error above. Opening reports there are no fields on the
layout.

When opening the data file it says it has old data type which must first
be converted using the Omnis 7 v3x data file tools.

Looking at the archives I found a couple things about the datafile:

- Some code to run in Omnis 7 which of course I can't do as I cannot get
into the library to even see what the file format fields are (Though I
can in Studio so I guess I could create a new Omnis 7 library with the
proper data files and see if I can run this code on the datafile)

- Multiple answers of saying this is not really the problem. The problem
is there are slots in the datafile that are not in the library so I
should remove them. However this seems to have an opposite problem. That
is there are file formats with no matching slots in the datafile.

The check data file in Omnis 7 shows bad blocks and indexes which it
says it repairs but it really doesn't so maybe the datafile is totally
shot. Don't know.

They use the Omnis built in password system but the one they gave me is
not the master one so I'm wondering if that is why trying to look at the
objects in the browser in Studio (or Omnis 7 also) is what part of the
problem is.

I tried creating a new datafile with Studio and then the app starts
working with Studio but as soon as I try to open a window (using the
apps custom application main menu. I get the same error damaged class
error as mentioned above.

The user said this was only a single user app and they hadn't used it in
a while but wanted to start using it again. They also said that they
weren't sure how good of shape the Mac was in that this app was on. So I
guess it's possible the library file is also damaged as is the datafile.

So does anyone have any ideas on what steps I should take to get this at
least running in Studio and then I can see what needs to be done to
actually make it work. Or any other ideas? Do I need the master password
so Omnis 7 can maybe do a better conversion of the app? Or does the
converter not care if you have opened the library with the master password?

Thanks,

Steve Finger
Ben Weinberg
2008-11-01 20:54:07 UTC
Permalink
Steve:

I did a conversion of an Omnis5 app when I first started with Studio 3
some years ago. I made a step-by-step document of what I did so here
it is. Note that I used O7 3.5.4. I ended up re-writing most of the
application but got a quick start in having it running during the re-
write process.

Ben

Converting from Omnis 5 to Studio:

A - Convert from Omnis 5 to 7

1 - Copy Omnis 5 library and move to Omnis 7 folder

2 - Rename to OExxxx. Short name without spaces. (My library had a
longer name with spaces that O7 didn't like. Use whatever short name
you like here)

3 - Double-click Copylib.lbr in Convert folder of Omnis 7

4 - Open & copy Omnis 5 library. Library needs to be converted? Yes

5 - Rename library to full name

6 - Double-click Omnis 5 library.

7 - Don't convert data!

8 - Select datafile (O7 version)

9 - Convert data? Yes

10 - Run Procedure checker (optional)

11 - Copy library again using Copylib. Save as short name

12 - Double-click O7analyze. Select library and Analyze.

13 - Quit Omnis 7

B - Convert from Omnis 7 to Studio:

14 - Move the converted library file and the associated .df1 file to
Studio folder.

15 - Run O$Converter (post)

16 - Select library

17 - Note conversion errors.
Post by Steve Finger
Hi,
Sorry for the long message....
I never used Omnis 5 as I started with the first version of Omnis 7 and
have a potential customer that wants to convert their Mac Omnis 5 app to
Studio on Windows.
Steve Finger
2008-11-02 00:06:37 UTC
Permalink
Ben,

Thanks very much for the instructions. I will try them.

Steve
Post by Ben Weinberg
I did a conversion of an Omnis5 app when I first started with Studio 3
some years ago. I made a step-by-step document of what I did so here it
is. Note that I used O7 3.5.4. I ended up re-writing most of the
application but got a quick start in having it running during the
re-write process.
Ben
A - Convert from Omnis 5 to 7
1 - Copy Omnis 5 library and move to Omnis 7 folder
2 - Rename to OExxxx. Short name without spaces. (My library had a
longer name with spaces that O7 didn't like. Use whatever short name
you like here)
3 - Double-click Copylib.lbr in Convert folder of Omnis 7
4 - Open & copy Omnis 5 library. Library needs to be converted? Yes
5 - Rename library to full name
6 - Double-click Omnis 5 library.
7 - Don't convert data!
8 - Select datafile (O7 version)
9 - Convert data? Yes
10 - Run Procedure checker (optional)
11 - Copy library again using Copylib. Save as short name
12 - Double-click O7analyze. Select library and Analyze.
13 - Quit Omnis 7
14 - Move the converted library file and the associated .df1 file to
Studio folder.
15 - Run O$Converter (post)
16 - Select library
17 - Note conversion errors.
Post by Steve Finger
Hi,
Sorry for the long message....
I never used Omnis 5 as I started with the first version of Omnis 7 and
have a potential customer that wants to convert their Mac Omnis 5 app to
Studio on Windows.
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
Continue reading on narkive:
Loading...