PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Random Access violation with [...] button
Random Access violation with [...] button
Iniciado por fortune.andrea, 08,sep. 2017 13:04 - 5 respuestas
Publicado el 08,septiembre 2017 - 13:04
Hello All,
I'm trying WINDEV 21 Express. I created an application and give the demo to my customer. If the customer want to buy the application I'll buy WINDEV 22.

My customer reported me a random error.
In this application I open some files clicking in [...] icon with this code:

Btn_SelF1
path_select(EDT_File1)






There are 14 copies of this button (Btn_SelF1-Btn_SelF14 and EDT_File1-EDT_File14).

Sometimes when you click on the first [...] button the application crashs:
Error in process Click Btn_SelF1.
Unexpected system error.
If this error systematically occurs in the same conditions, contact PC SOFT Hot Line and specify:
 - the error circumstances,
 - a window, a project or the code lines used to replicate the problem,
 - the details below.

Details techniques :

Module : wd210vm.dll
Version du module : 21.0.320.0 EXPRESS
VI : 05A210066j
Adresse de base : 25E60000
Erreur systeme : Access violation (GPF)
EIP = 25F55949
OS : Windows 7 Service Pack 1(6.1.7601)

----- Technical Information -----

Project : EXPRESS_XLS

WL call:
Process of 'Click Btn_SelF1' (EXPRESS_WIN_XLSFunction_F.Btn_SelF1), thread 0

What happened?
Unexpected system error.
If this error systematically occurs in the same conditions, contact PC SOFT Hot Line and specify:
 - the error circumstances,
 - a window, a project or the code lines used to replicate the problem,
 - the details below.

Details techniques :

Module : wd210vm.dll
Version du module : 21.0.320.0 EXPRESS
VI : 05A210066j
Adresse de base : 25E60000
Erreur systeme : Access violation (GPF)
EIP = 25F55949
OS : Windows 7 Service Pack 1(6.1.7601)

Error code: 1020
Level: fatal error

Dump of the error of 'wd210vm.dll' module (21.0.320.0 EXPRESS).
Identifier of detailed information (.err): 1020
Debugging information:

Details techniques :

Module : wd210vm.dll
Version du module : 21.0.320.0 EXPRESS
VI : 05A210066j
Adresse de base : 25E60000
Erreur systeme : Access violation (GPF)
EIP = 25F55949
OS : Windows 7 Service Pack 1(6.1.7601)
Registres :

  EIP = 25F55949    EBP = 00000489
  EAX = 00000002    EBX = 00000000
  ECX = 00040000    EDX = 0497D104
  ESI = 00040000    EDI = 0018E108

Pile des appels :

[wd210vm.dll (25E60000), 21.0.320.0 EXPRESS, 05A210066j] 25EE9360 : EXT_bSetVariableCollection() + 443881 bytes
Pile invalide

Additional Information:
EIT_PILEWL :
Click Btn_SelF1 (EXPRESS_WIN_XLSFunction_F.Btn_SelF1)
EIT_DATEHEURE : 08/09/2017 11:30:52
EIT_TYPE_WDFILE : <2>
EIT_IDCODE : <18>

Help


When this problem appears you have to restart the application, if you click on first button again it crashs again, but if you click on another button then you can click on first button without crashs. Not always it crashs clicking on the first button.

I searched if Btn_SelF1 or EDT_File1 are mentioned in different ways of other buttons (but not, all 14 buttons are equals).
I supposed the problem is the name EDT_File1 is similar to EDT_File10 EDT_File11 EDT_File12... but this is nonsense...

Please help me because I really don't know what I have to do... on my PC seems to not crash never...
Publicado el 08,septiembre 2017 - 14:30
Hi Andrea,

What is the code of your function path_select?
Did you try on your machine to do a DOUBLE-click on the button (it is
often the problem with customers, they double click instead of single
click)?
If that DOES create the problem, you can use an option available in the
button settings to prevent that (or just gray everything as the first
line of your button)

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 9/8/2017 à 5:04 AM, Andrea Fortune a écrit :
Hello All,
I'm trying WINDEV 21 Express. I created an application and give the demo
to my customer. If the customer want to buy the application I'll buy
WINDEV 22.
My customer reported me a random error.
In this application I open some files clicking in [...] icon with this
code:

Btn_SelF1
path_select(EDT_File1)







There are 14 copies of this button (Btn_SelF1-Btn_SelF14   and
EDT_File1-EDT_File14).

Sometimes when you click on the first [...] button the application crashs:
Error in process Click Btn_SelF1.
Unexpected system error.
If this error systematically occurs in the same conditions, contact PC
SOFT Hot Line and specify:
- the error circumstances,
- a window, a project or the code lines used to replicate the problem,
- the details below.

Details techniques :

Module : wd210vm.dll
Version du module : 21.0.320.0 EXPRESS
VI : 05A210066j
Adresse de base : 25E60000
Erreur systeme : Access violation (GPF)
EIP = 25F55949
OS : Windows 7 Service Pack 1(6.1.7601)

----- Technical Information -----

Project : EXPRESS_XLS

WL call:
Process of 'Click Btn_SelF1' (EXPRESS_WIN_XLSFunction_F.Btn_SelF1),
thread 0

What happened?
Unexpected system error.
If this error systematically occurs in the same conditions, contact PC
SOFT Hot Line and specify:
- the error circumstances,
- a window, a project or the code lines used to replicate the problem,
- the details below.

Details techniques :

Module : wd210vm.dll
Version du module : 21.0.320.0 EXPRESS
VI : 05A210066j
Adresse de base : 25E60000
Erreur systeme : Access violation (GPF)
EIP = 25F55949
OS : Windows 7 Service Pack 1(6.1.7601)

Error code: 1020
Level: fatal error

Dump of the error of 'wd210vm.dll' module (21.0.320.0 EXPRESS).
Identifier of detailed information (.err): 1020
Debugging information:

Details techniques :

Module : wd210vm.dll
Version du module : 21.0.320.0 EXPRESS
VI : 05A210066j
Adresse de base : 25E60000
Erreur systeme : Access violation (GPF)
EIP = 25F55949
OS : Windows 7 Service Pack 1(6.1.7601)
Registres :

 EIP = 25F55949    EBP = 00000489
 EAX = 00000002    EBX = 00000000
 ECX = 00040000    EDX = 0497D104
 ESI = 00040000    EDI = 0018E108

Pile des appels :

[wd210vm.dll (25E60000), 21.0.320.0 EXPRESS, 05A210066j]    25EE9360 :
EXT_bSetVariableCollection() + 443881 bytes
Pile invalide

Additional Information:
EIT_PILEWL :
Click Btn_SelF1 (EXPRESS_WIN_XLSFunction_F.Btn_SelF1)
EIT_DATEHEURE : 08/09/2017 11:30:52
EIT_TYPE_WDFILE : <2>
EIT_IDCODE : <18>

Help


When this problem appears you have to restart the application, if you
click on first button again it crashs again, but if you click on another
button then you can click on first button without crashs. Not always it
crashs clicking on the first button.

I searched if Btn_SelF1 or EDT_File1 are mentioned in different ways of
other buttons (but not, all 14 buttons are equals).
I supposed the problem is the name EDT_File1 is similar to EDT_File10
EDT_File11 EDT_File12...  but this is nonsense...

Please help me because I really don't know what I have to do... on my PC
seems to not crash never...
Publicado el 08,septiembre 2017 - 17:01
Hello Fabrice,
thanks for the answer.

Procedure path_select(sKey is string)
sFileName is string

// Select an Excel file
sFileName = Truncate(sKey, 4, numberOfCharactersToDelete)
sFileName = fSelect(sFileName,"","Seleziona un file Excel",...
"Documento Excel *.XLS)"+TAB+"*.XLS","XLS",...
fselExist)

IF sFileName <> "" THEN
sKey = sFileName
END


I tried on my PC to double click, but nothing the problem doesn't appear. When I double click on my customer's PC it play a sound, but not crashs.
Publicado el 09,septiembre 2017 - 17:44
Hi Andrea,

Your truncate function is incorrect. The 3rd parameter is NOT the number
of characters to delete, it's a constant describing the TYPE of truncation.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com

Le 9/8/2017 à 9:01 AM, Andrea Fortune a écrit :
Hello Fabrice,
thanks for the answer.

PROCEDURE path_select(sKey is string)
sFileName is string

// Select an Excel file
sFileName = Truncate(sKey, 4, numberOfCharactersToDelete)
sFileName = fSelect(sFileName,"","Seleziona un file Excel",...
"Documento Excel *.XLS)"+TAB+"*.XLS","XLS",...
fselExist)

IF sFileName <> "" THEN
    sKey = sFileName
END


I tried on my PC to double click, but nothing the problem doesn't
appear. When I double click on my customer's PC it play a sound, but not
crashs.
Publicado el 11,septiembre 2017 - 12:20
Hello Fabrice,
thanks for your reply, but I followed this guide:
https://doc.pcsoft.fr/en-US/?1000020476

sString is string = " Turlututu"

// Truncate the string to 9 characters
Trace(Truncate(sString, 9)) // Displays " Turlutut"
Trace(Truncate(sString, 9, numberOfCharactersToStore)) // Displays " Turlutut"

// Truncate the string to 4 characters
Trace(Truncate(sString, 4, numberOfCharactersToDelete))
// Displays " Turlu"


And it works perfectly for all buttons. There are 14 identical buttons, and they work. Just sometime (not always) the first button give the error.

I created this function just because if the button were already used (so the field with the path wasn't empty) the selection process give me a warning of "used file". To avoid it (but remain in the same path) I created the truncate function.

If the function is wrong how it should be?

<Result> = Truncate(<Source> , <Number of Characters> [, <Type of Truncation>])
Publicado el 13,septiembre 2017 - 13:19
The problem still unsolved and mysterious.
Now I tried to change the name of the button
Btn_SelF1 ------> now is Btn_SelF01

At the moment the problem disappears on my customer's PC... but I'm very scary about this kind of problems...