Pelles c version 10

Started by risanchez, December 01, 2020, 11:06:43 PM

Previous topic - Next topic

risanchez

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

frankie

#1
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.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Grincheux


MrBcx

Quote from: 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 [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. 
Bcx Basic to C/C++ Translator
https://www.bcxbasiccoders.com

Grincheux

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)) ;


John Z

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

frankie

"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide