Welcome! Log In Create A New Profile

Advanced

[WD25] Error in 64 bit .exe

Posted by Mujahid 
[WD25] Error in 64 bit .exe
August 04, 2020 09:23AM
Hi All,

I have error when run 64 bit .exe like this :

Module : wd250vm64.dll
Version du module : 25.0.480.3
VI : 01A250089f
Adresse de base : 00007FF9282E0000
Erreur systeme : Access violation (GPF)
RIP = 00007FF92845475C
OS : Windows 8 x64 (6.2.9200)

Call stack:
Global procedure SizePhysicalMemory (SystemInfo.SizePhysicalMemory), line 23
Global procedure gp_LicenseCheck (gpCalculation.gp_LicenseCheck), line 59
Initializing SALAM SYSTEM (), line 125

Date: 04/08/2020 15:16:00
Project: SALAM SYSTEM (1.0.3.0)

Additional information:
Error code: 1020
Module: 'wd250vm64.dll (01A250089f - 25.0.480.3)
Debugging information:

Details techniques :

Module : wd250vm64.dll
Version du module : 25.0.480.3
VI : 01A250089f
Adresse de base : 00007FF9282E0000
Erreur systeme : Access violation (GPF)
RIP = 00007FF92845475C
OS : Windows 8 x64 (6.2.9200)
Registres :

RIP = 00007FF92845475C RBP = 2
RAX = 21E48645C90 RBX = 21E4BC699F0
RCX = 243938000 RDX = 21E4BC69CD0
RSI = 7FF9286B6A00 RDI = 21E4BC699F0
R8 = 21E4BC699F0 R9 = 21E4BC69F10
R10 = 8000 R11 = FB374FCE60
R12 = 21E47BF00F0 R13 = 21E4BC6A5C0
R14 = 21E48645F58 R15 = 0

Pile des appels :

[wd250vm64.dll (00007FF9282E0000), 25.0.480.3, 01A250089f] 00007FF92840AEC0 : EXT_bSetVariableCollection() + 301212 bytes
Pile invalide

EIT_TYPE_WDFILE : <7>
EIT_IDCODE : <458752>




What is this mean?

Thanks.

Regards,
Mujahid
Re: [WD25] Error in 64 bit .exe
August 04, 2020 09:44AM
Hi, it's the virtual machine wd250vm.dll for running WD-programs. Seems, that there is not enough memory available in procedure gp_LicenseCheck ...

Kind regards,
Guenter Predl
office@windev.at
Re: [WD25] Error in 64 bit .exe
August 04, 2020 11:53AM
Hi Guenter,

It solved.

For 32 bit is use 4-byte int.

For 64 bit should use 8-byte int

<COMPILE IF Configuration <> "Windows64Application">
MEMORYSTATUS64 is composed of
dwLength is 8-byte int
dwMemoryLoad is 8-byte int
dwTotalPhys is 8-byte int
dwAvailPhys is 8-byte int
dwTotalPageFile is 8-byte int
dwAvailPageFile is 8-byte int
dwTotalVirtual is 8-byte int
dwAvailVirtual is 8-byte int
END

MEMORYSTATUS64.dwLength = Dimension(MEMORYSTATUS64)

API(“kernel32”,“GlobalMemoryStatus”,&MEMORYSTATUS64)
//
RESULT MEMORYSTATUS64.dwTotalPhys

<END>


Thanks.

Regards.
Mujahid
tbh
Re: [WD25] Error in 64 bit .exe
August 04, 2020 10:37PM
Hi,

If you use System int it will be 4 or 8 byte depending on 32/64.

Cheers
Tor-Bjarne
Re: [WD25] Error in 64 bit .exe
August 05, 2020 09:04AM
Hi All,

I have some other problem when run on 64bit .exe.

This is the coding :

sProcessor is string
DwNbProcessor is string
sProcessorInfo is string

SYSTEM_INFO is composed of
wProcessorArchitecture is 2-byte int
wReserved is 2-byte int
dwPageSize is 4-byte int
lpMinimumApplicationAddress is 4-byte int
lpMaximumApplicationAddress is 4-byte int
dwActiveProcessorMask is 4-byte int
dwNumberOfProcessors is 4-byte int
dwProcessorType is 4-byte int
dwAllocationGranularity is 4-byte int
wProcessorLevel is 2-byte int
wProcessorRevision is 2-byte int
END


// Ask the system for information
API(“kernel32”,“GetSystemInfo”,&SYSTEM_INFO)

Trace(SYSTEM_INFO.wProcessorArchitecture)

// Retrieve the architecture
SWITCH SYSTEM_INFO.wProcessorArchitecture
CASE 0
// #define PROCESSOR_ARCHITECTURE_INTEL 0
sProcessor = “Intel”
OTHER CASE
// #define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
sProcessor = "Unknown"
END

// Define the sub-information and build the string
nModel is int on 1 byte = SYSTEM_INFO.wProcessorRevision/256
nRevision is 1-byte int = modulo(SYSTEM_INFO.wProcessorRevision,256)
sProcessorInfo = "Level: "+SYSTEM_INFO.wProcessorLevel+" Model: "+nModel+“ Revision: ”+nRevision



And the result will be :
Processor = Intel
Number Of Processor = 8
Processor Info = Level: 6 Model: -113 Revision: 10



Using the same code and run on 64bit .exe the result will be like this :
Processor = Unknown
Number Of Processor = 32767
Processor Info = Level: 8 Model: 0 Revision: 0


How to improve this coding in 64bit .exe?

Thanks a lot.

Regards,
Mujahid
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: