1 Replies - 4320 Views - Last Post: 07 February 2010 - 03:45 PM Rate Topic: -----

#1 pgeorge33   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 03-January 10

Parallel Port Programming Exceptions in C#

Posted 03 January 2010 - 03:32 PM

I have a small application I have written in C# using Visual Studio 2008. I am using inpout.dll as found in many places on the net. My application runs fine on 2 of my PC's but I get a "SEHException" on a third machine. All three machines are running XP Pro w/ SP3. All three have ECP parallel ports with the same addresses and DMA interrupt. All 3 machines have .NET 3.5. Can anyone give me anything I should be looking for to solve this?

Here is the excepton dump I get:


System.Runtime.InteropServices.SEHException was unhandled
Message="External component has thrown an exception."
Source="Furnace Control"
at Furnace_Control.Form1.PortAccess.Output(Int32 adress, Int32 value)
at Furnace_Control.Form1..ctor() in C:\Furnace Control\Furnace Control\Form1.cs:line 128
at Furnace_Control.Program.Main() in C:\Furnace Control\Furnace Control\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


Thanks for ideas you might have.

I'd be happy to send code details if that would help.


Is This A Good Question/Topic? 0
  • +

Replies To: Parallel Port Programming Exceptions in C#

#2 nohoijil   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 03-February 10

Re: Parallel Port Programming Exceptions in C#

Posted 07 February 2010 - 03:45 PM

my name is byambaa
may i ask a question .
do you now that parallel port programming that primer any image file .tga file read after this file send by parallel port by bait by bait on vusual c# can you tell me
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1