Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 27th, 2008, 06:44 AM
hartstein hartstein is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
hartstein is an unknown quantity at this point
Default tooltips and memory leaks

Hello, my company recently purchased the Active-x SDK. We originally prototyped it with the older 1.2 version.
I have observed 2 items with the new version

There appears to be a large memory leak (about 64K) each time the active-x control is used. The following vb6 program demonstrates the problem.

Private Sub Form_Load()
For i = 1 To 1000
Set ctl = Controls.Add("Foxit.FoxitReaderSDKctrl.2", "SDK", Form1)
ctl.Move 1, 1, Form1.Width, Form1.Height
ctl.OpenFile "c:\trash\t.pdf", ""
ctl.Visible = True
Controls.Remove ctl
Set ctl = Nothing
MsgBox "pause"
Next
End Sub

2) The tooltip text has appeared to disappear from the controls. I don't even see these strings in the resource file for the active-x control as all.
Attached Images
File Type: jpg stringtable.jpg (26.7 KB, 12 views)
Reply With Quote
  #2  
Old March 30th, 2008, 11:05 PM
jinming_wang jinming_wang is offline
Junior Member
 
Join Date: Sep 2007
Posts: 40
jinming_wang is an unknown quantity at this point
Default

You should call function CloseFile after calling OpenFile. in this way ,you may reduce the size of memory leak.However there do exist the memory leak when ActiveX open a PDF document. About the tooltip text, it should be a bug of ActiveX 2.0.
Reply With Quote
  #3  
Old September 24th, 2008, 11:12 PM
AmyLin AmyLin is offline
Moderator
 
Join Date: Feb 2007
Posts: 89
AmyLin is an unknown quantity at this point
Default

This issue have been fixed in ActiveX 2.3
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.