1. problems with the function message_box()
- Posted by sergelli Oct 31, 2012
- 1095 views
I'm having problems with the function message_box
The first time, works well. When the program calls this function a second time, the program is aborted. Below is the error message.
In other programs, I can call this function many times, and gives no errors.
What can I do to resolve this?
Please send any response.
Thank you.
C:\EUPHORIA\WIN32LIB\INCLUDE\w32dll.ew:212 in function w32Func() A machine-level exception occurred during execution of this statement funcid = <no value> parms = <no value> lRC = <no value> libfunc = <no value> lFuncDef = <no value> linked = <no value> memset = <no value> i = <no value> ... called from C:\EUPHORIA\WIN32LIB\INCLUDE\WIN32lib.ew:24194 in function DefProcessing() id = <no value> pSource = <no value> hWnd = <no value> iMsg = <no value> wParam = <no value> lParam = <no value> lResult = <no value> ... called from C:\EUPHORIA\WIN32LIB\INCLUDE\WIN32lib.ew:24301 in function MessageProcessor() pSource = <no value> hWnd = <no value> iMsg = <no value> wParam = <no value> lParam = <no value> id = <no value> lHandledEvent = <no value> lTemp = <no value> result = <no value> lUserReturn = <no value> ... called from C:\EUPHORIA\WIN32LIB\INCLUDE\WIN32lib.ew:24349 in function SubProc() hWnd = <no value> iMsg = <no value> wParam = <no value> lParam = <no value> ^^^ call-back from Windows ... called from C:\EUPHORIA\include\msgbox.e:92 in function message_box() text = {83'S',105'i',109'm',112'p',108'l',101'e',32' ',77'M',101'e',115's', 97'a',103'g',101'e',109'm',32' ',84'T',69'E',83'S',84'T',32' ',33'!'} title = {77'M',101'e',110'n',115's',97'a',103'g',101'e',109'm',32' ', 33'!'} style = 0 or_style = 0 text_ptr = 8209216 title_ptr = 8204424 ret = <no value> i = <no value>
2. Re: problems with the function message_box()
- Posted by sergelli Oct 31, 2012
- 1082 views
I found the problem.
My program tries to get a text item in a listView. But this item no exists.
It makes a mess and a crash can occur anywhere in the program.
It seems that there is nothing to prevent an abortion occurs.
But I need to try to read items from a listView, but, not knowing if they exist.
How to do it without causing an abortion?
3. Re: problems with the function message_box()
- Posted by sergelli Nov 01, 2012
- 1050 views
Was solved by Andreas in another topic with subject:
"eU4 do mistake, but without EX.ERR"
Thanks Andreas