Can someone please have a look at the project attached, it's a file transfer program I've been working on. When transferring larger files (around > 1mb) the app crashes with an out of memory error, it used to be out of stack space but after playing me playing around with it, it's started saying out of memory.
The error message only appears when the programs compiled, the VB IDE just halts.
Also the main code is all in a class module named clsEngine.
When I run it I'm getting an automation error. If your getting an error and then it says "out of memory" then thats just a bug in vb. I have found that on some errors it says that. Its not our of memory theres just a compile error you have to fix. Maybe then one it shows for me. screen shot below
I'm understanding that if a compile error existed it wouldn't compile or is a compile error a bug in the code that only comes into place after the program is compiled?
I can't work out where an error could be in the code, it's a relatively simple file transfer program, what I have noticed is that as a file is sending, the more it sends, the slower the transfer gets and the memory usage of the process climbs up to around a peak of 4mb at the same time. I've replaced any Dim statements with Static statements where possible thinking that would make any sort of difference and the program seemed to be able to last longer.
The most I've ever sent of a 6mb file is 3mb, I'm clueless as to why this happens.
Cheers.
Last edited by adzzzz; Jan 25th, 2004 at 01:16 PM.
I'm understanding that if a compile error existed it wouldn't compile or is a compile error a bug in the code that only comes into place after the program is compiled?
A compile error occurs during the compile as that code with the error atempted to be compiled.
As for the main question, whats wrong with this I really dont know. If you want, go to my buddies site,
I'm understanding that if a compile error existed it wouldn't compile or is a compile error a bug in the code that only comes into place after the program is compiled?
A compile error occurs during the compile as that code with the error is atempted to be compiled.
As for the main question, whats wrong with this I really dont know. If you want, go to my buddies site,
Your locking up to much ram. Are you storing data in memory or writing it straight to file???
I have this problem all the time at work because my projects are large and resource intensive. Before running close all forms in the IDE especially the graphical ones
Hey cheers for that randem, I'll have a good look at that when I get round to installing VB again (new PC). It's hard telling what everything does in notepad.
How well do your modifications work with larger files, please fill me in on your success rate\s as mine are quite low.
Cheers again, adehh.
BodwadUK: Data is being written straight to a file as each chunk is received, though I believe it's the send-side of the transfer that actually fails.