News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Problem running Load Dialog source example

Started by AndyD, October 10, 2013, 04:49:12 AM

Previous topic - Next topic

AndyD

Hi Kevin,

I am sure I have missed something simple, but when I try to run the LoadDialog source example I get the following error message:

WARNING FATAL RUN TIME ERROR

Fatal Error – File NOT Found

Error Number: (11) at Line: (177)

Global PlayDialogs_Dll=LoadNewDll (PlayDialog_Filename$)
Error Cauded by: LoadNewDll


The PC it is running on is running Visa Business box SP 2.

I'm using V1.64D of the compiler and 1.1.7b of the IDE.

What am I doing wrong?


monkeybot


AndyD

Sorry, I misread the O for a D.

I am running version 1.64O.

kevin


  It's most likely due to Vista is blocking write access to the playbasic folder.  The Dialogs DLL has to be copied into the project folder (the folder of the example your currently running), so the windows load library request can find it.   Therefore if the file isn't allowed to be copied (the destination is write protected), the example can't work and you'll get such an error. 

  MS really made a motza ball of the file security in windows, for some reason they insist it's a safer option to force user programs installed in MyPrograms derivatives to be read only from that folder, but you still can write data anywhere you like outside that folder.  They should have just sand boxed it all..


AndyD

Thanks for the suggestion.

I will avoid vista in future when using playbasic.




kevin

#5
   The same thing can occur on Vista, Win7, Win8 and even XP also, it's very common problem.   So it's can be a good idea to install outside of the default 'my programs' folder or run the software under admin mode.  

AndyD

Thanks for the feedback. I will try out your suggestions on Monday.

AndyD

OK, I have tried both suggests.

The sample code now runs until I have selected a file. It then crashes with "Playbasic.exe has stopped working"

The SaveDialog sample code also crashes at this point.

I was able to run the code for showmessage, message_box, folderdialog, inputquery, fontdialog & colourdialog without a problem.

Any thoughts (other than use another PC!)

kevin