I am tasked with upgrading a native ToolBook v4 application to 9.5.
After doing a scriptwalk, I ran the repair kit. It still caused unexpected
problems so I tried flipping through the pages and found 3 pages which
caused an "out of memory error" so I did a new repair kit and excluded those
pages. But I am still having problems which I think I have tracked down to a
custom viewer, but when I try to delete it I get the out of memory error
again.
I am a bit stuck here, any ideas??
Also I am puzzled why running the Repair kit does not get rid of the
problem, any suggestions?
Cheers
Tomas
If you haven't still got v4 on a machine, run it through the oldest version
you've got, then through 9.5
On Tue, Nov 24, 2009 at 11:57 AM, Tomas Lund
<tl...@elearningspecialist.com>wrote:
I'll try that
Tomas
The older versions of ToolBook allow much larger scripts at least 64 KB, but TB version 9 and 10 are much more restrictive and the scripts must be reduced to about 32 KB! At present I am encountering similar problems with ToolBook 10! I was sucessful in redistribitung my various handlers to different objects within one of my applications but the other application still needs some more work! I am a little disappointed that 32 ToolBook 10 is much more limited in the volume of openscript you can have for objects like Book,viewer,page,background,button and others! I still don't understand the logic behind it?!
Mit freundlichen Gru� / Best Regards
Karl A. Bertsche
____________________________________________________________________________________
EADS Deutschland GmbH
Defense and Security
System Design Centre Germany
Concept Development and Experimentation (SDGE1)
Claude-Dornier-Str.
88090 Immenstaad
Germany
Tel.: +49 (7545) 8 9613
Fax.: +49 (7545) 8 9630
Fax.: +49 (7545) 8 2844 - SISF - Project Romania
Email: karl.b...@eads.com
Sekretariat: +49 (7545) 8 9273
EADS Deutschland GmbH
Registered Office: Ottobrunn
District Court of Munich HRB 107 648
Chairman of the Supervisory Board: Dr. Thomas Enders
Managing Directors: Dr. Stefan Zoller (chairman), Dr. Christoph Hoppe
This E-mail and any attachment(s) to it are for the addressee's use only.
It is strictly confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission.
If you are not the intended addressee, then please delete it from your system and notify the sender immediateley. You are hereby notified that any use, disclosure, copying or any action taken in reliance on it is strictly prohibited and may be unlawful. - Thank you.
Miroslav (sadly)
Miroslav Knapek
MultiMedia SoftWare
www.MultiMedia-SoftWare.cz
kna...@mmsw.cz
----- P�vodn� zpr�va -----
Od: "Bertsche, Karl" <karl.b...@EADS.COM>
Komu: <tool...@LISTSERV.PLATTECANYON.COM>
Odesl�no: 24. listopadu 2009 17:35
P�edm�t: Re: Corruption problem on a old course
> Hello Tomas,
>
> The older versions of ToolBook allow much larger scripts at least 64 KB, =
> but TB version 9 and 10 are much more restrictive and the scripts must =
> be reduced to about 32 KB! At present I am encountering similar problems =
> with ToolBook 10! I was sucessful in redistribitung my various handlers =
> to different objects within one of my applications but the other =
> application still needs some more work! I am a little disappointed that =
> 32 ToolBook 10 is much more limited in the volume of openscript you can =
> have for objects like Book,viewer,page,background,button and others! I =
> still don't understand the logic behind it?!
>
>
> Mit freundlichen Gru=DF / Best Regards
> Karl A. Bertsche=20
> _________________________________________________________________________=
> ___________
> EADS Deutschland GmbH=20
> Defense and Security
> System Design Centre Germany
> Concept Development and Experimentation (SDGE1)
> Claude-Dornier-Str.
> 88090 Immenstaad=20
> Germany=20
> Tel.: +49 (7545) 8 9613=20
> Fax.: +49 (7545) 8 9630=20
> Fax.: +49 (7545) 8 2844 - SISF - Project Romania=20
> Email: karl.b...@eads.com=20
> Sekretariat: +49 (7545) 8 9273
> EADS Deutschland GmbH
> Registered Office: Ottobrunn
> District Court of Munich HRB 107 648
> Chairman of the Supervisory Board: Dr. Thomas Enders
> Managing Directors: Dr. Stefan Zoller (chairman), Dr. Christoph Hoppe
> This E-mail and any attachment(s) to it are for the addressee's use =
> only.
> It is strictly confidential and may contain legally privileged =
> information. No confidentiality or privilege is waived or lost by any =
> mistransmission.
> If you are not the intended addressee, then please delete it from your =
> system and notify the sender immediateley. You are hereby notified that =
> any use, disclosure, copying or any action taken in reliance on it is =
> strictly prohibited and may be unlawful. - Thank you.
>
> -----Original Message-----
> From: ToolBook Discussion List =
> [mailto:tool...@LISTSERV.PLATTECANYON.COM] On Behalf Of Tomas Lund
> Sent: Tuesday, November 24, 2009 12:57 PM
> To: tool...@LISTSERV.PLATTECANYON.COM
> Subject: Corruption problem on a old course
>
> Hi All
>
> I am tasked with upgrading a native ToolBook v4 application to 9.5.
>
> After doing a scriptwalk, I ran the repair kit. It still caused =
> unexpected problems so I tried flipping through the pages and found 3 =
> pages which caused an "out of memory error" so I did a new repair kit =
> and excluded those pages. But I am still having problems which I think I =
> have tracked down to a custom viewer, but when I try to delete it I get =
> the out of memory error again.
>
> I am a bit stuck here, any ideas??
>
> Also I am puzzled why running the Repair kit does not get rid of the =
I have no other choice but to continue using TB 10.
I finally got the MS-ACCESS connection to work successfully (many thanks to Tomas Lund,
that gave me excellent training in this area)and hope to resolve my other little
problems. But once you are aware of these TB 10 limits you can take that into account
when you do your open script progam structure and module programming.
Mit freundlichen Gru� / Best Regards
Karl A. Bertsche
____________________________________________________________________________________
EADS Deutschland GmbH
Defense and Security
System Design Centre Germany
Concept Development and Experimentation (SDGE1)
Claude-Dornier-Str.
88090 Immenstaad
Germany
Tel.: +49 (7545) 8 9613
Fax.: +49 (7545) 8 9630
Fax.: +49 (7545) 8 2844 - SISF - Project Romania
Email: karl.b...@eads.com
Sekretariat: +49 (7545) 8 9273
EADS Deutschland GmbH
Registered Office: Ottobrunn
District Court of Munich HRB 107 648
Chairman of the Supervisory Board: Dr. Thomas Enders
Managing Directors: Dr. Stefan Zoller (chairman), Dr. Christoph Hoppe
This E-mail and any attachment(s) to it are for the addressee's use only.
It is strictly confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission.
If you are not the intended addressee, then please delete it from your system and notify the sender immediateley. You are hereby notified that any use, disclosure, copying or any action taken in reliance on it is strictly prohibited and may be unlawful. - Thank you.
-----Original Message-----
From: ToolBook Discussion List [mailto:tool...@LISTSERV.PLATTECANYON.COM] On Behalf Of Knapek Miroslav
Sent: Tuesday, November 24, 2009 6:28 PM
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Re: Corruption problem on a old course
I think it has simple reason. STS decided not to develop more ToolBook for native apps.
There would be more thinks to do - unicode support, text field limits ...
There is not much enhancements from version 4 for native.
Miroslav (sadly)
Miroslav Knapek
MultiMedia SoftWare
www.MultiMedia-SoftWare.cz
kna...@mmsw.cz
----- P�vodn� zpr�va -----
Od: "Bertsche, Karl" <karl.b...@EADS.COM>
Komu: <tool...@LISTSERV.PLATTECANYON.COM>
Odesl�no: 24. listopadu 2009 17:35
P�edm�t: Re: Corruption problem on a old course
On 2004 SP3 it works fine, but versions higher than that I start getting
problems - I have tried reducing the size of the scripts without any luck.
One thing that strikes me in this old course (which I didn�t build myself)
is an almost total absence of Forward statements in system handlers. I have
a hunch that this would cause ToolBook to behave strangely.
This course uses a lot of Viewers and system books and is quite complex and
fails at seemingly innocent lines of code with out of memory errors.
Any input is greatly appreciated I am still struggling with this and my
deadline is tomorrow.
Cheers
Tomas
Ps. Thanks for the nice words Karl, were you able to detect if a Table
already exists in the Access db?
I am now having a problem where the following line of code In an enterbook
handler in the bookscript:
Statuspg = page "status" of self
Causes a out of Memory error
If I check if it exists using IsObject it returns false.
But if I go to Author mode and write this in the command window: put
IsObject(page "status" of this book) I get TRUE
The page does exist and I have just recreated it to eliminate any issues
Any ideas?
Cheers
Tomas
to handle idle -- (or notifyAfter idle)
local DWORD currentTime
get my action1
if it is not null
currentTime = timeGetTime()
if currentTime > (it+10)
clear my action1
send action1
end
end
get my action2
if it is not null
currentTime = timeGetTime()
if currentTime > (it+10)
clear my action2
send action2
end
end
--ETC.
end
--------------------------------
to handle action1
--Do action required
--last line:
my action2 = timeGetTime()
--(or action2 of this page/book = timeGetTime()
--ETC.
end
----------------------------------------
That might be a good idea - unfortunately I didn't write the code in the
first place and the course is very large so that will be a very large job to
do. So I'd like to avoid having to do that, but might may have to give it a
shot.
Many thanks for your input
Tomas
-----Original Message-----
From: ToolBook Discussion List [mailto:tool...@LISTSERV.PLATTECANYON.COM]
On Behalf Of John Robin Dove
Sent: 25. november 2009 14:34
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Re: Corruption problem on a old course
After I had converted my application TB8.9 application and initially tried to execute a buttonClick I received a Windows error message. The only way I could alliviate the problem was to reduce the script size. The real problem is that some scripts compile but if they are large (above 50 KB) the TB script will not be interpreted properly. My script, dispite the fact that it had no apparent syntax errors still bombed out on a simple statement 'set comboBox "foo" of page "blank" to true'. Only after restructuring the script and reducing the script size did I finally achieve success!
Mit freundlichen Gru� / Best Regards
Karl A. Bertsche
____________________________________________________________________________________
EADS Deutschland GmbH
Defense and Security
System Design Centre Germany
Concept Development and Experimentation (SDGE1)
Claude-Dornier-Str.
88090 Immenstaad
Germany
Tel.: +49 (7545) 8 9613
Fax.: +49 (7545) 8 9630
Fax.: +49 (7545) 8 2844 - SISF - Project Romania
Email: karl.b...@eads.com
Sekretariat: +49 (7545) 8 9273
EADS Deutschland GmbH
Registered Office: Ottobrunn
District Court of Munich HRB 107 648
Chairman of the Supervisory Board: Dr. Thomas Enders
Managing Directors: Dr. Stefan Zoller (chairman), Dr. Christoph Hoppe
This E-mail and any attachment(s) to it are for the addressee's use only.
It is strictly confidential and may contain legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission.
If you are not the intended addressee, then please delete it from your system and notify the sender immediateley. You are hereby notified that any use, disclosure, copying or any action taken in reliance on it is strictly prohibited and may be unlawful. - Thank you.
-----Original Message-----
From: ToolBook Discussion List [mailto:tool...@LISTSERV.PLATTECANYON.COM] On Behalf Of Tomas Lund
Sent: Wednesday, November 25, 2009 12:48 PM
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Re: Corruption problem on a old course
I followed the suggestion from Georgie and scriptwalked it from an older version first to 7.2 then, 2004 sp3, 9.0.1 and then 9.5. I ran the = repair kit on all the files in the 2004 sp3 version, no problems there.
On 2004 SP3 it works fine, but versions higher than that I start getting problems - I have tried reducing the size of the scripts without any = luck.
One thing that strikes me in this old course (which I didn=92t build =
myself)
is an almost total absence of Forward statements in system handlers. I = have a hunch that this would cause ToolBook to behave strangely.
This course uses a lot of Viewers and system books and is quite complex = and fails at seemingly innocent lines of code with out of memory errors.
Any input is greatly appreciated I am still struggling with this and my deadline is tomorrow.
Cheers
Tomas
Ps. Thanks for the nice words Karl, were you able to detect if a Table already exists in the Access db?
-----Original Message-----
From: ToolBook Discussion List =
[mailto:tool...@LISTSERV.PLATTECANYON.COM]
On Behalf Of Bertsche, Karl
Sent: 25. november 2009 08:33
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Re: Corruption problem on a old course
Hello Miroslav,
I have no other choice but to continue using TB 10.=20
I finally got the MS-ACCESS connection to work successfully (many = thanks to Tomas Lund,=20 that gave me excellent training in this area)and hope to resolve my = other little problems. But once you are aware of these TB 10 limits you can take that into account=20 when you do your open script progam structure and module programming.
Mit freundlichen Gru=DF / Best Regards
Karl A. Bertsche=20
_________________________________________________________________________=
___
________
EADS Deutschland GmbH=20
Defense and Security
System Design Centre Germany
Concept Development and Experimentation (SDGE1) Claude-Dornier-Str.
88090 Immenstaad=20
Germany=20
Tel.: +49 (7545) 8 9613=20
Fax.: +49 (7545) 8 9630=20
Fax.: +49 (7545) 8 2844 - SISF - Project Romania=20
Email: karl.b...@eads.com=20
Sekretariat: +49 (7545) 8 9273
EADS Deutschland GmbH
Registered Office: Ottobrunn
District Court of Munich HRB 107 648
Chairman of the Supervisory Board: Dr. Thomas Enders Managing Directors: Dr. Stefan Zoller (chairman), Dr. Christoph Hoppe This E-mail and any attachment(s) to it are for the addressee's use = only.
It is strictly confidential and may contain legally privileged = information.
No confidentiality or privilege is waived or lost by any = mistransmission.
If you are not the intended addressee, then please delete it from your system and notify the sender immediateley. You are hereby notified that = any use, disclosure, copying or any action taken in reliance on it is = strictly prohibited and may be unlawful. - Thank you.
-----Original Message-----
From: ToolBook Discussion List =
[mailto:tool...@LISTSERV.PLATTECANYON.COM]
On Behalf Of Knapek Miroslav
Sent: Tuesday, November 24, 2009 6:28 PM
To: tool...@LISTSERV.PLATTECANYON.COM
Subject: Re: Corruption problem on a old course
I think it has simple reason. STS decided not to develop more ToolBook = for native apps.
There would be more thinks to do - unicode support, text field limits = ...
There is not much enhancements from version 4 for native.
Miroslav (sadly)
Miroslav Knapek
MultiMedia SoftWare
www.MultiMedia-SoftWare.cz
kna...@mmsw.cz
----- P=F9vodn=ED zpr=E1va -----
Od: "Bertsche, Karl" <karl.b...@EADS.COM>
Komu: <tool...@LISTSERV.PLATTECANYON.COM>
Odesl=E1no: 24. listopadu 2009 17:35
P=F8edm=ECt: Re: Corruption problem on a old course
> Hello Tomas,
>
> The older versions of ToolBook allow much larger scripts at least
> 64=20 KB, =3D but TB version 9 and 10 are much more restrictive and
> the=20 scripts must =3D be reduced to about 32 KB! At present I am =
encountering=20
> similar problems =3D with ToolBook 10! I was sucessful in =
redistribitung=20
> my various handlers =3D to different objects within one of my=20
> applications but the other =3D application still needs some more work!
> =
I=20
> am a little disappointed that =3D
> 32 ToolBook 10 is much more limited in the volume of openscript you=20
> can =3D have for objects like Book,viewer,page,background,button
> and=20 others! I =3D still don't understand the logic behind it?!
>
>
> Mit freundlichen Gru=3DDF / Best Regards Karl A. Bertsche=3D20=20
> ______________________________________________________________________
> ___=3D
> ___________
> EADS Deutschland GmbH=3D20
> Defense and Security
> System Design Centre Germany
> Concept Development and Experimentation (SDGE1) Claude-Dornier-Str.
> 88090 Immenstaad=3D20
> Germany=3D20
> Tel.: +49 (7545) 8 9613=3D20
> Fax.: +49 (7545) 8 9630=3D20
> Fax.: +49 (7545) 8 2844 - SISF - Project Romania=3D20
> Email: karl.b...@eads.com=3D20
> Sekretariat: +49 (7545) 8 9273
> EADS Deutschland GmbH
> Registered Office: Ottobrunn
> District Court of Munich HRB 107 648
> Chairman of the Supervisory Board: Dr. Thomas Enders Managing=20
> Directors: Dr. Stefan Zoller (chairman), Dr. Christoph Hoppe This=20
> E-mail and any attachment(s) to it are for the addressee's use =3D =
only.
> It is strictly confidential and may contain legally privileged =3D=20
> information. No confidentiality or privilege is waived or lost by
> any=20 =3D mistransmission.
> If you are not the intended addressee, then please delete it from your
> =
> =3D system and notify the sender immediateley. You are hereby notified
> =
> that =3D any use, disclosure, copying or any action taken in reliance
> =
on=20
> it is =3D strictly prohibited and may be unlawful. - Thank you.
>
> -----Original Message-----
> From: ToolBook Discussion List =3D
> [mailto:tool...@LISTSERV.PLATTECANYON.COM] On Behalf Of Tomas Lund
> Sent: Tuesday, November 24, 2009 12:57 PM
> To: tool...@LISTSERV.PLATTECANYON.COM
> Subject: Corruption problem on a old course
>
> Hi All
>
> I am tasked with upgrading a native ToolBook v4 application to 9.5.
>
> After doing a scriptwalk, I ran the repair kit. It still caused =3D=20
> unexpected problems so I tried flipping through the pages and found
> 3=20 =3D pages which caused an "out of memory error" so I did a new
> repair=20 kit =3D and excluded those pages. But I am still having
> problems which =
I=20
> think I =3D have tracked down to a custom viewer, but when I try to=20
> delete it I get =3D the out of memory error again.
>
> I am a bit stuck here, any ideas??
>
> Also I am puzzled why running the Repair kit does not get rid of the =
=3D=20
YAY - I have solved it now.
Dom Sinclair suggested the problem might be machine dependant so I tried
redoing the whole scriptwalk process (as suggested by Georgie) on a clean
machine (a macbook running windows XP via Bootcamp), which had not
previously had ToolBook installed and without any extra addons, beta
versions or custom sbks of any kind.
And that did the trick - I barely had to make any changes in the upgraded
files; a few Viewers had incorrect default pages but not a single "out of
memory error" and only one ES (which turned out to have been there all the
time).
It's easy to sound a little negative toward a product when things are not
working and I "haven't done anything different" and seemingly innocent code
doesn�t work as expected. But I am pretty amazed how relatively painless it
was to upgrade a 10 year old 16 bit Toolbook app to the most recent version
- as long as you do it on a clean ToolBook install. Though I still think the
errors were a bit strange... A nice ES would be easier to handle than out of
memory.
I have yet to determine what exactly with my ToolBook setup messed up the
files, If I find out, I'll let you know.
But I thought I'd share this now as this may be worth a shot for you if you
have similar problems upgrading old files.
Cheers
Tomas
Tomas Lund
www.toolbookconsulting.com