The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 File.setpos();
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Dababneh

Germany
5 Posts

Posted - 03/29/2000 :  1:55:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
In large files, it happens that the file.setpos() method sets the pointer to the wrong specified position. This is verified by the file.getpos() method or by reading data from the file, which shows that the pointer is set in a different position. Is there any clear reason for that?

Barb Tobias

USA
305 Posts

Posted - 04/03/2000 :  8:53:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
This is an Origin Professional question so you'll need to contact Additive (Origin@additive-net.de), your Origin support representative.

[This message has been edited by Barb Tobias (edited 04-03-2000).]

Go to Top of Page

Dababneh

Germany
5 Posts

Posted - 04/10/2000 :  8:05:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I did, but did not get any response yet.
I would really appreciate informing me if this is a soluble problem or not. I am usually dealing with large binary data files (>32 MB) and using Origin 5 Professional on Windows NT. Would Origin 6 solve the problem in case of an upgrade?
Go to Top of Page

Dababneh

Germany
5 Posts

Posted - 04/19/2000 :  5:41:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have ordered Origin 6 Professional and just installed it (with SR2).
It seems that I still have the strange behaviour of the file.setpos() method.
I have registered my software and look forward to receiving any valuable suggestions.
Go to Top of Page

greg

USA
1380 Posts

Posted - 04/21/2000 :  4:47:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
As a German user, you should contact
Additive for Technical support - and this type of question is certainly more appropriate for tech support than the Forum. I was not able to confirm that Additive received your email becuase they are on vacation at the monment so I will handle this directly.

Versions from Origin 5.0 Release up to and including English Origin 6.0 Service Release 1 have a bug when using the setpos() method for files greater than 16777216 bytes (16M).

This problem was fixed in English Origin 6.0 Service Release 2 so I am surprised to see that you are reporting the problem with your SR2. Please verify that you have applied the patch correctly and that the SYSTEM.VERSION property reports 6.0271. If SYSTEM.VERSION does NOT report this value, then please read the instructions for applying the patch to verify that you have applied the patch correctly and that PATCH.ERR reports only "normal" error messages.

Note that there was no "official" German SR1, although some customers received that version from Additive. I was not able to test the German SR1 and no German SR2 will be available, but a German SR3 will be available shortly (and should include the same fixes as English SR2 and SR3).


For users of 5.X, a workaround to the problem is needed since there will be no further fixes to 5.X.

The setpos() method drops a bit for files of size 2^N where N is greater than 23.

For example:




>16777222mod(position,16)
must be even
>33554432mod(position,16)
must be a mulitiple of 4
>67108864mod(position,16)
must be a multiple of 8

I assume this pattern continues, but I have not tested beyond the table and any attempt at a workaround for version 5.X should thoroughly test the expected ranges.
Go to Top of Page

Dababneh

Germany
5 Posts

Posted - 04/22/2000 :  2:37:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot Greg, everything is OK now regarding the file.setpos() method with the correct installation of Origin 6 Professional with SR2.
It is clear now to me that the problem which appeared after my installation was due to something else. Namely:
1) The SR2 installation changed the setting 'Use numeric as preferred column type' which was easy to discover and fix.
2) The setting for the number of decimal digits; even though it is stated in the documents that it does not affect the calculations, I realized that it does. I am using external dll's in my project. I am not sure, and have to check, if this is the reason.

Final remark which could be usefull for you; I am using the English version and not the German one.

Anyway Greg, thanks again for your continuous help and I appreciate your efforts as much as I do appreciate Origin itself.

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000