Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 8th, 2025, 9:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Variables cant be found after publication
PostPosted: January 17th, 2010, 5:48 am 
Offline

Joined: April 5th, 2008, 2:41 pm
Posts: 102
Location: Sydney
Opus: Opus Pro Edition 9.51
OS: Windows 8.1
System: Acer Aspire V touch screen edition 4G RAM
er... ( and this is so embarassing! ) .....HELP!

I cant get my head around this issue - I cant makse sense of what Im OVBIOUSLY doing wrong.

I've created a program that reads and writes variables - for example a name and a price. ( all good so far in the creation stage ) - but when I publish?- the data I have saved is not loading WITH the publication.

it seems to read fine when published and is running on the machine that I wrote it on - but when I make a copy and put the program on another machine... nothing!

At first I thought - fine, its a new install, so ther will be no data (yet) - so I typed it all in..and it ran properly ( I even checked the data was being writen to the right locations ) and yes, indeed it was.....but wnen I turned the PC off and re loaded the program....its gone again.

Im at a " wierd" stage right now wit hit though - Ive PUBLISHED the project directly to a memory stick - and it runs on another PC.....but without that stick....no data!

I feel so damned frustrated! - I am so damned close! ( obviously its a migration issue of some type - and what kept "fooling me" was no matter where on my developement PC I published it to - it ran fine.....but a different machine? - new ball-game.

Please help! - Im really confused. how do I get a publication to read from ANY machine its copied on to? - Ive used the "ini" file option but I cant make it work independently.

many many thanks. :oops: :oops:

_________________
Acer Aspire V touch
Opus Pro 9.51


For this message Viper4054 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 17th, 2010, 7:54 am 
Offline

Joined: November 5th, 2004, 6:54 am
Posts: 130
Location: Hengelo, The Netherlands
Opus: 8.5/9.0
OS: Windows 7 64-bits, Android 2.1, Android 4.1.2, iOS 7
System: Pentium 7i, 6GB RAM, 750GB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses
Hello Viper,

Without the code or the imp file I can't analyze what's goïng wrong.
I've made some publications using reading and writing to files without problems.

I also don't know which Opus version you are using.
Add this information to your signature.

Please share the code you're using or the imp file and probably I or someone else will be able to help you.

_________________
Oscar Nijst
ON Education & Consultancy
Hengelo, The Netherlands
OPUS Pro 9.5
Pentium 7i, 16GB RAM, 1 TB HD, DVD-RW (+/-), DV, 3TB EHD, 3D monitor without glasses


For this message osni has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 17th, 2010, 10:07 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi V,

As I explained, it sounds like the paths have been hard coded into the read / write file action.

This means that although the program has been designed and tested from E: drive the machine you've moved to is running from a different location and the publication can't the required files.

I'd guess that it works with the memory stick in because it's been mounted as drive E: (?).

Anyway, you need to specify a dynamic path such as SYSTEM_PUBLICATION_DIR. See the attached example for reference.

BTW, it will be good practice if this program is running on Vista / W7 to use the program data directory for variables. This is straightforward in Opus 7.

Hope this helps,

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group