Click here to Skip to main content
15,901,122 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralSTL Deque problem...again ! Pin
mmagnani7127-Jun-05 23:27
mmagnani7127-Jun-05 23:27 
GeneralRe: STL Deque problem...again ! Pin
Stuart Dootson28-Jun-05 21:36
professionalStuart Dootson28-Jun-05 21:36 
GeneralRe: STL Deque problem...again ! Pin
mmagnani7128-Jun-05 22:54
mmagnani7128-Jun-05 22:54 
GeneralProblems with toolbar when using TBSTYLE_EX_MIXEDBUTTONS Pin
retro_coder27-Jun-05 21:43
retro_coder27-Jun-05 21:43 
GeneralSTL Notation Pin
Jack Puppy27-Jun-05 17:20
Jack Puppy27-Jun-05 17:20 
GeneralRe: STL Notation Pin
Christian Graus27-Jun-05 18:17
protectorChristian Graus27-Jun-05 18:17 
GeneralRe: STL Notation Pin
Douglas Troy1-Jul-05 7:01
Douglas Troy1-Jul-05 7:01 
Questiondoes BHO have max memory limit? Pin
petevam26-Jun-05 23:11
petevam26-Jun-05 23:11 
Sorry -I posted this to C++ forum but it may be more appropriate here. Smile | :)

Hi,

I've trying to create a browser helper object (BHO) for explorer. I've got a main "manager" class that initializes two objects. Each of these uses an simple XML parser (using MSXML). Now, when parsing XML files, I want to store the results to a struct array (not a class). The struct array is in turn comprised of a few other struct arrays. All mem allocation is static, only the topmost parent struct array is dynamically allocated. That's where the problem is: When I allocate (using new) the struct arr in the first object, its ok. Then when I init the second obj, the new fails and crushes the explorer. I did a simple test in the second obj:

int *i = new int[x];

when x is <255 it's ok. if x>=255 then it crashes (and of course, my struct arr is bigger than 255*sizeof(int) bytes). I don't think I have any serious mem leaks in the code before this.

Has anyone seen this before? Is there a memory limit imposed by explorer (unlikely as it sounds)? I would appreciate any comments.

Thanks,
Pete
AnswerRe: does BHO have max memory limit? Pin
Douglas Troy27-Jun-05 4:47
Douglas Troy27-Jun-05 4:47 
GeneralRe: does BHO have max memory limit? Pin
petevam27-Jun-05 6:20
petevam27-Jun-05 6:20 
GeneralDS_FIXEDSYS in WTL project VS2005 Pin
vassilux@26-Jun-05 4:18
vassilux@26-Jun-05 4:18 
GeneralRe: DS_FIXEDSYS in WTL project VS2005 Pin
toxcct26-Jun-05 5:19
toxcct26-Jun-05 5:19 
GeneralRe: DS_FIXEDSYS in WTL project VS2005 Pin
Jörgen Sigvardsson26-Jun-05 5:59
Jörgen Sigvardsson26-Jun-05 5:59 
GeneralRe: DS_FIXEDSYS in WTL project VS2005 Pin
vassilux@26-Jun-05 9:03
vassilux@26-Jun-05 9:03 
Generalstoring of struct in vector Pin
itkid23-Jun-05 19:55
itkid23-Jun-05 19:55 
GeneralRe: storing of struct in vector Pin
toxcct24-Jun-05 0:35
toxcct24-Jun-05 0:35 
GeneralRe: storing of struct in vector Pin
Nathan Addy26-Jun-05 6:03
Nathan Addy26-Jun-05 6:03 
GeneralGDI+, SetWorldTransform and transformation of objects Pin
flamy23-Jun-05 17:57
flamy23-Jun-05 17:57 
GeneralUsing templates for selecting overloaded functions Pin
ComplexLifeForm23-Jun-05 3:10
ComplexLifeForm23-Jun-05 3:10 
GeneralRe: Using templates for selecting overloaded functions Pin
Joaquín M López Muñoz23-Jun-05 11:37
Joaquín M López Muñoz23-Jun-05 11:37 
GeneralAutomatically scroll a view when using drag and drop Pin
retro_coder22-Jun-05 23:34
retro_coder22-Jun-05 23:34 
GeneralSink Event Problem- Please Help Pin
Raj72321-Jun-05 17:07
Raj72321-Jun-05 17:07 
QuestionA combined Tree View and List View control? Pin
retro_coder20-Jun-05 20:45
retro_coder20-Jun-05 20:45 
AnswerRe: A combined Tree View and List View control? Pin
Jörgen Sigvardsson25-Jun-05 13:50
Jörgen Sigvardsson25-Jun-05 13:50 
QuestionShould COM+ interface be dispatchable ? Pin
duckponf20-Jun-05 14:07
duckponf20-Jun-05 14:07 

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.