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 / VB .NET and DBP (Copy file)

Author
Message
The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 16th Oct 2004 13:04
My gosh! The big programmers of the world hate me. All I want to do is get a flipping working demo and now another major roadblock, but now it is .NET. All I want to do is copy a file from one place to another (specifically the executable file that DBP compiles). The problem is when I use IO.File or IO.FileInfo to copy the file, the darn things seems to strip out all the debug information! How the heck does it even know? I can nolonger hit ESC in my programs when I do this, I must hit Alt + F4, and the process stays resident after exitting in which case I have to manually delete the process. This isn't the case if I leave the exe in the compile folder so the fault must lye with .NET's copy commands. The following do not work:

IO.File ebug apparently stripped out of code
IO.FileInfo ebug apparently stripped out of code
Shell("copy") :Says file doesn't exist (although it does)

Life sucks! Arg! I'm posting here cuz maybe one of you guys have had this problem before and found a work around. The only one I can think of is a byte by byte copy and that is going to be a pain.

Current Projects: Verious things right now. Lots of utils for game making. Hopefully something solid soon.

http://www.geocities.com/djpeterson83
The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 16th Oct 2004 13:44
Gosh darnit. This thing is annoying, but I figured out what's going on. I thought it wierd it wouldn't copy all information in the file so I thought I would do some manual stuff and guess what: Turns out if you rename the exe, it no longer responds to debug. Dunno why.

Current Projects: Verious things right now. Lots of utils for game making. Hopefully something solid soon.

http://www.geocities.com/djpeterson83
The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 16th Oct 2004 13:58
WOOOOOOOOOOOOOOOOOW! Wierdest error ever! This only happens if the filename is named "project.exe". If I name it "project1.exe" or random gibberish ".exe" this problem doesn't occur. Anyone got an answer for that?

Current Projects: Verious things right now. Lots of utils for game making. Hopefully something solid soon.

http://www.geocities.com/djpeterson83
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Oct 2004 19:12
What doesn't respond ? DBPro or the .Net program ?
You dont exactly make much sense...


UK Convention : 23/24th of October. Be there or be an UNE DODGY PLONKEN
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 16th Oct 2004 22:06 Edited at: 16th Oct 2004 22:11
does this somehow involve our plugin? does this involve the .NET IDE someone made and posted on these forums? I dont know what you mean by ".NET File IO". Could you please verify wtf you're talking about

EDIT: nvm, I just saw your WIP thread. If youre using system.IO file functions there is no reason for the files to be getting altered when copied. Not sure whats going on there.


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
The Wendigo
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 17th Oct 2004 18:33 Edited at: 17th Oct 2004 18:34
yep, that's what I thought. Sorry for the whole post, I was kinda letting off some steam. Turns out it is a really strange glitch with DBP (I guess) somehow, and the only way I've seen it evident is if your exe file is called "project.exe" (that is the dark basic project exe), because that is what I decided I was going to name the copied exe. I just changed the name to "temp.exe" and all is well now. Again sorry.

Finally, object oriented programming using Dark Basic with a new C++ style translator - DOOP. You can get it here for free (BETA):
http://www.geocities.com/djpeterson83/projects.html

Login to post a reply

Server time is: 2025-06-10 05:39:42
Your offset time is: 2025-06-10 05:39:42