Windows 98 Problem |
Post Reply |
Author | |
Krenshau
Groupie Joined: 15 October 2005 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: 03 September 2006 at 2:43am |
I am using the office 2007 skin on my VB6 application. I have been testing it on some operating systems, and I am having quite a bit of problems on Windows 98. I can get the application to start, but it gives me an out of memory error 7 and my error handling shows me that it comes from the form load event on the lines where the skin is applied to the forms. I passed by the error to see if anything else would happen, and it seemed to work ok. When I went to resize the form though, explorer crashed. Then, when I shut down the program I got another error, see below.
PEP2006 caused an invalid page fault in module CODEJOCK.SKINFRAMEWORK.V10.2.OCX at 0167:02978017. Registers: EAX=008ae830 CS=0167 EIP=02978017 EFLGS=00010202 EBX=02984770 SS=016f ESP=008ae818 EBP=000006bc ECX=008ae848 DS=016f ESI=00000000 FS=130f EDX=008ae844 ES=016f EDI=00000046 GS=0000 Bytes at CS:EIP: 8b 46 40 52 57 53 50 e8 cc fl ff ff 8b c8 e8 Stack dump: 008ea848 008ea830 00000000 008ae9ac 008ae84c 660cc25a 00000000 bfc03773 02984770 000006bc 00000046 00000000 008aebba 008ae868 bfc03757 02984770
PEP2006 is the name of my program.
I am not sure how to resolve this. I am using windows 98 on a virtual PC, so I am not sure if that makes a difference.
Any help with this would be great.
EDIT: I also should add that my program is actually two programs together. The first one that runs is the registration tool, and it has the same skin, but I don't get any error. The only real difference I can see is that the registration tool only has one form, and the main program has several. I can see how that could use more memory, but I wouldn't think it would cause a crash.
Again, thank you for your help.
Ben
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Is it possible to try this on a real 98 machine? I have seen
Win98 and NT crash on Virtual PC. Try to allow at least 512 of
memory to the VM.
|
|
Krenshau
Groupie Joined: 15 October 2005 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
|
I will see if I can find one. Thank you for your help.
|
|
Krenshau
Groupie Joined: 15 October 2005 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
|
I got the skin to work now, without the error. However, now I get the error when I hide form, or close the program.
I am following the examples, but there is a bit of extra stuff, and it is a little hard for me to follow what goes to what.
Here is the code I use, and this is the only code I use that is for the skins.
Am I missing anything? Also, should I be using more than xtpSkinApplyMetrics? There are two other options, do I need to use all three?
Thank you for your help.
|
|
Krenshau
Groupie Joined: 15 October 2005 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Just an update. I moved the applywindow and applyoptions lines to their respective forms, and still get the error. I only get it on Windows 98, though I haven't tested on 2000 and ME. I do not get the error on XP.
Also, these are actual machines, not virtual PC.
Thank you for your help.
Ben
|
|
Krenshau
Groupie Joined: 15 October 2005 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
|
If I comment out the lines of code, but leave the control on the form, I get no errors at all.
Can someone tell me if my code is correct?
Thank you.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Why not just:
SkinFramework.LoadSkin App.Path & "\Styles\Office2007.cjstyles", "NormalBlue.ini" SkinFramework.ApplyWindow Me.hWnd SkinFramework.ApplyOptions = SkinFramework.ApplyOptions Or xtpSkinApplyMetrics It will auto apply to all windows opened. |
|
Krenshau
Groupie Joined: 15 October 2005 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
|
I did that originally, but it didn't apply to all windows. In fact, I even posted here in the forums about it not applying to all windows, then I discovered that I could use the applywindow to get it to work on all of my forms. I apply the skins at the form load event. My main form loads first, then the rest. If I make too many calls, could that cause that error? Would it be better to load all the other forms first, then load the main form calling the applywindow in the form load event? Thank you for your help. |
|
Krenshau
Groupie Joined: 15 October 2005 Location: United States Status: Offline Points: 49 |
Post Options
Thanks(0)
|
I tried what you suggested again, and it didn't skin all of the controls. I put all of the applywindow's in the main form and used only one applyoptions. It now loads with no error given; however, after opening and closing forms for 1-3 minutes it throws an illegal page fault in codejock.skinframework.v10.2.ocx. Then, when I close the program it throws about three more page fault errors.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |