Click here to Skip to main content
15,905,316 members
Home / Discussions / C#
   

C#

 
Questionstack heap confusion Pin
swjam3-Jan-07 12:58
swjam3-Jan-07 12:58 
AnswerRe: stack heap confusion Pin
Colin Angus Mackay3-Jan-07 13:02
Colin Angus Mackay3-Jan-07 13:02 
QuestionExplicit interface implementation Pin
Captain See Sharp3-Jan-07 11:23
Captain See Sharp3-Jan-07 11:23 
AnswerRe: Explicit interface implementation Pin
ben23-Jan-07 11:29
ben23-Jan-07 11:29 
AnswerRe: Explicit interface implementation Pin
Daniel Grunwald3-Jan-07 11:40
Daniel Grunwald3-Jan-07 11:40 
GeneralRe: Explicit interface implementation Pin
Captain See Sharp3-Jan-07 13:14
Captain See Sharp3-Jan-07 13:14 
QuestionOleDbData Adapter.Update Command Error Pin
yesufollower3-Jan-07 10:48
yesufollower3-Jan-07 10:48 
AnswerRe: OleDbData Adapter.Update Command Error Pin
ben23-Jan-07 10:51
ben23-Jan-07 10:51 
GeneralRe: OleDbData Adapter.Update Command Error Pin
yesufollower3-Jan-07 10:57
yesufollower3-Jan-07 10:57 
GeneralRe: OleDbData Adapter.Update Command Error Pin
ben23-Jan-07 10:59
ben23-Jan-07 10:59 
GeneralRe: OleDbData Adapter.Update Command Error Pin
yesufollower3-Jan-07 11:37
yesufollower3-Jan-07 11:37 
GeneralRe: OleDbData Adapter.Update Command Error Pin
ben23-Jan-07 11:42
ben23-Jan-07 11:42 
GeneralRe: OleDbData Adapter.Update Command Error Pin
yesufollower3-Jan-07 11:56
yesufollower3-Jan-07 11:56 
GeneralRe: OleDbData Adapter.Update Command Error Pin
ben23-Jan-07 11:58
ben23-Jan-07 11:58 
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 

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.