Pelles C forum
Pelles C forum => General discussion => Topic started by: risanchez on December 01, 2020, 11:06:43 PM
-
In version 10 of Pelles c I can not return a function from within another function, always get this:
fatal error: Internal error: 'Access violation' at 0x00007ff7b3897b6a.
This did not happen in version 9. Also I run my program in Visual Studio and compile and run ok.
Anybody, please kown how to solve this problem, if smobody face the same problem?
Thanks
-
Not clear what you mean.
The error is from the compiler or from your code?
Post your code, a small sample that shows the problem.
-
I never met this problem.
-
In version 10 of Pelles c I can not return a function from within another function, always get this:
fatal error: Internal error: 'Access violation' at 0x00007ff7b3897b6a.
This did not happen in version 9. Also I run my program in Visual Studio and compile and run ok.
Anybody, please kown how to solve this problem, if [somebody] face the same problem?
Thanks
You need to post a small example that demonstrates the error. Otherwise, it is impossible to know
what problem needs to be solved.
-
Is it like this :
lstrcpyA(szStringC,lstrcpyA(szStringA,szStringB)) ;
or
UpdateWindow(CreateWindowA(szProgramClass,szProgramTitle,
WS_BORDER|WS_CAPTION|WS_SYSMENU|WS_POPUP,
0,0,800,400,NULL,NULL,hInstance,NULL)) ;
-
Hi,
Quite possibly this is related to this bug report:
https://forum.pellesc.de/index.php?topic=9770.msg32753#msg32753
To see if it is, try adding some additional parenthesis like
lstrcpyA(szStringC,(lstrcpyA(szStringA,szStringB))) ;
see if that helps.
Otherwise you need to breakout the internal result into a variable and use that in the function.
John Z
-
This topic has been moved to Bug reports (https://forum.pellesc.de/index.php?board=3.0).
https://forum.pellesc.de/index.php?topic=9956.0