Dick,
Thanks for the dll and although it "works" there is a serious problem. When
I reload my project, my main form, in which your code is utilised comes up
with :
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.Reflection.AssemblyName.GetAssemblyName(Str ing assemblyFile)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AddProjectDependencies(Project
project)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Assembly()
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(String
fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreCase, Assembly& assembly,
ReferenceType refType)
at Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionService.GetType(String
name, Boolean throwOnError)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.GetType(ITypeResolutionService
trs, String name, Dictionary`2 names)
at
System.ComponentModel.Design.Serialization.CodeDom SerializerBase.FillStatementTable(IDesignerSeriali zationManager
manager, IDictionary table, Dictionary`2 names, CodeStatementCollection
statements, String className)
at
System.ComponentModel.Design.Serialization.TypeCod eDomSerializer.Deserialize(IDesignerSerializationM anager
manager, CodeTypeDeclaration declaration)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad(IDesignerSerializationM anager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.PerformLoad(IDesignerSer ializationManager
serializationManager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.DeferredLoadHandler.Micr osoft.VisualStudio.TextManager.Interop.IVsTextBuff erDataEvents.OnLoadCompleted(Int32
fReload)
in the designer.
If I close ths, view the code, comment out the line:
Private WithEvents SerialPort1 As New DesktopSerialIO.SerialIO.SerialPort
or change it to
Public WithEvents SerialPort1 As New DesktopSerialIO.SerialIO.SerialPort
I can then view the designer. If I put the line back to what it was, it is
still ok. The project builds fine, and builds the deployment ok - also
deploys fine, but I'm confused as to why this "error" occurs?
Tym
"Dick Grier" <dick_grierNOSPAM@.msn.comwrote in message
news:uZ**************@TK2MSFTNGP02.phx.gbl...
Hi,
Sorry, I don't have a specific answer for you. However, I do have a
suggestion. Download DesktopSerialIO.dll (the VS2005 version) from my web
site and port your code to use it -- the syntax is slightly different, but
similar enough that it should take only a few minutes of work (OnComm
instead of DataReceived, Output instead of Write, and InputString instead
of ReadExisting). Give this a try.
I have found that the SerialPort object in VS2005 can be problematic with
Virtual Serial ports for USB devices -- but my dll seems to be "OK" with
them. Microsoft is aware of the issues that I have seen, though the only
time I've seen a problem is if the physical device connection is lost,
then re-established.
Anyway, let me know what you find.
Dick
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.