Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
AnswerRe: Visual Studio integrated Source Control Pin
Expert Coming13-Oct-09 15:26
Expert Coming13-Oct-09 15:26 
GeneralRe: Visual Studio integrated Source Control Pin
Not Active13-Oct-09 17:41
mentorNot Active13-Oct-09 17:41 
AnswerRe: Visual Studio integrated Source Control Pin
Kevin Marois14-Oct-09 5:38
professionalKevin Marois14-Oct-09 5:38 
Question[Message Deleted] Pin
arkiboys13-Oct-09 12:20
arkiboys13-Oct-09 12:20 
AnswerRe: linqtoxml - update Pin
Christian Graus13-Oct-09 12:23
protectorChristian Graus13-Oct-09 12:23 
GeneralRe: linqtoxml - update Pin
arkiboys13-Oct-09 12:34
arkiboys13-Oct-09 12:34 
AnswerRe: linqtoxml - update Pin
Not Active13-Oct-09 12:27
mentorNot Active13-Oct-09 12:27 
QuestionWindows Service and Process Class [modified] Pin
Fallout_Monkey13-Oct-09 11:37
Fallout_Monkey13-Oct-09 11:37 
Hello everybody,
I have a problem to which I haven't been able to find an answer through Google. I am making a windows service that reads image files in an input folder and then profiles the document in a document management system. The program can't manipulate images itself so it's OCR and Barcode reading, and image splitting, converting and combining functions are performed in separate applications using the System.Diagnostics.Process class.

The problem I am running into is that when I call my TiffSplitter app I get a System.OutOfMemoryException when I the image is first loaded into the program. In initial testing I found that I could set the "Allow service to interact with desktop" property of the service and it would run on my development PC but this quick fix didn't solve the problem on a client site.

I know that setting that property isn't a proper solution either so I'm open to ideas as to how to properly fix this. The reason this program is a service is so that it will auto start on system startup and doesn't require a windows user to log on to windows to start working. Is there any way of increasing the amount of memory that a process can use? Or is there some other solution that I'm missing?

Here some info about The PC's and the Program:
Development PC-
OS: WIN XP with SP2
Pentium 4 2.80GHz
2GB Ram

Client Server-
OS: WIN Server 2003
Runs on a virtual machine

TiffSplitter app-
vb6 app
Uses Imaging Pro to split and OCR Tiffs
Program loads fine but errors out on the image loading functions

Service app-
C# 2.0 app
Uses following code [Paraphrased] to open TiffSpliter:
using (Process p = new Process())
{
    p.StartInfo.CreateNoWindow = true;
    p.StartInfo.UseShellExecute = false;
    p.StartInfo.Arguments = [args];
    p.StartInfo.FileName = [exe];
    p.Start();					
    p.WaitForExit();
    p.Close();
}


modified on Friday, October 30, 2009 6:35 PM

AnswerRe: Windows Service and Process Class Pin
Jacobb Michael13-Oct-09 17:35
Jacobb Michael13-Oct-09 17:35 
GeneralRe: Windows Service and Process Class Pin
Fallout_Monkey27-Oct-09 6:39
Fallout_Monkey27-Oct-09 6:39 
AnswerRe: Windows Service and Process Class Pin
Dave Kreskowiak13-Oct-09 18:27
mveDave Kreskowiak13-Oct-09 18:27 
GeneralRe: Windows Service and Process Class Pin
Fallout_Monkey27-Oct-09 6:42
Fallout_Monkey27-Oct-09 6:42 
GeneralRe: Windows Service and Process Class Pin
Dave Kreskowiak27-Oct-09 11:59
mveDave Kreskowiak27-Oct-09 11:59 
GeneralRe: Windows Service and Process Class [modified] Pin
Fallout_Monkey28-Oct-09 4:56
Fallout_Monkey28-Oct-09 4:56 
GeneralRe: Windows Service and Process Class Pin
Dave Kreskowiak28-Oct-09 13:26
mveDave Kreskowiak28-Oct-09 13:26 
GeneralRe: Windows Service and Process Class Pin
Fallout_Monkey29-Oct-09 5:11
Fallout_Monkey29-Oct-09 5:11 
GeneralRe: Windows Service and Process Class Pin
Dave Kreskowiak29-Oct-09 14:51
mveDave Kreskowiak29-Oct-09 14:51 
GeneralRe: Windows Service and Process Class Pin
Fallout_Monkey30-Oct-09 9:17
Fallout_Monkey30-Oct-09 9:17 
GeneralRe: Windows Service and Process Class Pin
Dave Kreskowiak30-Oct-09 12:47
mveDave Kreskowiak30-Oct-09 12:47 
QuestionRemote PC Control Pin
aravindjayan13-Oct-09 10:46
aravindjayan13-Oct-09 10:46 
AnswerRe: Remote PC Control Pin
Mycroft Holmes13-Oct-09 14:44
professionalMycroft Holmes13-Oct-09 14:44 
GeneralRe: Remote PC Control Pin
aravindjayan14-Oct-09 2:43
aravindjayan14-Oct-09 2:43 
AnswerRe: Remote PC Control Pin
Jacobb Michael13-Oct-09 17:37
Jacobb Michael13-Oct-09 17:37 
Question(File System Monitoring) :: File Deletion & Who Removed It Pin
bs999913-Oct-09 10:36
bs999913-Oct-09 10:36 
AnswerRe: (File System Monitoring) :: File Deletion & Who Removed It Pin
Jacobb Michael13-Oct-09 17:40
Jacobb Michael13-Oct-09 17:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.