Click here to Skip to main content
15,867,985 members
Home / Discussions / C#
   

C#

 
GeneralRe: DNS Suffix Pin
Richard MacCutchan18-Feb-14 22:57
mveRichard MacCutchan18-Feb-14 22:57 
Questionneed help with code with reference and generic function Pin
neodeaths18-Feb-14 16:18
neodeaths18-Feb-14 16:18 
AnswerRe: need help with code with reference and generic function Pin
Richard Andrew x6418-Feb-14 17:51
professionalRichard Andrew x6418-Feb-14 17:51 
AnswerRe: need help with code with reference and generic function Pin
Richard MacCutchan18-Feb-14 22:27
mveRichard MacCutchan18-Feb-14 22:27 
GeneralRe: need help with code with reference and generic function Pin
Freak3019-Feb-14 1:45
Freak3019-Feb-14 1:45 
AnswerRe: need help with code with reference and generic function Pin
Richard Deeming19-Feb-14 2:14
mveRichard Deeming19-Feb-14 2:14 
AnswerRe: need help with code with reference and generic function Pin
Matt T Heffron19-Feb-14 7:54
professionalMatt T Heffron19-Feb-14 7:54 
QuestionCreating HUGE Bitmap objects? Pin
SledgeHammer0118-Feb-14 8:10
SledgeHammer0118-Feb-14 8:10 
I have a web service where I need to create a very large bitmap 15,000 x 15,900 x 32bpp. Code fails on my machine (Parameter is not valid exception). On the IIS server, I can create about 85 or so before I get the Parameter is not valid exception. I do NOT keep all 85 in memory if that was your next question Smile | :) .

Workflow is pretty much:

1) Get image request
2) Create 15,000 x 15,900 x 32bpp bitmap
3) Do stuff to it
4) Convert it to 1bpp and return the bytes

I've changed my code around so I call Dispose() on the various Graphics objects every step of the way the second I don't need them anymore, but no luck. The bitmap in Step #2 has to be 32bpp.

Originally I had 10,000 x 10,900 bitmaps and I could process a whole set without crashing (710+). Unfortunately, QA requested the bitmaps to be 15,000 x 15,900. Trying to see how far I get by dropping to 14,000 x 14,900.

I suspect this has to do with the Large Object Heap fragmentation?

One of the recomendations I've seen on the net is to just create a single 15,000 x 15,900 object and re-use it.

Not sure how that would work in a web service. Each simultaneous request needs a 15,000 x 15,900 bitmap of its own.

Saw there is something in .NET 4.5.1 to compact the large object heap... might try that next if the 14k images don't work.
AnswerRe: Creating HUGE Bitmap objects? Pin
David Knechtges18-Feb-14 10:54
David Knechtges18-Feb-14 10:54 
GeneralRe: Creating HUGE Bitmap objects? Pin
SledgeHammer0118-Feb-14 11:26
SledgeHammer0118-Feb-14 11:26 
QuestionRe: Creating HUGE Bitmap objects? Pin
Eddy Vluggen18-Feb-14 11:20
professionalEddy Vluggen18-Feb-14 11:20 
AnswerRe: Creating HUGE Bitmap objects? Pin
SledgeHammer0118-Feb-14 11:27
SledgeHammer0118-Feb-14 11:27 
GeneralRe: Creating HUGE Bitmap objects? Pin
Eddy Vluggen19-Feb-14 8:19
professionalEddy Vluggen19-Feb-14 8:19 
AnswerRe: Creating HUGE Bitmap objects? Pin
Bernhard Hiller18-Feb-14 21:26
Bernhard Hiller18-Feb-14 21:26 
AnswerRe: Creating HUGE Bitmap objects? Pin
Pete O'Hanlon18-Feb-14 21:51
subeditorPete O'Hanlon18-Feb-14 21:51 
QuestionCompiling the codes Pin
Blubbo18-Feb-14 6:39
Blubbo18-Feb-14 6:39 
GeneralRe: Compiling the codes Pin
harold aptroot18-Feb-14 6:43
harold aptroot18-Feb-14 6:43 
GeneralRe: Compiling the codes Pin
Blubbo18-Feb-14 7:03
Blubbo18-Feb-14 7:03 
GeneralRe: Compiling the codes Pin
Blubbo18-Feb-14 7:48
Blubbo18-Feb-14 7:48 
AnswerRe: Compiling the codes Pin
Richard Andrew x6418-Feb-14 6:48
professionalRichard Andrew x6418-Feb-14 6:48 
Questionlooking for code to logout in multiple browser tab Pin
umesh lade18-Feb-14 4:56
umesh lade18-Feb-14 4:56 
AnswerRe: looking for code to logout in multiple browser tab Pin
Mycroft Holmes18-Feb-14 11:49
professionalMycroft Holmes18-Feb-14 11:49 
GeneralRe: looking for code to logout in multiple browser tab Pin
Ramug1018-Feb-14 22:08
Ramug1018-Feb-14 22:08 
QuestionHow to load a function first? Pin
Member 776638518-Feb-14 0:28
Member 776638518-Feb-14 0:28 
AnswerRe: How to load a function first? Pin
Keith Barrow18-Feb-14 2:32
professionalKeith Barrow18-Feb-14 2:32 

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.