Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2005, 10:37 AM
Junior Member
 
Join Date: Aug 2005
Posts: 1
Default DLL call to functions with no args crashes

DLL call to functions with no args crashes.
Below is an example:

// script GetDoubleClickTime
var ret = Dll.registerFunction("user32.dll", "GetDoubleClickTime", "GetDoubleClickTime", "stdcall", "ulong");
trace("Dll.registerFunction(GetDoubleClickTime)=" + ret);

var dblclktime = GetDoubleClickTime();
trace("dblclktime=" + dblclktime);
// end of script


In preview, this will cause an exception as below:
--- from here ---
Microsoft Visual C++ Debug Library
Debug Error!

Program: ...1\LOCALS~1\Temp\{C0F0FE9F-...}\\pp.exe
Module: ...1\LOCALS~1\Temp\{C0F0FE9F-...}\\pp.exe
File:

Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

(Press Retry to debug the application)
--- to here ---


If I choose 'Ignore', then the call itself seems to be done normally.
The trace output is as below:
--- from here ---
FSCommand("FFish_Run", "Initialize")

FSCommand("ffish_run", "GetDoubleClickTime")
Dll.registerFunction(GetDoubleClickTime)=true
dblclktime=300
--- to here ---


My machine environment:
Windows XP SP2
Flash MX Professional 2004 Version 7.2
Visual C++ 6.0 is inslalled.
Reply With Quote
  #2 (permalink)  
Old 08-26-2005, 04:35 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:DLL call to functions with no args crashes

Thank you. We will fix it in the new version. We are working hard on the new version, it will support structures, so it will have the ability to call more dll functions.
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 01:44 PM.


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.