Page 1 of 1 1
Topic Options
#104905 - 2003-09-21 03:01 AM TypeLibrary Viewer problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
dunno how many of you kids use this but...
if you stevie read this.

clicking browse after initial browse does not result in browse&show but it only shows the old cached info.
thus, if you register a dll again, you need to exit from the app and startup again.
for one time this is not so bad but been doing this for some days now and... you know, getting tired of clicking the mouse.

[ 21. September 2003, 04:04: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#104906 - 2003-09-21 03:03 AM Re: TypeLibrary Viewer problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, also if I read some info with it, the dll/exe will be locked down.
are you writing something to it or why it needs to be locked?
_________________________
!

download KiXnet

Top
#104907 - 2003-09-22 03:23 PM Re: TypeLibrary Viewer problem
Stevie Offline
Starting to like KiXtart
*****

Registered: 2002-01-09
Posts: 199
Wha's up?

quote:
clicking browse after initial browse does not result in browse&show but it only shows the old cached info.

IIRC, I thought that caching the information would be the best way to go so. I can add a refresh button to the browse list, that sounds better than refreshing each time the browse list is displayed.
quote:
oh, also if I read some info with it, the dll/exe will be locked down.
are you writing something to it or why it needs to be locked?

It is locked since the file is open and being actively read. Each time you select something from either column, new information needs to be read in from the type library. If it's a real problem, there are 2 solutions:

1 - Connect, read the typelib info and then disconnect for each call

2 - Parse all the typelib information from the beginning so that the file is not reopened/locked again.
_________________________
Stevie

Top
#104908 - 2003-09-22 03:52 PM Re: TypeLibrary Viewer problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I think it would be best that once a typelib is selected for view, the whole lib is ripped to cache and the file is released.

anyway, that refresh sounds really good!
_________________________
!

download KiXnet

Top
#104909 - 2003-09-22 04:08 PM Re: TypeLibrary Viewer problem
Stevie Offline
Starting to like KiXtart
*****

Registered: 2002-01-09
Posts: 199
The only problem with that is that it could introduce a significant delay before opening. I'll have to run some tests and see what kind of delay we're talking about.
_________________________
Stevie

Top
#104910 - 2003-09-24 04:08 PM Re: TypeLibrary Viewer problem
Stevie Offline
Starting to like KiXtart
*****

Registered: 2002-01-09
Posts: 199
Just reviewed the code and it is retrieving the list fresh each time the browse dialog is displayed.

Register works as expected...unregister does not. Try to reproduce my results:

-Launch the app
-Open browse window
-Close browse window (keep app open)
-Register your favorite dll
-Open browse window (the entry should now be there)
-Close browse window
-Unregister the dll
-Open browse window (entry will still be there)

Don't know why this is. I'll keep checking. I'll bet you a million dollars it's my problem.
_________________________
Stevie

Top
#104911 - 2003-09-25 12:59 AM Re: TypeLibrary Viewer problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yep.

and, I don't bet [Big Grin]
at least with such amount...
at least with current income.
at least at this moment.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.06 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org