Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
QuestionGDI+ A generic error occurred Pin
ben23-Jan-07 10:34
ben23-Jan-07 10:34 
AnswerRe: GDI+ A generic error occurred Pin
Christian Graus3-Jan-07 10:40
protectorChristian Graus3-Jan-07 10:40 
GeneralRe: GDI+ A generic error occurred Pin
ben23-Jan-07 10:45
ben23-Jan-07 10:45 
GeneralRe: GDI+ A generic error occurred Pin
Christian Graus3-Jan-07 11:42
protectorChristian Graus3-Jan-07 11:42 
GeneralRe: GDI+ A generic error occurred Pin
ben23-Jan-07 11:59
ben23-Jan-07 11:59 
AnswerRe: GDI+ A generic error occurred Pin
Captain See Sharp3-Jan-07 11:25
Captain See Sharp3-Jan-07 11:25 
GeneralRe: GDI+ A generic error occurred Pin
ben23-Jan-07 11:32
ben23-Jan-07 11:32 
GeneralRe: GDI+ A generic error occurred Pin
Luc Pattyn3-Jan-07 12:05
sitebuilderLuc Pattyn3-Jan-07 12:05 
GDI+ works with strings that are either "Pascal strings" (length + data) or "C strings"
(null terminated), so it has a explicit notion of string length (which gets set to -1
for C strings).

And I would not be surprised there are some 16-bit limitations to integer quantities
(hence max 65535 or even 32767 since -1 suggests signed integers are used for lengths).

one thing I found after a quick Google was:
"Due to a limitation of the GDI+ decoder, an System.ArgumentException is thrown if you construct a bitmap from a .png image file with a single dimension greater than 65,535 pixels."

If you really want to know, continue searching, or perform some experiments.
I would suggest trying string lengths of 32700, 32800, 65500 and 65600.

Smile | :)


Luc Pattyn

GeneralRe: GDI+ A generic error occurred Pin
ben23-Jan-07 12:28
ben23-Jan-07 12:28 
Questionmanaged c++ from c# Pin
picazo3-Jan-07 8:31
picazo3-Jan-07 8:31 
AnswerRe: managed c++ from c# Pin
Christian Graus3-Jan-07 8:45
protectorChristian Graus3-Jan-07 8:45 
GeneralRe: managed c++ from c# Pin
picazo3-Jan-07 8:53
picazo3-Jan-07 8:53 
GeneralRe: managed c++ from c# Pin
Christian Graus3-Jan-07 9:05
protectorChristian Graus3-Jan-07 9:05 
QuestionConnection between 2 pcs via modem with C# Pin
dsovino3-Jan-07 8:17
dsovino3-Jan-07 8:17 
QuestionBest way to print from RichTextBox & WebBrowser Pin
TrooperIronMan3-Jan-07 7:50
TrooperIronMan3-Jan-07 7:50 
AnswerRe: Best way to print from RichTextBox & WebBrowser Pin
TrooperIronMan3-Jan-07 8:47
TrooperIronMan3-Jan-07 8:47 
GeneralRe: Best way to print from RichTextBox & WebBrowser Pin
TrooperIronMan4-Jan-07 2:47
TrooperIronMan4-Jan-07 2:47 
QuestionHow to extract links from webbrowser component Pin
oren20103-Jan-07 7:04
oren20103-Jan-07 7:04 
AnswerRe: How to extract links from webbrowser component Pin
Judah Gabriel Himango3-Jan-07 7:27
sponsorJudah Gabriel Himango3-Jan-07 7:27 
AnswerRe: How to extract links from webbrowser component Pin
Bassam Saoud3-Jan-07 7:53
Bassam Saoud3-Jan-07 7:53 
AnswerRe: How to extract links from webbrowser component Pin
oren20105-Jan-07 17:25
oren20105-Jan-07 17:25 
QuestionHow to cancel any keyboard stroke? Pin
Hussam Fattahi3-Jan-07 6:16
Hussam Fattahi3-Jan-07 6:16 
AnswerRe: How to cancel any keyboard stroke? Pin
Judah Gabriel Himango3-Jan-07 6:24
sponsorJudah Gabriel Himango3-Jan-07 6:24 
GeneralRe: How to cancel any keyboard stroke? Pin
PIEBALDconsult3-Jan-07 6:42
mvePIEBALDconsult3-Jan-07 6:42 
GeneralRe: How to cancel any keyboard stroke? Pin
Judah Gabriel Himango3-Jan-07 7:24
sponsorJudah Gabriel Himango3-Jan-07 7:24 

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.