问题描述:

I have a problem that I can't reproduce on my configuration. It works on my windows server configuration (using TSE) but my client has the same configuration and it's not working, I explain :

I have a virtual printer that's call my DLL. The DLL I've written depends on another DLL (in the same folder).

On my config, everything works perfectly. Severals accounts working together and everything is good.

BUT : On my client account I have an error on the same practice.

to summarize :


[PRINTER] => [my DLL] (load the other dll) => process

-> Working on my configuration, but an error appears on my

client configuration (same os version, same 32 bit, probably different params)


There is the error :

System.IO.IOException Pile :

System.IO.__Error.WinIOError(Int32, System.String)

System.IO.FileStream.Init(System.String, System.IO.FileMode,

System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32,

System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean,

Boolean, Boolean) à System.IO.FileStream..ctor(System.String,

System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32,

System.IO.FileOptions, System.String, Boolean, Boolean, Boolean)

System.IO.StreamWriter.CreateFile(System.String, Boolean, Boolean)

à System.IO.StreamWriter..ctor(System.String, Boolean,

System.Text.Encoding, Int32, Boolean)

System.IO.StreamWriter..ctor(System.String, Boolean)

PrinterPlusPlusSDK.IO.Log(System.String)

PrinterPlusPlus.IOMonitorHelper.fsw_eventHandler(System.Object,

System.IO.FileSystemEventArgs)

System.IO.FileSystemWatcher.OnCreated(System.IO.FileSystemEventArgs)

à System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32,

System.String)

System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32, UInt32,

System.Threading.NativeOverlapped*)

System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32,

UInt32, System.Threading.NativeOverlapped*)

my DLL code :

namespace MyNameSpance

{

class Processor : PrinterPlusPlusSDK.IProcessor

{

public PrinterPlusPlusSDK.ProcessResult Process(string key, string psFilename)

{

[...]

PrinterPlusPlusSDK.ProcessResult res = new PrinterPlusPlusSDK.ProcessResult(); // seems to crash around here

return (res);

}

}

}

相关阅读:
Top