Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: biometric sdk for hp ipaq pda Pin
Richard MacCutchan14-Oct-09 3:07
mveRichard MacCutchan14-Oct-09 3:07 
QuestionGetting corrupt data from NetworkStream.Read Pin
JFord123414-Oct-09 1:34
JFord123414-Oct-09 1:34 
AnswerRe: Getting corrupt data from NetworkStream.Read Pin
Richard MacCutchan14-Oct-09 3:20
mveRichard MacCutchan14-Oct-09 3:20 
GeneralRe: Getting corrupt data from NetworkStream.Read Pin
JFord123414-Oct-09 5:51
JFord123414-Oct-09 5:51 
QuestionWebservice and proxy Pin
Mogyi13-Oct-09 23:11
Mogyi13-Oct-09 23:11 
AnswerRe: Webservice and proxy Pin
Keith Barrow14-Oct-09 2:00
professionalKeith Barrow14-Oct-09 2:00 
GeneralRe: Webservice and proxy Pin
Mogyi14-Oct-09 2:15
Mogyi14-Oct-09 2:15 
AnswerRe: Webservice and proxy Pin
Hristo-Bojilov14-Oct-09 2:04
Hristo-Bojilov14-Oct-09 2:04 
GeneralRe: Webservice and proxy Pin
Mogyi14-Oct-09 2:17
Mogyi14-Oct-09 2:17 
QuestionOpening a named browser window from a windows application Pin
mSh198513-Oct-09 22:26
mSh198513-Oct-09 22:26 
QuestionAdding Data to datagridview [modified] Pin
ldsdbomber13-Oct-09 20:36
ldsdbomber13-Oct-09 20:36 
AnswerRe: Adding Data to datagridview Pin
OriginalGriff13-Oct-09 23:50
mveOriginalGriff13-Oct-09 23:50 
GeneralRe: Adding Data to datagridview Pin
ldsdbomber14-Oct-09 1:22
ldsdbomber14-Oct-09 1:22 
Questionwrite to a excel sheet that is already open Pin
ananya choudhury13-Oct-09 17:18
ananya choudhury13-Oct-09 17:18 
QuestionApp Communication via screen reads Pin
Rizean13-Oct-09 15:54
Rizean13-Oct-09 15:54 
QuestionVisual Studio integrated Source Control Pin
Expert Coming13-Oct-09 13:46
Expert Coming13-Oct-09 13:46 
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 

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.