Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting JPEG Images into XML Pin
Colin Angus Mackay27-Oct-08 22:18
Colin Angus Mackay27-Oct-08 22:18 
GeneralOpening a CSV File [modified] Pin
ndeza27-Oct-08 22:13
ndeza27-Oct-08 22:13 
GeneralRe: Opening a CSV File Pin
Rajesh R Subramanian27-Oct-08 22:43
professionalRajesh R Subramanian27-Oct-08 22:43 
GeneralRe: Opening a CSV File Pin
ndeza27-Oct-08 22:54
ndeza27-Oct-08 22:54 
GeneralRe: Opening a CSV File Pin
Vikram A Punathambekar28-Oct-08 2:59
Vikram A Punathambekar28-Oct-08 2:59 
QuestionReading Specific Line Pin
Saiyed Alam27-Oct-08 21:32
Saiyed Alam27-Oct-08 21:32 
AnswerRe: Reading Specific Line Pin
Guffa27-Oct-08 21:39
Guffa27-Oct-08 21:39 
AnswerRe: Reading Specific Line Pin
Programm3r27-Oct-08 22:11
Programm3r27-Oct-08 22:11 
GeneralRe: Reading Specific Line Pin
Guffa28-Oct-08 2:21
Guffa28-Oct-08 2:21 
GeneralRe: Reading Specific Line Pin
Programm3r28-Oct-08 3:44
Programm3r28-Oct-08 3:44 
AnswerRe: Reading Specific Line Pin
PIEBALDconsult28-Oct-08 11:22
mvePIEBALDconsult28-Oct-08 11:22 
QuestionHow NOT to select a cell in DGV? Pin
User 543536427-Oct-08 19:17
User 543536427-Oct-08 19:17 
AnswerRe: How NOT to select a cell in DGV? Pin
AhsanS27-Oct-08 20:52
AhsanS27-Oct-08 20:52 
GeneralRe: How NOT to select a cell in DGV? Pin
User 543536427-Oct-08 20:54
User 543536427-Oct-08 20:54 
QuestionFreehand drawing on WPF Pin
softwareengr27-Oct-08 19:14
softwareengr27-Oct-08 19:14 
AnswerRe: Freehand drawing on WPF Pin
leppie28-Oct-08 1:14
leppie28-Oct-08 1:14 
AnswerRe: Freehand drawing on WPF Pin
Pete O'Hanlon28-Oct-08 2:32
mvePete O'Hanlon28-Oct-08 2:32 
QuestionAutomating mpp using late binding Pin
DJ24527-Oct-08 18:27
DJ24527-Oct-08 18:27 
Questioncan not connect with .xls file Pin
HowIsIT27-Oct-08 17:47
HowIsIT27-Oct-08 17:47 
AnswerRe: can not connect with .xls file Pin
Parwej Ahamad27-Oct-08 18:23
professionalParwej Ahamad27-Oct-08 18:23 
GeneralRe: can not connect with .xls file Pin
HowIsIT27-Oct-08 23:12
HowIsIT27-Oct-08 23:12 
QuestionSimple screensaver crashing Pin
Data_Dragon27-Oct-08 14:00
Data_Dragon27-Oct-08 14:00 
Questionresources in solution Pin
nelsonpaixao27-Oct-08 13:10
nelsonpaixao27-Oct-08 13:10 
AnswerRe: resources in solution Pin
DaveyM6927-Oct-08 15:50
professionalDaveyM6927-Oct-08 15:50 
Questionthread abort exception when service ends to where it has been invoked from Pin
stephan_00727-Oct-08 13:04
stephan_00727-Oct-08 13:04 
hy everyone!

we do have a problem:
we coded a webpart which allows searching and printing of document in a document store. you search for files, you are able to display them and you are able to print them.

therefor we wrote a printservice, which fetches the file from the store and sends them to the spooler and printer respectively. that works fine. afterwords we update the database to set some fields, indicating the file was already printed.

when using a little amount of files it works file, but the bigger the collection of file is, the more problems appear. meaning, when selecting around 100 files with around 1 MB each, a thread abort exception is thrown. if there are just 40 files, no exception is thrown.

and to complicate the situation: if you repeat printing the same files lets say for 10 times, it works in lets say 7 tries and fails in 3 tries. sometimes it even works in all tries or it fails more often. its like guessing numbers in a lottery.

but it does not throw the thrad abort exception during printing, it throws the exception when returning to the code of the webpart where the printing was invoked at. meaning we wrote a printbuttonclick event-function which invokes the printservice with the file ids, and some other properties. and when returning the exception is thrown.

we tried to change the timeout of the printservice indefinite (-1), we also tried to change the code to get as much performance as possible, we also did a lot of garbage collection etc. but we can't get rid of this exception.

we also have already been googling for this incident, but nothing really solved our problem. we were just able to send more files until it is likely to be thrown.

printing around 100 files could take up to 1-2 minutes, so i guess maybe this could take to long and the thread times out when returning.

does anyone have an idea of
1) where to start to get an idea how to get rid of this error (maybe a page of hints we haven't already been to etc.)
2) how to get rid of this exception. maybe one of you has already encountered anything similar.

thanks for any hints and ideas.

if you do need some further infos for understanding or to get an idea of how to solve it, just feel free to ask.

thanks!

stephan.

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.