FiveWin caused an access violation in Bemafi32.dll

FiveWin caused an access violation in Bemafi32.dll

Postby sambomb » Fri Feb 05, 2010 12:00 pm

---------------------------
Erro do aplicativo
---------------------------
FiveWin caused an access violation in Bemafi32.dll in 0x1008d75a.

Click 'Close' to terminate the application
Click 'Ignore' to continue. You should save your work in a new file.
---------------------------
'Close' 'Ignore'
---------------------------

Someone knows how to solve it?

There is the declaration of the function that cause the error.

DLL32 function B_VERGEREN( @nBuffer AS _PTR );
AS _INT PASCAL FROM "Bematech_FI_StatusEstendidoMFD";
LIB nLib32

Ps.: When I use Clipper (16 bits) + Fivewin I got this error, but in my system in xHarbour + Fivewin I don't
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
User avatar
sambomb
 
Posts: 388
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: FiveWin caused an access violation in Bemafi32.dll

Postby Antonio Linares » Wed Feb 10, 2010 11:04 am

Samir,

When you call a 32 bits DLL from a 16 bits EXE, as you are suplying a pointer, you have to convert the pointer from 16 bits to 32 bits. Try it this way:
Code: Select all  Expand view

local nBuffer := ...
local nBuffer32 := GETVDMP32( nBuffer )
 
B_VERGEREN( @nBuffer32 )
 

Here you have another example about how to use GetVDMP32():
viewtopic.php?p=25990&sid=e870758e4cea93b828eacef59b36684f#p25990
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests