Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2008, 01:09 PM
Junior Member
 
Join Date: Jun 2008
Posts: 6
Default swfkit 3.4 crash

Hello,

I'm using an embbeded activeX control for pdf viewing and digitally signing the pdf's. Unfortunately, the application crashes when using them.

I cannot create one single control on the Initialize script and use it across the other scripts or the application will crash.

Can you tell what are the best practices for using activeX controls with swfkit.

Does a problem with a control make the player crash?



I'm using

var smartcard = createControl("SiSmart2XControl1.SiSmart2X",0,0,0, 0)
// some smartcard params here

var fileName = FlashPlayer.getVariable("_root.fileToVerify_str");

var temp_outFileName="c:\\temp\\alert_pkcs_extract.pdf ";

var bool = smartcard.activex.VerificaFileP (fileName, temp_outFileName);


FlashPlayer.setVariable("_root.fileVerified_str", bool+"" );


var f = new File(temp_outFileName)

bool = ""+f.remove()

var f1= new File(outFileName)

f1.remove();



delete smartcard;
smartcard=null;



I have several of these scripts creating and deleting the same control.

Thank you.
Reply With Quote
  #2 (permalink)  
Old 06-26-2008, 02:34 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: swfkit 3.4 crash

Where can we download the SiSmart2XControl so that we can have a test? Thank you.
Reply With Quote
  #3 (permalink)  
Old 06-27-2008, 08:23 AM
Junior Member
 
Join Date: Jun 2008
Posts: 6
Default Re: swfkit 3.4 crash

It's not available for download, at least I don't think it is. It's a smartcard reader so it's pretty useless without the hardware.

I've been doing some more tests and the crash now happens invariably when I close the application. Sometimes the error c++ assertion failed appears.


Microsoft Visual C++ Debug Library

Debug Assertion Failed

Program:

...Data\Local\Temp\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\pp.exe

File: cmdTarg.cpp

Line 48




This happens if both of the following happen:

I use the smartcard reader.

I close the application.


It doesn't need to be at the same time, I can use the smartcard reader and close the application 30 sec after and it will crash.

I call the control several times without any problem, creating the control and then deleting it (delete smartcard; smartcard=null)

I know it's hard without the control but maybe you have a suggestion?

this is the smartcard provider http://www.solinfo.it/

I didn't find anything, but I'm not italian either :P

Thank you
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:15 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.