Page 1 of 1

Assistant 3.23: EResNotFound BULBGLYPHS256

PostPosted: December 2nd, 2003, 5:12 pm
by softwarea
Hi,

I get an EResNotFound exception while running my application.

constructor THintBulb.Create(AOwner: TComponent);
var
TmpBmp: TBitmap;
begin
inherited Create(AOwner);
Glyphs := TBitmap.Create;
Glyphs.LoadFromResourceName(hInstance, 'BULBGLYPHS256');
--> SetBounds(0, 0, Glyphs.Width div 4, Glyphs.Height);
TmpBmp := TBitmap.Create;
try

The error occurs in the --> so marked row above of unit oaStage.

I'm using Delphi 7, Office Assistent 3.23 and Win98(!)
The last one may be the real reason, because the error does not(!) occur on Win2000 or XP. But unfortunately Win98 is my target platform.

I hope anyone has a good idea :-)

Thanks
Ingmar

PostPosted: December 2nd, 2003, 7:25 pm
by Kambiz
I think the oaStage.res file is either missing or corrupted.

PostPosted: December 2nd, 2003, 7:33 pm
by softwarea
No no, the same application is running on Win2000 and Win XP.
So, the oaStage.res is existent!
And: I can open it without problems in Delphis PictureEditor.

As an alternative I saved the resource as bitmap and used
Glyphs.LoadFromFile('.... instead of Glyphs.LoadFromResourceName(...

This seems to work, but I get system crahes later on in the application (but these may be due to other reasons).

So, I have a workaraound, but I'm still interested, why this is not working properly under Win98...?

PostPosted: December 3rd, 2003, 6:00 pm
by Kambiz
Today I tested the last version of the Office Assistant package on Windows 98.

Apparently there is no problem regarding to the glyph resource. However, I found a serious problem (system crash) on showing the modal balloons. :(

PostPosted: December 3rd, 2003, 8:08 pm
by Kambiz
I fixed the issue regarding to the modal balloons and the new release is available to download.

Now, the demo application works on Windows 98 with no problem.

PostPosted: December 4th, 2003, 7:51 pm
by softwarea
Hello Kambiz,

yes, this looks much better. I still have the EResNotFound Error, but with my workaround (LoadFromFile) it seems, as if my application is stable even under Win98.

Thank you very much for testing and debugging again!!!!!!

Ingmar