15,892,809 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ThePotty1 (Top 10 by date)
ThePotty1
25-Jan-24 1:09am
View
Hey neighbour :D
I agree that there are probably several poor architectural choices, which we will address, but right now I'd like a quick fix to reduce the size of the traffic required to run this monster which I had no part of building. My code performs like nothing they've ever seen, but they aren't even looking at it because the php is too bloated to run.
ThePotty1
5-Sep-22 17:16pm
View
Bahaha I resemble that remark :p
Yeah It occurred to me that I'm just calling a function, which is something we do a lot, in the happy and certain knowlege that the function will run through it's logic, and then return. I got distracted by the weird wrappers, but until the function returns, the calling code just waits.
EDIT 100 threads? Wow, no, well thread count is set in xml, but currently I'm running on 3.
ThePotty1
18-May-21 3:29am
View
Yeah I assumed that would kinda balance out, everyone steals as much as they can get and nobody's entirely happy, but they all get equal shares. Perhaps not a safe bet, it doesn't seem to be working irl :p
ThePotty1
12-Jul-19 6:02am
View
Actually, this may be a teachable moment, why do I not need to check if python is installed? I simplified that check to just run raise SystemExit(0), and rely on the value from GetExitCodeProcess being zero. I tested it on a computer that doesn't have python, and my program acted as if it was. Obviously my new check is garbage, but the old one not only tested python itself, it also checked logfile access. Which it turns out I don't need anymore, hence the simplified test.
ThePotty1
11-Jul-19 10:01am
View
Chuckle. Oh go on, I reckon I can take it.
ThePotty1
11-Jul-19 9:52am
View
Sorry, I originally posted my question as the solution, so I edited it into the question, and deleted the 'solution'. Now I can't see the other suggestions anymore.
ThePotty1
11-Jul-19 9:50am
View
Huh. OK I got it working, but at a heavy cost. I replaced vbnewline with \n, but this failed outright. Next I removed all linebreaks entirely, and instead ended every line with ;. The Try-finally blocks I left as-is. Still no good. Finally I removed the Try-finally blocks entirely, and it not only runs without errors, but I actually got an email. On the other hand, now if it fails for any reason, I no longer get a log. Which makes it entirely useless.
ThePotty1
11-Jul-19 7:55am
View
It's not struggling to find python.exe, I suspect it's failing to find 3mail.py.
I don't suppose python.exe has an internal error log?
I think I'm going to have another go at converting my entire script to a one-line command. I'm fairly sure I can replace all of those vbNewlines with \n and it might all just work.
ThePotty1
16-Apr-15 9:02am
View
As far as I understand, ActiveX exes were designed to allow an executable to run directly in internet explorer. I think we chose to use them because it allowed our central program some late-binding flexibility which we would not have had if all of the daughter programs were DLLs.
On that note, what is the accepted architecture for a large system, where compiling everything into one massive executable is not an option? Should the daughter programs all be DLLs, or standard EXEs?
Obviously you can pass more information back and forth with a DLL, as opposed to just the return code from an EXE. On the other hand, without some sort of late binding, wouldn't you have to code a separate launch routine for each DLL?
ThePotty1
1-Apr-15 10:06am
View
Cheers, gimme a couple of days to play around with that.
The grids in question are Sheridan controls, notably unbound rather than the default bound ones favoured by most VB6 I've seen. I estimate that we'd knock 25% off the size of the system if we used databound grids, but the other developer is pretty resistant, and probably changing would create other problems as well. I need to play around with the vanilla .NET grids and see what they're like.
Show More