FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FiveWin caused an access violation in Bemafi32.dll
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM

FiveWin caused an access violation in Bemafi32.dll

Posted: 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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FiveWin caused an access violation in Bemafi32.dll

Posted: 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 (fw): Select all Collapse
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

Continue the discussion