15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


GP in USER.EXE (IE)

Benoit Martin -- ehlija@vircom.com
Monday, February 10, 1997

Environment: Win95, VC++4.2b, MFC

Here's my very big problem.  I get a GP in IE when viewing my OCX.  This GP
only happens when I'm fiddling with Objects in it (new/delete).  I have a
CToolBar pointer object.  This class object also contains 4 other objects
(which are not pointers, CCOmboBox, CSTatic..).  

Now, when resizing my OCX, I want to resize the Toolbar, but the only way I
could find to do this was to delete the Toolbar, and create another one,
since different sizes means different bitmaps for buttons.  But, when my
computer is on a "High load" of programs, doing this routine (changing size)
crashes IE in USER.EXE (out of system resources?).  So, I guess there is a
memory problem somewhere, but, since it's not crashing in my program, I find
it hard to find the source of it.  Could there be a problem with multiple
"new/delete" in IE?  

Anybody ever encountered this problem?  

I can think of 2 choices right now to work around this:
- Create my toolbar only once, and find a way to load different bitmaps in it.
- Create/delete my toolbar, but create the 4 child objects inside it only
once, so as to limit the amount of memory used/destroyed...

Just want to share my problems with all of you! ;)

Btw, I still didn't try to port my code to 4.1.  Thks for the tips though.

-----------
Here's the GP info:

IEXPLORE caused a general protection fault
in module USER.EXE at 0004:00001d43.
Registers:
EAX=7e770052 CS=176f EIP=00001d43 EFLGS=00000202
EBX=16af0052 SS=5eb7 ESP=0000840a EBP=0063841c
ECX=0000b734 DS=168f ESI=0003b734 FS=0000
EDX=815f0000 ES=0000 EDI=00000000 GS=0000
Bytes at CS:EIP:
26 83 3f 00 74 0d 26 8b 07 05 06 00 8b d8 8c 5e 
Stack dump:
00000000 6ca40000 021cb734 6ca4815f 84680000 00001a8e 00000000 00000000
00007e77 00000000 04090000 00000000 00003650 0000844a 844a0000 168f5eb7 

Ben




Mike Blaszczak -- mikeblas@nwlink.com
Tuesday, February 11, 1997

At 16:46 2/10/97 -0500, Benoit Martin wrote:
>Environment: Win95, VC++4.2b, MFC

>Here's the GP info:
>
>IEXPLORE caused a general protection fault
>in module USER.EXE at 0004:00001d43.

This looks like it's a problem in IE, not in your control or in MFC.  That's
a completely blind guess, though, because you've not provided enough
information
about the problem you're having:

  - Which version of IE are you using?  3.0?  3.01?  2.0?
  - What is the stack trace you see when the exception happens?


.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
           This performance was not lip-synched.




Become an MFC-L member | Вернуться в корень Архива |