PureBasic Forum
https://www.purebasic.fr/english/

Invalid Memory Access in 5.71 beta 1 LTS
https://www.purebasic.fr/english/viewtopic.php?f=4&t=72750
Page 1 of 1

Author:  Cyllceaux [ Mon May 06, 2019 8:54 am ]
Post subject:  Invalid Memory Access in 5.71 beta 1 LTS

I got this sometimes, when I have more than one instance of PB running.

Image

File: ScintillaHilightning.pb
Line: 3108

Branch: v5.70 Revision: 1836

Author:  IdeasVacuum [ Wed May 15, 2019 12:17 pm ]
Post subject:  Re: Invalid Memory Access in 5.71 beta 1 LTS

Hi Cyllceaux

Does that path actually exist on your PC? I don't see anything like it here. If you are not installing to the Program Files folder, you can expect trouble. All hail the mighty MS.

Author:  Cyllceaux [ Wed May 15, 2019 6:58 pm ]
Post subject:  Re: Invalid Memory Access in 5.71 beta 1 LTS

Hi IdeasVacuum,

I installed it in the program Files folders. Everything default.

It happens sometimes, not always. I saw it on 2 separat Desktop PCs.

Author:  NicTheQuick [ Wed May 15, 2019 7:23 pm ]
Post subject:  Re: Invalid Memory Access in 5.71 beta 1 LTS

This path exists on freaks PC, one of the developer of Purebasic.

Author:  Fred [ Fri May 24, 2019 10:11 am ]
Post subject:  Re: Invalid Memory Access in 5.71 beta 1 LTS

It's to help us to find the culprit line, but in this case, it doesn't help as it point to an 'EndProcedure'. So maybe the stack has been corrupted somewhere else, we will need more info to fix this crash unfortunately.

Author:  williamvanhoecke [ Thu Nov 14, 2019 11:05 pm ]
Post subject:  Re: Invalid Memory Access in 5.71 beta 1 LTS

Hi all,
I was specifically searching the forum for 'invalid memory access' because my code is suffering from this error.
Strangly the error appears sporadically 1 out of 10 times ???

Just tried that simple example on Windows 10 64bit

Code:
Procedure test()
Static Dim t1.i(10, 10)
Static Dim t2.i(10)
EndProcedure

test()


compiling 32bit = OK
compiling 64bit = invalid memory access

As you can see here
https://drive.google.com/open?id=1V4pnvefjbOtOauhMm4E4uVgVc-5g_FSf
the error occures at the first line ??

So I guess the 64b comiler still has a bug.

Author:  chi [ Fri Nov 15, 2019 9:37 am ]
Post subject:  Re: Invalid Memory Access in 5.71 beta 1 LTS

Already reported here

Temp. fix:
Code:
Procedure test()
  Static Dim t2.i(10)
  Static Dim t1.i(10, 10)
EndProcedure

test()

Author:  williamvanhoecke [ Fri Nov 29, 2019 2:21 am ]
Post subject:  Re: Invalid Memory Access in 5.71 beta 1 LTS

Hello chi,

I knew about this temporary fix, but my code is fare more complex and use a number of multidimension arrays
I get all kind of "invalid memory acces" errors.
f.i. An executable that works fine in one directory fails with "invalid memory acces" when its is run from another directory.
Sometimes there are no errors at all. Its all very random and weared, always another line failing but always with multidimension arrays.

At first I was sure that is was only related to the 64bit compiler but it also happens with the 32bit.

I wonder if someone is working on this bug ???

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/