PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Wilko Verweij on October 10, 2015, 09:54:18 AM

Title: Program will not run
Post by: Wilko Verweij on October 10, 2015, 09:54:18 AM
Hi, I have a strange problem. Probably more Powerbasic related than Firefly but you guys are so good and fast...
A program created with FireFly and Powerbasic ran fine until recently but will not run anymore (same program file). In the task manager you can see that it is there, 0.1 Mb of memory, and after a minute or so Windows tells me the program will not run.
Older versions also will not run anymore!
If I recompile, I get no errors with Firefly. In Pb-Edit, I only get an error if I choose 'Compile and Debug'. It says:
QuoteCompiling "C:\Users\wilko\Documents\PowerCheaqs\CHEAQS\release\CODEGEN_CHEAQS2_MAIN.bas"
Successfully created "C:\Users\wilko\Documents\PowerCheaqs\CHEAQS\release\CHEAQS2.EXE"
Begin Debug at 14:19:01 on 10-10-2015
Page heap: pid 0x17E0: page heap enabled with flags 0x3.
AVRF: CHEAQS2.EXE: pid 0x17E0: flags 0x81643277: application verifier enabled
Page heap: pid 0x17E0: page heap enabled with flags 0x3.
AVRF: CHEAQS2.EXE: pid 0x17E0: flags 0x81643277: application verifier enabled
LuaPriv: Attaching to process...
-- LuaPriv initialized--
failed to set heap information 00000057
Exception: Memory Access Violation
Program tried to read or write an invalid memory address
Cannot load file
Bad file name
End Debug at 14:19:03 on 10-10-2015

Any suggestions?
Wilko
Title: Re: Program will not run
Post by: Wilko Verweij on October 11, 2015, 05:38:47 AM
I am sort of lost. I found the following problems:

If I make a new project from scratch, the same thing happens.
Why??? ??

I have absolutely no clue as to how to continue working on this project. And it is not finished yet...
Wilko
Title: Re: Program will not run
Post by: Wilko Verweij on October 11, 2015, 08:33:58 AM
I discovered that if I make a new project with a DIFFERENT exe name, the program does not crash. Renaming the exe to the problematic one DOES show a crash.  So I ended up removing all information from the registry and now it works....

Strange, how the registry could get corrupted...
Wilko
Title: Re: Program will not run
Post by: Paul Squires on October 11, 2015, 09:38:15 AM
Hi Wilko,

I wish that I could help with an explanation but I am as perplexed as you are with what you have described. I have never experienced such a situation myself. Sorry!
Title: Re: Program will not run
Post by: Barry Gordon on October 11, 2015, 10:37:52 AM
Hi Wilko,

This may not be relevant - buts its worth mentioning.

Just for info - I had a problem recently when using one of the Show Special Folders routines (can't remember which) which sometimes worked and sometimes didn't.  In my case I was using FreeBasic - but it used to work and then suddenly it didn't - and worse it clearly was corrupting memory somewhere and the program crashed.   But I was actually returning CSIDL_LOCAL_APPDATA - which is a coincidence.

Just a suggestion - but try hard wiring the return from that routine with a fixed value of a directory and see if there is a change.

Sorry if its not relevant.

Cheers
Barry
Title: Re: Program will not run
Post by: Wilko Verweij on October 11, 2015, 10:48:25 AM
Thanks Barry and Paul,
I got it working now. And I don't want to know (for now) how it was possible because that will probably take me another weekend...

Wilko