Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Shrinking the DBP window to the task bar, while keeping BlueGUI windows open?

Author
Message
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 6th Feb 2008 02:45 Edited at: 6th Feb 2008 02:46
I have written a function to scan a folder and all sub-folders for files of a particular kind and save the list to a seperate file. It works but doesn't always perform the same way each time it is run. I will (seemingly randomly) do one of four things:

1) Shrink the DBP window to the taskbar and keep the progress window open (which is what I want)

2) Shrink both windows

3) Keep the DBP window open but not show the progress window

4) Crash with an unknwon error.

Any help would be appreciated.

Thanks

Here is the folder scan code:




wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 6th Feb 2008 05:14
The problem seems to be right in the last repeat loop of your function. While I can pretty much make out what you want to accomplish, I recieved an array out of bounds error until I put the if D>0 check in. I also commented out "and Count( D ) = CQ( D )
"
The code works it found exactly how many files of the type requested. Though I totally screwed up your timer by putting in wait 2000 so I could see the window.
Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 6th Feb 2008 05:42
Your program errors with an invalid path to ScanFolders "c:Media3d Models". After fixing this it crashes from some exception in gui2.dll.

http://3dfolio.com

Login to post a reply

Server time is: 2024-05-04 13:54:20
Your offset time is: 2024-05-04 13:54:20