Mattm
New member
- Joined
- Jan 16, 2008
- Messages
- 3
- Programming Experience
- 10+
I've got a problem with VS2008 it keeps corrupting one class almost daily, I've tried renaming the file and renaming the class but it still garbles up only this one class, sometime between run builds minutes apart.
Also it seams to fill up part of the file only to a certian line row count: L:112 C:32
here is the current garbage in the file, plus a couple lines of where the real code continues:
Here is some other garbage that has been in it prevously, plus a couple lines of where the real code continues::
Here is the Origional code upto to the line 112 count
Also it seams to fill up part of the file only to a certian line row count: L:112 C:32
here is the current garbage in the file, plus a couple lines of where the real code continues:
HTML:
<ServiceInfo Version="1.0" Key="MediaGuide">
<FriendlyName>Media Guide</FriendlyName>
<Color MediaPlayer="#0063B0" />
<Image MenuURL="http://images.metaservices.microsoft.com/svcswitch/wm_com_v_rgb_15x15.png"
ServiceLargeURL="http://images.metaservices.microsoft.com/svcswitch/WindowsMediaPlayer11_30x30.png"/>
<ServiceTask1 URL="http://www.windowsmedia.com/mediaguide/home">
<ButtonText>Media Guide</ButtonText>
<ButtonTip>Media Guide</ButtonTip>
</ServiceTask1>
<InfoCenter URL="http://images.metaservices.microsoft.com/svcswitch/default.htm" />
<AlbumInfo URL="http://images.metaservices.microsoft.com/svcswitch/default.htm" />
</ServiceInfo>lid(_FloatAlarm) Then myAlarms.AlarmClear(_FloatAlarm, "Normal")
End If
Has Any one seen any thing like this before?
INDX( †!2ú ( x è »»È ~ »~ 7 % ¨ ˜ »ÂgtözÈ’ctözÈ’ctözÈÂgtözÈ € *u +1 d 5 c c a 6 b - 4 b 1 7 - 9 2 4 c - f 7 3 d - b 6 2 4 5 f 4 a 0 9 6 1 [ 1 ] . h t m 7 % p Z »ÂgtözÈ’ctözÈ’ctözÈÂgtözÈ € *u 1 D 5 C C A ~ 1 . H T M 3 - 9 Ãæ € »fVÐxH}ÈfVÐxH}ÈèöÉýÿÿfVÐxH}È
7 8 4 1 4 _ b u t t o n 5 _ 3 2 x 3 2 _ r 1 t 0 [ 1 ] . p n g Ãæ p Z fVÐxH}ÈfVÐxH}ÈèöÉýÿÿfVÐxH}È
7 8 4 1 4 _ ~ 1 . P N G 3 - 9 $‘ B ¨ ˜ »¢_^özÈ"Åb^özÈ"Åb^özÈ¢_^özÈ @ != +7 f f f 5 7 7 9 - 7 7 4 3 - 9 2 e 1 - d 0 5 e - 4 5 c d c 2 7 2 0 8 5 7 [ 1 ] . h t m $‘ B p Z »¢_^özÈ"Åb^özÈ"Åb^özÈ¢_^özÈ @ != 7 F F F 5 7 ~ 1 . H T M ¦Ç ÷ x f »f‘„{}Èæ” ‡{}ÈöŒýÿÿf‘„{}È A l l S e r v i c e s [ 1 ] . x m l [ ¦Ç ÷ p Z f‘„{}Èæ” ‡{}ÈöŒýÿÿf‘„{}È A L L S E R ~ 1 . X M L o n _ jT • ˆ t »V%οI}ÈvsοI}ÈÌñÃýÿÿV%οI}È d a u d i b l e _ a _ i c o n _ 1 5 T [ 1 ] . p n g l jT • p Z »V%οI}ÈvsοI}ÈÌñÃýÿÿV%οI}È d A U D I B L ~ 1 . P N G p [ 1 ½ ~ »¦€u
O}È’v
O}Èèö’
ýÿÿ¦€u
O}È Ÿ a u r i g m a _ l o g o 6 0 x 6 0 _ s o l i d [ 1 ] . g i f ½ p Z »¦€u
O} ’v
O}Èèö’
ýÿÿ¦€u
O}È Ÿ A U R I G M ~ 1 . G I F p [ 1 A‘ l € j »’VÎþzȲëVÎþzÈèöô
ýÿÿ’VÎþzÈ ¬ c a r e e r s _ s t r i p [ 1 ] . g i f ² A‘ l p Z »’VÎþzȲëVÎþzÈèöô
ýÿÿ’VÎþzÈ ¬ C A R E E R ~ 1 . G I F [ 1 ] p< ² x f »Bo*tözÈb½*tözÈb½*tözÈBo*tözÈ Œ C h e c k b o x M e n u [ 1 ] . j s 1 p< ² h X »Bo*tözÈb½*tözÈb½*tözÈBo*tözÈ Œ C H E C K B ~ 1 . J S T < p ^ »†jj²c}ȶßj²c}ȶßj²c}Ȇjj²c}È K c o l l a l l [ 1 ] . g i f s T < p Z »†jj²c}ȶßj²c}ȶßj²c}Ȇjj²c}È K C O L L A L ~ 1 . G I F i e s Ž¿ € l »B¢—‘'{Èbð—‘'{Èbð—‘'{ÈB¢—‘'{È 0 ' C o m m o n U t i l i t i e s [ 1 ] . j s g i 1 . G I F ® éÁ K p Z »bà¥'{Èr¦'{Èr¦'{Èbà¥'{È B C O P Y C O 2 . G I F ™ B¡ ( € n »æõ=
O}È&’>
O}Èèö’
ýÿÿæõ=
O}È Á C P I n s i d e r - E m a i l [ 1 ] . p n g »B¡ ( p Z »æõ=
O}È&’>
O}Èèö’
ýÿÿæõ=
O}È Á C P I N S I ~ 1 . P N G ™ f 7h X »¢kF§ézÈ¢kF§ézÈ¢kF§ézÈ¢kF§ézÈH C d e s k t o p . i n i ο ™ € j »’'{Ȱ’'{Ȱ’'{È’'{È [ d r o p d o w n H o v e r [ 1 ] . g i f ^ §j ÿp ` b‘ÑtözÈr¸ÑtözÈr¸ÑtözÈb‘ÑtözÈ v d r o p d o w n [ 1 ] . g i f À8 ¿p ^ »òÀ]tözÈ2Î`tözÈ2Î`tözÈòÀ]tözÈ ½
D r o p d o w n [ 1 ] . j s g §j ÿp Z »b‘ÑtözÈr¸ÑtözÈr¸ÑtözÈb‘ÑtözÈ v D R O P D O ~ 1 . G I F ® À8 ¿h X »òÀ]tözÈ2Î`tözÈ2Î`tözÈòÀ]tözÈ ½
D R O P D O ~ 1 . J S ο ™ p Z »’'{Ȱ’'{Ȱ’'{È’'{È [ D R O P D O 2 . G I F ] . g ¹s & x f »âþ„*{ÈÂx1…*{ÈtðÂýÿÿâþ„*{È @ Ô4 e 2 7 8 2 2 1 3 3 9 a [ 1 ] . j p g . ¹s & p Z »âþ„*{ÈÂx1…*{ÈtðÂýÿÿâþ„*{È @ Ô4 E 2 7 8 2 2 ~ 1 . J P G ] . g ‰” ® x d »´º_özÈ2À_özÈ2À_özÈ´º_özÈ ' e x p a n d _ a l l [ 1 ] . g i f ] . rÁ º x d »¢¨u'{ȲÏu'{ȲÏu'{È¢¨u'{È ' e x p a n d _ a l l [ 2 ] . g i f » (
lid(_FloatAlarm) Then myAlarms.AlarmClear(_FloatAlarm, "Normal")
End If
Here is the Origional code upto to the line 112 count
VB.NET:
[SIZE="2"][FONT="Lucida Console"]
''' <summary>
''' supports a collection of Floats and valves for a ammonia king
''' </summary>
''' <remarks> note kingX is a tag = king0 lists zones
''' [KingSystem name="King System" kingX="" retrigger="5"]
''' [Inputs(Digitalinputs()).../]
''' [Outputs(digitalOutputs()).../>]
''' [/KingSystem]
''' </remarks>
Public Class KingSystem
Inherits GItem
#Region "Varables"
''' <summary>
''' king floats
''' </summary>
''' <remarks></remarks>
Private _floats() As DigitalInput
''' <summary>
''' King sols
''' </summary>
''' <remarks></remarks>
Private _kings() As DigitalOutput
''' <summary>
''' one list per king sol
''' </summary>
''' <remarks></remarks>
Private _ZoneList() As fbMultiSelect
''' <summary>
''' if a float trips then how long to wait before reinergizing
''' </summary>
''' <remarks></remarks>
Private _RetryDelay As fbInteger
''' <summary>
''' the delays in the reinergizing of the kings
''' </summary>
''' <remarks></remarks>
Private _Delays() As Date
''' <summary>
''' the alarm to trigger if all float are on
''' </summary>
''' <remarks></remarks>
Private _FloatAlarm As Long
''' <summary>
''' for display on the screen
''' </summary>
''' <remarks></remarks>
Private _output As ValuePair
#End Region
''' <summary>
''' creates a new KingSystem
''' </summary>
''' <param name="theNode">the xmlnode to parse</param>
''' <param name="theOwner">who owns this code</param>
''' <param name="OwnerArray">a list to add items to</param>
''' <remarks></remarks>
Public Sub New(ByVal theNode As XmlNode, ByVal theOwner As String, ByVal OwnerArray As List(Of GItem))
MyBase.New(theNode, theOwner)
'setup the hardware
_floats = DigitalInput.GetItems(mNode, "Inputs", theOwner, OwnerArray)
_kings = DigitalOutput.GetItems(mNode, "Outputs", theOwner, OwnerArray)
ReDim _ZoneList(_kings.Length - 1)
ReDim _Delays(_kings.Length - 1)
Dim lst() As String = Globals.GetAllItemsSupportEffectsSuction
Dim ful As String = String.Join(",", lst)
'setup the settings
_RetryDelay = mSettings.AddInteger("King Re-trigger time after float trip", "Minutes", 120, 0, PropUse.Advanced, mNode, "retrigger", 5, _floats.Length <> _kings.Length)
For xloop As Integer = 0 To _kings.Length - 1
_ZoneList(xloop) = mSettings.AddMultiSelect("Zone Opperating on " & _kings(xloop).Name, "", lst, PropUse.Advanced, mNode, "king" & xloop, ful)
_Delays(xloop) = Now
Next
'set up the screen items
_output = Me.AddVP(VType.String, VAType.Display, DspBts.None)
End Sub
''' <summary>
''' updates the code
''' </summary>
''' <param name="AllowRun">if the kings are allowed to run</param>
''' <remarks></remarks>
Public Shadows Sub Update(ByVal AllowRun As Boolean)
'check up on the floats
Dim smCnt As Boolean = _floats.Length = _kings.Length
Dim bAlarm As Boolean = True
For xloop As Integer = 0 To _floats.Length - 1
Dim lencnt As Integer = _floats(xloop).SameCount
'if the float counts = the king solinoid count
'and the float has tripped off then set the
'next time to reinergize the matching king
'as long as the change count on the float is
'only within 1 to 5 seconds
If smCnt AndAlso _floats(xloop).Value = False Then
If (1 < lencnt < 5) Then _Delays(xloop) = Now.AddMinutes(_RetryDelay.Value)
bAlarm = False
End If
Next
'check for alarming out
If bAlarm Then
If myAlarms.AlarmValid(_FloatAlarm) = False Then
_FloatAlarm = myAlarms.AlarmCreate(AlarmType.MachineKingFloat, Me.Name)
End If
Else
If myAlarms.AlarmValid(_FloatAlarm) Then myAlarms.AlarmClear(_FloatAlarm, "Normal")
End If[/FONT][/SIZE]
Last edited by a moderator: