Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Known Bugs
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 09:23:18 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
Mach Screens
Machscreen Screen Designer
(Moderator:
Klaus1311
)
File Corrupt error
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: File Corrupt error (Read 1118 times)
0 Members and 1 Guest are viewing this topic.
Ron Ginger
V4 Screen Contributor
Offline
Posts: 547
File Corrupt error
«
on:
February 05, 2010, 10:57:13 PM »
I used MachScreen to develop a screen, then used mach to edit the VB button script. I was in and out of the editor many times in Mach until I got the button script to work correctly.
I then returned to MachScreen to work on the screen and when it tried to open the file it reported the screen file was corrupt. I went back to Mach and the screen opened OK, so I went back to MachScreen and tried again. This time I clicked the button to try to open the corrupt file. It seemed to open OK, and the screen looks OK, except for the background grey seems not to fill the whole screen.
I closed and reopened the file, now it opens without the corrupt error.
Im using Mach 3.042.030 and MachScreen 1.37c
Logged
DaveCVI
V4 Screen Contributor
Offline
Posts: 523
Re: File Corrupt error
«
Reply #1 on:
February 06, 2010, 01:44:07 AM »
Ron,
I've had the same issue between Mach and Machscreen. Klaus and I have exchanged several emails about this in the past.
I used to think it happened because I had both MS and Mach open and dealing with the same set file at the same time. It is possible to do this as MS (and Mach) does not require file locking of the set file.
I like the convenience of being able to do this - but I know it's not good programming practice - so when I get bit, I figured it's my fault.
But... in the last week I've had this happen twice when the sequence was:
Open Set in MS
edit in MS
save
close MS
start mach
load set file
edit button
<If you see mach say something like "file saved & closed" - I forget the exact messsage, Ms will think is corrupt when ms next opens the file>
close mach
open set in MS - file corrupt error.
There is no multiple program access to common data in this situation-
So I've begun to suspect that something else is also at play... but I'm not sure what.
One tip: here is a work around that I've used 100+ times in the last 4 months to recover from the situation:
DO NOT continue when MS say file corrupt - bail out instead.
Open set file in screen 4
save from screen 4
exit screen 4
Open in MS... The set file is no longer thought to be corrupt by MS.
This a very nice "feature" of screen 4! <grin>
Dave
Logged
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com
Klaus1311
Active Member
Offline
Posts: 297
Re: File Corrupt error
«
Reply #2 on:
February 06, 2010, 04:58:05 AM »
Hi Dave,
could you please send me I the set-fle before and after editing in Mach3?
Klaus
Logged
Klaus1311
Active Member
Offline
Posts: 297
Re: File Corrupt error
«
Reply #3 on:
February 06, 2010, 10:46:49 AM »
Hi Dave
I don't need the files, I could reproduce the problem and did some testing. It looks like Mach3 is not truncating the file to minimum size when saving. MachScreen compares the filesize to the last read byte number from the set-file, if they are different, it reports the file as corrupted. If you reply "continue" the completely loaded data is shown. When you save the data, the file is truncated and when loaded the next time, there will be no corruption message. I changed that in version V1.37.d which can be downloaded.
Klaus
Logged
DaveCVI
V4 Screen Contributor
Offline
Posts: 523
Re: File Corrupt error
«
Reply #4 on:
February 06, 2010, 12:29:24 PM »
Klaus -
Thanks! I hadn't reported this yet as I didn't save the files at the time it happened - so I didn't have a test case to send.
Glad you found it - one more bug gone <grin>
Dave
Logged
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com
Ron Ginger
V4 Screen Contributor
Offline
Posts: 547
Re: File Corrupt error
«
Reply #5 on:
February 06, 2010, 06:03:40 PM »
I continued to work on my file for several hours. All the edit things I did seemed to work OK, I frequently went back and forth to Mach to test the code.
I then tried to run the code and mach gives the error "'Scripter Complie Error. In:"
If I cnage screen sets to the standard one the code runs fine. Ive tried it on 2 machines. Something in the screen set triggers this error when you ttempt to run any code.
I will attach my screen set.
HF800.lset
(44.85 KB - downloaded 34 times.)
Logged
Ron Ginger
V4 Screen Contributor
Offline
Posts: 547
Re: File Corrupt error
«
Reply #6 on:
February 06, 2010, 06:52:00 PM »
Looks like I may have solved teh problem- the Start button, and several others got trashed to unknown values. I corrected them, it now looks OK.
I wonder what else is trashed in the file?
I do see strange background images on all my screens except 0. There should be just a plai grey background, I see it mostly white with some grey areas.
How are you supposed to enter a system button? I thought I remembered a pull down list, the only way I can find is to enter and oem code number
thanks for all the help
Logged
Klaus1311
Active Member
Offline
Posts: 297
Re: File Corrupt error
«
Reply #7 on:
February 07, 2010, 04:12:10 AM »
Hi Ron,
I've tried your screen-set, but can't get the "Scripter Compile Error" message.
On page 0 (which is the persistant page = all elements appear on all pages) you have on the left hand side a button "Text" with the function "cycle start". On page 2 you have a label with the text "Program run" without a function.
It looks to me, page 0 and page1 is a copy.
I suppose you have the background color problems with MachScreen. The actual frame size is not stored in the set-file, Mach3 sets the frame size to the windows size for development MachScreen determines the screen size in 2 ways:
1) the outest element positions build the outer frame
2) set the frame size with the frame size button. You can select for every page the size, this gives you the opportunity to see how it will like on your target system.
To enter a button select "button" in the combo box next to the "Add" button in the property dialog. Once you selected the element you can place it with the "Add" button. Depending on "options -> settings Place obj. at mouse pos" :
Place obj. at mouse button checked when clicking the left mouse button the element is placed at the cursor pos, to place the element repeatedly, hold down the "ctrl" key and click the left mouse button
Place obj. at mouse button unchecked when you click "Add" the element is placed on an incrementing pos from a top, left to bottom down, to place repeatedly, every left mouse button click places another element.
Klaus
Logged
DaveCVI
V4 Screen Contributor
Offline
Posts: 523
Re: File Corrupt error
«
Reply #8 on:
February 07, 2010, 05:12:57 PM »
Klaus
1.37D does not seem to fix the problem yet - here us the test case
start mach
edit button code
Used menu to do view/save current layout - mach says layout modified and stored
close mach
Open set in MS - file corrupt error
did NOT continue in MS
Open set file in Screen 4
save file
close screen 4
open set file in MS - file is fine - NO file corrupt error
Dave
Logged
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com
Klaus1311
Active Member
Offline
Posts: 297
Re: File Corrupt error
«
Reply #9 on:
February 07, 2010, 05:19:15 PM »
Hi Dave,
when you get the "file corrupted" message reply with continue yes, then save from within MachScreen. When you now load again, you shouldn't get the corrupted message.
Klaus
Logged
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
Loading...